CLI Tool that allow encode and decode Kubernetes Secrets
- preserve yaml file order
- support multiples secrets in the same file
- stdin, file or directory as target
- finds all secrets in a target directory
curl -fsSL https://raw.githubusercontent.com/leonardobiffi/kse/master/scripts/install.sh | sh
go install github.com/leonardobiffi/kse@latest
Searching for secrets in directory or file path
kse decode -o -f ./k8s/secrets/
kse decode -o -f ./k8s/secrets/secret.yaml
Using Stdin
kubectl get secret mysecret -o yaml | kse decode
cat secret.yaml | kse decode
Searching for secrets in directory or file path
kse encode -o -f ./k8s/secrets/
kse encode -o -f ./k8s/secrets/secret.yaml
Using Stdin
cat secret.yaml | kse encode
- Add support for JSON secrets
- Add tests
- Add Dockerfile
- Refactor packages encode/decode