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

implement API key management #457

Open
displague opened this issue May 2, 2024 · 0 comments
Open

implement API key management #457

displague opened this issue May 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@displague
Copy link
Member

What problem are you facing?

It should be possible to list, create, and delete API keys:

metal ssh-keys list --project-id=...
metal ssh-keys create --project-id=...

How could the Equinix Metal CLI help solve this problem?

Introduce an api-keys (auth-tokens) action with an optional project-id argument for getting, creating, deleting API keys.

A --project-key argument could be considered as a way to use the default --project-id, in this way there would be a --user or --project (perhaps --type user*|project). If only --project-id triggers the distinction, the default project-id will get in the way (similar concerns for #153 )

Helpful actions like rotate could implement a delete/create with the nuances needed to perform that operation correctly.

Arguments like --use-in-config could be considered as ways to take advantage of the new or rotated key in the Metal CLI config. (this is out of place thought fodder, would need its own issue and should related to a metal config set of actions)

@displague displague added the enhancement New feature or request label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant