-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add phylum auth revoke-token
subcommand
#1181
Conversation
This adds a new subcommand to the `auth` subcommand which allows revoking Locksmith API tokens. It is possible to either specify one or more tokens as CLI arguments, or alternatively interactively select which tokens should be revoked. Closes #1176.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed with local testing. The UX LGTM.
There are a few documentation related changes that are requested. Also, while not directly related to this PR, it might be worth changing doc_templates/phylum_auth_set-token.md
at this time to reference API keys in the examples instead of OIDC tokens.
There are also some clippy errors showing in the CI checks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The updated changes were tested locally and work as expected. There is still one small documentation change requested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This adds a new subcommand to the
auth
subcommand which allowsrevoking Locksmith API tokens.
It is possible to either specify one or more tokens as CLI arguments, or
alternatively interactively select which tokens should be revoked.
Closes #1176.
Small Disclaimer: I might have gone a little overboard with the implementation of this issue, however I do believe that the ease of use provided by the selection UI justifies the small additional code complexity.