sealed-secrets
11 commands
11 shown
Seal a secret
Create and seal a k8s secret in one pipeline
kubectl create secret generic mysecret --dry-run=client -n <ns> --from-literal=key=value -o yaml | kubeseal -o yaml > sealed.yaml
Fetch public cert
Download the sealing certificate for offline operations
kubeseal --fetch-cert --controller-name=sealed-secrets > pub-cert.pem
Seal with offline cert
Seal without cluster access using pre-fetched certificate
kubeseal --cert pub-cert.pem -o yaml < secret.yaml > sealed.yaml
List SealedSecrets
Show all SealedSecrets and their sync status
kubectl get sealedsecret -A
Seal a secret from file
Encrypt a Kubernetes Secret YAML into a SealedSecret
kubeseal --format=yaml < secret.yaml > sealed-secret.yaml
Seal from stdin with scope
Create and seal a secret in cluster-wide scope
kubectl create secret generic mysecret --dry-run=client --from-literal=token=abc123 -o yaml | kubeseal --scope cluster-wide -o yaml
Fetch public certificate
Save the sealing certificate for offline encryption
kubeseal --fetch-cert --controller-name=sealed-secrets --controller-namespace=kube-system > pub.pem
Seal offline with cert
Encrypt without cluster access using saved cert
kubeseal --cert pub.pem --format yaml < secret.yaml > sealed.yaml
Check sealed-secrets controller logs
Stream controller logs to debug sealing issues
kubectl logs -n kube-system -l app.kubernetes.io/name=sealed-secrets -f
List all SealedSecrets
Show all SealedSecrets across namespaces
kubectl get sealedsecrets -A
Re-seal with new key
Fetch decrypted secret and re-encrypt with current key
kubectl get secret mysecret -o yaml | kubeseal --format yaml > sealed-new.yaml
no commands match