Sealed Secrets: seal and unseal

Runs in your browser

Turn a Kubernetes Secret into a SealedSecret with the controller’s public certificate, like kubeseal. With the controller’s private key you can unseal one again. Nothing leaves your browser.

Ready

Secret in, SealedSecret out

Like kubeseal -o yaml. You need the controller’s certificate: kubeseal --fetch-cert > cert.pem

Examples

Start from an example

The example unseals a SealedSecret with the demo controller key. The Seal tab has a demo Secret and certificate.

The format

How a SealedSecret is sealed

Each value is encrypted on its own with a fresh AES-256 key (GCM). That key is encrypted with the controller’s public RSA key (RSA-OAEP with SHA-256). Only the controller in the cluster has the private key.

ScopeAnnotationBound toOAEP label
strict (default)–name and namespacenamespace/name
namespace-widesealedsecrets.bitnami.com/namespace-wide: "true"namespacenamespace
cluster-widesealedsecrets.bitnami.com/cluster-wide: "true"nothingempty

That label is why a SealedSecret can’t simply be renamed or moved to another namespace: the controller would use a different label and fail.

In your terminal

The same with kubeseal

Certificate
kubeseal --fetch-cert --controller-namespace kube-system > cert.pem
Seal
kubectl create secret generic db-credentials -n demo --dry-run=client \
  --from-literal=password=hunter2 -o yaml | kubeseal --cert cert.pem -o yaml > sealed.yaml
Raw value
echo -n hunter2 | kubeseal --raw --cert cert.pem --namespace demo --name db-credentials
Backup the keys
kubectl get secret -n kube-system -l sealedsecrets.bitnami.com/sealed-secrets-key -o yaml > keys.yaml
Recovery
kubeseal --recovery-unseal --recovery-private-key keys.yaml < sealed.yaml
Common errors

When the controller can’t unseal

no key could decrypt secret

Sealed with another controller’s certificate (another cluster, or before a reinstall without restoring the keys).

Renamed or moved

With strict scope, name and namespace are part of the encryption. Seal again for the new place, or use namespace-wide or cluster-wide.

Key rotation

The controller makes a new key every 30 days and keeps the old ones. A backup from before that date can’t open newer values.

last-applied-configuration

Sealing a Secret exported from a cluster could leak plain values in this annotation. Like kubeseal, the tool removes it.

Under the hood

Tested against the original tools

Every format on this page was checked against values made by the real tool, on 3 December 2026:

  • Values sealed by the Go function HybridEncrypt from sealed-secrets (unchanged copy) for all three scopes, unsealed here; values sealed here, unsealed by Go.
  • SealedSecret manifests with data and stringData, annotations and the key backup as a List.
More formats

Other encrypted formats

Every format has its own page with the same tool. Paste anything into one of them: if it belongs elsewhere, the tool says so and takes it there.

FAQ

Questions about Sealed Secrets

Can I seal a secret without kubeseal?

Yes: paste the Secret and the controller’s certificate on the Seal tab. The certificate is public, so this is safe even for production clusters.

Can I decrypt a SealedSecret?

Only with the controller’s private key, from the cluster or a backup. That is the point: the SealedSecret can live in git, the key stays in the cluster.

Which scope should I use?

Strict, unless the same SealedSecret must work under several names (namespace-wide) or in several namespaces (cluster-wide). Wider scopes let anyone with access to the namespace reuse the value elsewhere.

Is it safe to paste the controller key here?

Everything runs in your browser: nothing you paste is sent anywhere, not even to this site. The page’s Content-Security-Policy blocks connections to other sites; check the Network tab of your browser’s developer tools. The key opens every SealedSecret of the cluster: prefer kubeseal --recovery-unseal for production.

Searches the list of pages on this site. What you type stays in your browser.