Secrets on Kubernetes are cumbersome to view with the vanilla tooling; this provides a way to quickly see the content of your secrets.
$ kubesecret hushhush
GENERAL: Kenobi
POSTGRES_CONNECTION_STRING: postgres://user:pass@example.com/database
$ kubesecret hushhush postgres connection string
postgres://user:pass@example.com/database
given the following secret:
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: hushhush
data:
GENERAL: S2Vub2Jp
POSTGRES_CONNECTION_STRING: cG9zdGdyZXM6Ly91c2VyOnBhc3NAZXhhbXBsZS5jb20vZGF0YWJhc2U=
Grab the latest release from the list and add it to your path.
- Support other secret types
- Support more than the default namespace
- Support a custom delimiter shortcut for the keyed argument
- Directly communicate with Kubernetes API