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

Manage secrets using CLI #14

Open
rajdip-b opened this issue Mar 26, 2024 · 0 comments
Open

Manage secrets using CLI #14

rajdip-b opened this issue Mar 26, 2024 · 0 comments
Labels
priority:urgent Priority description - Urgent type:feat Added some new feature

Comments

@rajdip-b
Copy link
Member

Description

Create and manage secrets using CLI. Here are the aspects to manage:

Creating a secret

Command

ks secret create <project_id> <options>

Options

  • --name/-n: Name of the secret
  • --value/-v: Value of the secret
  • --note/-d: (Optional) Description of the secret
  • --rotateAfter/-r: (Optional) Duration, after which the value should be updated. Default is never.
  • --environment/-e: (Optional) Environment under which the secret should belong to. Defaults to the default environment of the project.

Updating a secret

Command

ks environment update <secret_id> <options>

Options

Specifying any of these options will update only that specific property of the environment. At least one option needs to be specified for this command to run.

  • --name/-n: (Optional) Name of the secret
  • --note/-d: (Optional) Description of the secret
  • --rotateAfter/-r: (Optional) Duration, after which the value should be updated. Default is never.

Updating the environment of a secret

Command

ks environment update-enbvironment <secret_id> <environment_id>

Creating a new revision of the secret

Command

ks environment create-revision <secret_id> <new_value> 

Rolling back to an older revision

Command

ks environment rollback <secret_id> <version>

Listing all secrets

Command

ks secret list <project_id> <options>

Options

  • --page: (Optional) The page index
  • --size: (Optional) Size of the page

Deleting a secret

Command

ks secret delete <secret_id>

Read a secret

Command

ks secret read <secret_id>
@rajdip-b rajdip-b added priority:urgent Priority description - Urgent type:feat Added some new feature labels Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:urgent Priority description - Urgent type:feat Added some new feature
Projects
None yet
Development

No branches or pull requests

1 participant