Fetch public certificate

Save the sealing certificate for offline encryption

kubeseal --fetch-cert --controller-name=sealed-secrets --controller-namespace=kube-system > pub.pem

tool
sealed-secrets11 commands
tags
sealed-secretssecurity

More sealed-secrets commands

  • kubeseal --cert pub.pem --format yaml < secret.yaml > sealed.yaml

    Encrypt without cluster access using saved cert

  • kubectl logs -n kube-system -l app.kubernetes.io/name=sealed-secrets -f

    Stream controller logs to debug sealing issues

  • kubectl get sealedsecrets -A

    Show all SealedSecrets across namespaces

  • kubectl get secret mysecret -o yaml | kubeseal --format yaml > sealed-new.yaml

    Fetch decrypted secret and re-encrypt with current key

  • kubectl create secret generic mysecret --dry-run=client -n <ns> --from-literal=key=value -o yaml | kubeseal -o yaml > sealed.yaml

    Create and seal a k8s secret in one pipeline

all 11 sealed-secrets commands