CRUD for tokens
#3406
Replies: 1 comment 1 reply
-
What about "add" instead of "create"? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Users can have multiple tokens and reference them in their meshconfig (
~/.meshery/config.yaml
) file. This means that a user can have multiple tokens and can use different tokens for different contexts.However, right now the users have to manually edit their config files in-order to change the token used in a particular context and even add new tokens, change the location of the token etc.
Similar to channel and context constructs in the meshconfig, mesheryctl should also support CRUD actions for tokens:
Add a new token to the meshconfig:
mesheryctl system token create <token name> -f <optional: path to the token, defaults to auth.json>
Delete token:
mesheryctl system token delete <token name>
Set token:
mesheryctl system token set <token name>
List tokens:
mesheryctl system token list
Power/advanced users can directly edit the meshconfig for use cases other than these.
I think these ought to cover all the common use cases. Please suggest any changes or updates needed here.
Beta Was this translation helpful? Give feedback.
All reactions