Secret objects.
Key Components
- A running Kubernetes cluster (v1.13+).
- The Sealed Secrets Operator installed:
kubectl apply -f https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.23.0/controller.yaml - Public key accessible for
kubeseal:
kubeseal --fetch-cert > public-cert.pem
Always back up the private key used by the Sealed Secrets controller. Losing it means you won’t be able to decrypt existing
SealedSecret resources.GitOps Workflow for Encrypted Secrets
-
Define a Kubernetes Secret
Create a plainSecretmanifest (e.g.,db-credentials.yaml). -
Encrypt with kubeseal
-
Commit to Git
Push theSealedSecretmanifest (sealed-db-credentials.yaml) to your repository. -
Automatic Decryption
The Sealed Secrets Operator detects the newSealedSecret, decrypts it, and generates a standardSecretfor your pods to consume.