Skip to content

Commit

Permalink
Handle revocation failure if adding token. (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-rieke authored Feb 1, 2024
1 parent 97d2281 commit 3d22140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/trcinitbase/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func CommonMain(envPtr *string,

if (*rotateTokens || *tokenExpiration) && (*roleFileFilterPtr == "" || *tokenFileFilterPtr != "") {
getOrRevokeError := v.GetOrRevokeTokensInScope(namespaceTokenConfigs, *tokenFileFilterPtr, *tokenExpiration, logger)
if getOrRevokeError != nil {
if !*rotateTokens && getOrRevokeError != nil {
fmt.Println("Token revocation or access failure. Cannot continue.")
os.Exit(-1)
}
Expand Down

0 comments on commit 3d22140

Please sign in to comment.