Skip to content

Commit

Permalink
Excludes jwt records with no endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed May 30, 2024
1 parent 46bbcd7 commit c98db8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/groovy/io/seqera/wave/tower/auth/JwtMonitor.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ class JwtMonitor implements Runnable {
log.warn "JWT record has no receivedAt timestamp - entry=$entry"
return
}
if( !entry.endpoint ) {
log.warn "JWT record has no endpoint field - entry=$entry"
return
}
// check if the JWT record is expired
final deadline = entry.createdAt + tokenConfig.cache.duration
if( now > deadline ) {
Expand Down

0 comments on commit c98db8f

Please sign in to comment.