Seal Kubernetes secrets with Sealed Secrets for safe Git storage without a CD-time decryption key

domain: sealed-secrets.netlify.app · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install the Sealed Secrets controller in the cluster via its Helm chart or released manifest; the controller generates an RSA key pair and stores the private key in a cluster Secret
  2. Install the `kubeseal` CLI; fetch the controller's public key certificate with `kubeseal --fetch-cert > pub-cert.pem` and commit it to the repo for offline sealing
  3. Seal a Secret manifest with `kubeseal --cert pub-cert.pem --format yaml < secret.yaml > sealed-secret.yaml`; commit the SealedSecret to Git
  4. Apply the SealedSecret to the cluster — the controller decrypts it using its private key and creates a matching regular Kubernetes Secret
  5. Scope sealed secrets to a specific namespace and name with `--scope namespace-wide` or `--scope strict` to prevent cross-namespace reuse
  6. Back up the controller's private key Secret regularly so it can be restored if the cluster is rebuilt

Known gotchas

Related routes

Encrypt Kubernetes Secret manifests with SOPS and age for GitOps-safe storage
getsops.io/docs · 6 steps · unrated
Detect secrets committed to a Git repository using gitleaks in CI
gitleaks.io · 5 steps · unrated
Sync Kubernetes secrets from HashiCorp Vault using External Secrets Operator
external-secrets.io/docs · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans