Skip to content
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

List and revoke API keys #1176

Closed
kylewillmon opened this issue Aug 8, 2023 · 1 comment · Fixed by #1181 or #1180
Closed

List and revoke API keys #1176

kylewillmon opened this issue Aug 8, 2023 · 1 comment · Fixed by #1181 or #1180
Assignees
Labels
enhancement New feature or request low priority Should be handled as time permits

Comments

@kylewillmon
Copy link
Contributor

There are not currently commands in CLI to list or revoke API keys (i.e., locksmith tokens). These commands would certainly be useful to some users.

Here is an example of what these might look like:

> phylum token list

Name        Created           Last Used
JRR Token   2023-07-31 20:32  2023-08-08 17:01
Token Ring  2023-07-31 21:50  never
> phylum token revoke "Token Ring"

✅ Successfully revoked token!
@kylewillmon kylewillmon added enhancement New feature or request needs triage Needs to be reviewed or assigned low priority Should be handled as time permits and removed needs triage Needs to be reviewed or assigned labels Aug 8, 2023
@kylewillmon
Copy link
Contributor Author

Marking as low priority Should be handled as time permits because this functionality is readily available in the UI and there is currently no indication that users want this in CLI.

cd-work added a commit that referenced this issue Aug 9, 2023
This patch adds a new `list-tokens` subcommand to the existing `auth`
subcommand which lists all locksmith tokens associated with the logged
in user.

See #1176.
cd-work added a commit that referenced this issue Aug 9, 2023
This patch adds a new `list-tokens` subcommand to the existing `auth`
subcommand which lists all locksmith tokens associated with the logged
in user.

See #1176.
cd-work added a commit that referenced this issue Aug 9, 2023
This patch adds a new `list-tokens` subcommand to the existing `auth`
subcommand which lists all locksmith tokens associated with the logged
in user.

See #1176.
cd-work added a commit that referenced this issue Aug 9, 2023
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.
@cd-work cd-work self-assigned this Aug 9, 2023
@maxrake maxrake linked a pull request Aug 9, 2023 that will close this issue
cd-work added a commit that referenced this issue Aug 10, 2023
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority Should be handled as time permits
Projects
None yet
2 participants