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

Command: apikey #18

Open
eguzki opened this issue Aug 18, 2021 · 0 comments
Open

Command: apikey #18

eguzki opened this issue Aug 18, 2021 · 0 comments

Comments

@eguzki
Copy link
Collaborator

eguzki commented Aug 18, 2021

Supercommand to manage kuadrant apikeys. The API keys are stored as k8s secrets.

  • APIKey create subcommand

kuadrantctl apikey create name <my_api_key_name> [--user-id USER_ID] [--namespace NAMESPACE] [--label KEY:VALUE] [--value JUSTFORDEMOSOBVIOUSLYqDQsqSPMHkRhriEOtcRx]

Default namespace would be kuadrant-system or defined by .kube/config

--label can be added multiple times

--value is optional, if not set, the command will generate one

  • APIKey get subcommand

kuadrantctl apikey get name <my_api_key_name>

Secrets:

  • Secret type will be secret.kuadrant.io/apikey
  • Contains annotation with the kuadrantctl version info
  • May contain custom labels fo specify app being used for scoping purposes
  • May contain annotation with user_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant