k8sec

Command line interface tool to manage Kubernetes secrets.

TLDR

List all secrets

$ k8sec list
copy


List a specific secret as a base64-encoded string
$ k8sec list [secret_name] --base64
copy


Set a secret's value
$ k8sec set [secret_name] [key=value]
copy


Set a base64-encoded value
$ k8sec set --base64 [secret_name] [key=encoded_value]
copy


Unset a secret
$ k8sec unset [secret_name]
copy


Load secrets from a file
$ k8sec load -f [path/to/file] [secret_name]
copy


Dump secrets to a file
$ k8sec dump -f [path/to/file] [secret_name]
copy

Copied to clipboard