TL;DR: External Secrets Operator (ESO), the Secrets Store CSI Driver and Sealed Secrets all solve "how do secrets reach a pod without living in plain text in Git", but they answer different questions. ESO syncs values from an external manager into ordinary Kubernetes Secrets. The CSI Driver mounts values straight from the external manager into a pod volume and can optionally mirror them into a Secret. Sealed Secrets lets you commit encrypted Secrets to Git and decrypts them inside the cluster. Pick based on where your source of truth lives, how you want rotation to behave, and how much of the Kubernetes Secret object you are prepared to depend on.
Every team that moves from a handful of services to a real platform hits the same wall. Secrets start in a kubectl create secret command, drift into a Helm values file, and eventually someone asks where the production database password actually lives. The honest answer is often "in three places, and one of them is a Slack thread".
Kubernetes gives you the Secret object, but the project's own documentation is blunt about its limits. Secrets are, by default, stored unencrypted in the API server's data store (etcd), and base64 is an encoding, not encryption. The Kubernetes documentation says as much, and its good practices guide points to external secret stores as one way to keep sensitive data outside the cluster.
This article compares the three tools most platform teams shortlist: External Secrets Operator, the Secrets Store CSI Driver, and Sealed Secrets. It is written for engineers and engineering leads in the US and UK who need to make a defensible choice, not a fashionable one. We stick to behaviour documented by the projects themselves, flag where the documentation is silent, and avoid benchmark claims we cannot back up.
Table of Contents
- What problem are we actually solving?
- Baseline: what Kubernetes gives you for free
- External Secrets Operator
- Secrets Store CSI Driver
- Sealed Secrets
- Side-by-side comparison
- A decision framework
- Common mistakes
- Production checklist
- FAQ
- References
What problem are we actually solving?
"Secrets management" bundles together at least four separate problems, and the three tools cover them unevenly.
- Storage of the source of truth. Where is the canonical value kept, who can read it, and is every access audited?
- Delivery. How does the value get from that source to the running process?
- Rotation. When the value changes, how long until workloads see it, and do they need a restart?
- GitOps compatibility. Can your declarative configuration describe a secret without containing the secret?
ESO and the CSI Driver are primarily delivery tools that sit in front of an external store such as a cloud secret manager or Vault. Sealed Secrets is different: it makes the cluster and Git the source of truth, and solves the GitOps problem by encrypting values so they are safe to commit. Mixing these categories is the single most common reason comparisons online feel contradictory.
Baseline: what Kubernetes gives you for free
Before adding tooling, be clear about the platform's own controls, because every tool below still depends on them.
Encryption at rest. The API server can encrypt Secrets before writing them to etcd using an EncryptionConfiguration (apiVersion: apiserver.config.k8s.io/v1). The encryption at rest documentation lists providers including aescbc, aesgcm, secretbox and kms. KMS v2 is documented as stable from Kubernetes v1.29, while KMS v1 has been deprecated since v1.28. On managed Kubernetes services this is usually a cluster setting rather than something you author yourself, so check your provider's documentation.
RBAC. The good practices guide warns that granting list access to Secrets implicitly lets the subject read their contents, and that anyone who can create a Pod that uses a Secret can also see its value. It recommends restricting get, watch and list on Secrets and using separate namespaces to isolate access.
Immutable Secrets. Setting immutable: true on a Secret (stable since v1.21) prevents accidental changes and means the kubelet no longer needs to watch it. The catch: you cannot revert it. You delete and recreate the Secret.
Volume versus environment variable behaviour. The documentation states that Secret data in a mounted volume is updated by the kubelet using an eventually consistent approach, and that a subPath mount does not receive automatic updates. Environment variables are populated when the container starts. We could not find an explicit statement of env var update behaviour in the Secret page, but the Secrets Store CSI Driver's own rotation documentation says the pod must be restarted to pick up a new value as an environment variable, and that is consistent with how the platform behaves.
Everything that follows is layered on top of these primitives. None of the three tools removes the need to encrypt etcd or tighten RBAC.
External Secrets Operator
What it is
ESO is a Kubernetes operator that reads from an external secret manager and writes a native Kubernetes Secret. You declare where to read from with a SecretStore (namespaced) or ClusterSecretStore (cluster-wide), and what to fetch with an ExternalSecret. The controller reconciles the two and keeps the target Secret current.
Because the output is a normal Secret, your workloads need no changes. Anything that can consume a Secret through environment variables, envFrom, volumes or image pull secrets keeps working.
A minimal example
This ExternalSecret mirrors the structure in the official overview:
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: example
spec:
refreshInterval: 1h0m0s
secretStoreRef:
name: secretstore-sample
kind: SecretStore
target:
name: secret-to-be-created
creationPolicy: Owner
data:
- secretKey: secret-key-to-be-managed
remoteRef:
key: provider-key
version: provider-key-version
property: provider-key-propertyFields worth understanding rather than copying:
refreshIntervalaccepts Go-style durations (ns,us,ms,s,m,h). The documentation notes it may be set to zero to fetch and create the Secret once.refreshPolicycan bePeriodic(the default when unset),OnChange, orCreatedOnce.OnChangerefreshes only when the ExternalSecret's own metadata or spec changes, which means it will not pick up a rotated value in the provider. Choose it deliberately.target.creationPolicydefaults toOwner, meaning the generated Secret carries an owner reference and is deleted with the ExternalSecret.Mergewrites into an existing Secret;Orphancreates it without an owner reference.target.deletionPolicydefaults toRetain.dataFromwithextractpulls an entire key (for example, a JSON blob) rather than a single property.
Multi-tenant scoping with ClusterSecretStore
A SecretStore is namespaced and cannot reference resources in other namespaces. A ClusterSecretStore can be used by ExternalSecrets in any namespace unless you restrict it. The ClusterSecretStore reference documents spec.conditions, where a store is usable in a namespace if any one condition matches:
apiVersion: external-secrets.io/v1
kind: ClusterSecretStore
metadata:
name: shared-aws
spec:
provider:
aws:
service: SecretsManager
region: eu-west-2 # replace with your region
auth:
jwt:
serviceAccountRef:
name: eso-reader
namespace: external-secrets
conditions:
- namespaces:
- "payments"
- "checkout"The jwt.serviceAccountRef block is the documented form for IAM roles for service accounts; the namespace on the reference is mandatory for a ClusterSecretStore. Treat the names above as placeholders, and note that the role bound to that service account defines the maximum a ClusterSecretStore can read. If one store serves ten teams, that role is a shared blast radius. Many organisations prefer one narrowly scoped store per team or per environment for exactly that reason.
Strengths
- Works with workloads unchanged because it produces ordinary Secrets.
- Declarative and GitOps-friendly: the ExternalSecret contains a reference, not a value.
- Centralised rotation. Update the value in the provider and the periodic refresh propagates it.
- A single operator serves the whole cluster instead of per-pod machinery.
Trade-offs
- The value still lands in etcd. The generated Secret is a normal Secret, so the baseline controls (etcd encryption, RBAC, restricted
list/get) matter fully. - Rotation is eventual. With a
Periodicpolicy, propagation time is bounded byrefreshInterval, and consumers that read the value at startup (environment variables) still need a restart. - The controller is a high-value target. It holds credentials, or an identity, that can read many secrets. Protect its service account and namespace accordingly.
- Provider API costs and limits. Frequent refreshes across many ExternalSecrets generate calls to your provider. Check the pricing and quota documentation of the provider you use rather than assuming it is free.
We could not confirm from the pages we read whether ESO's default refreshInterval is stated in the reference, so set it explicitly rather than relying on a default.
Secrets Store CSI Driver
What it is
The Secrets Store CSI Driver is a Kubernetes SIG project. A DaemonSet runs on each node, and a provider (Vault, Azure, GCP, AWS and others) fetches values at pod start. The kubelet calls the driver to mount the content as a volume, written to tmpfs. The Kubernetes project's good practices guide names it as one way to retrieve Secrets from external stores and mount them as a volume.
The key design choice is that the secret goes from the external store to the pod volume without necessarily ever becoming a Kubernetes Secret. That is the main reason security teams look at it.
A minimal example
The SecretProviderClass holds provider-specific parameters, which differ per provider, so consult the documentation for yours. The structure is:
apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
name: my-provider
spec:
provider: vault # or the provider you use
parameters: {} # provider-specific, see your provider's docsand in the Pod:
volumes:
- name: secrets-store-inline
csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: "my-provider"
containers:
- name: app
volumeMounts:
- name: secrets-store-inline
mountPath: "/mnt/secrets-store"
readOnly: trueSyncing to a Kubernetes Secret (optional)
If an application insists on environment variables, secretObjects in the SecretProviderClass can mirror mounted content into a Secret:
spec:
provider: vault
secretObjects:
- secretName: foosecret
type: Opaque
data:
- objectName: foo1
key: usernameTwo documented behaviours catch teams out. First, the sync happens only when a pod that mounts the volume starts: a Secret cannot be created by this mechanism alone. Second, when all consuming pods are deleted, the synced Kubernetes Secret is deleted too. Once you use secretObjects, you have reintroduced a Kubernetes Secret and its baseline risks, so the main advantage over ESO narrows.
Rotation
Rotation is controlled by driver flags: --enable-secret-rotation=true and --rotation-poll-interval (documented default 2m), or the equivalent Helm values enableSecretRotation and rotationPollInterval. The auto-rotation documentation states that rotation updates the pod mount and any synced Secret, but environment variables do not update in place: "The pod needs to be restarted to get the latest secret as environment variable." The same page suggests a rolling-restart helper such as Reloader.
Two cautions. The project's introduction and the rotation page describe auto rotation and Secret sync under an alpha label, while the same page also describes a newer republish mechanism introduced in v1.6.0. Those pages do not reconcile the two, so verify the current maturity status for the version you deploy before committing to it in a regulated environment. Second, containers that mount with subPath do not receive rotated content, per the known-limitations page.
Strengths
- Secrets can stay out of etcd entirely if you consume them as files.
- Rotation of mounted files needs no pod restart for applications that re-read files.
- Per-pod access. The identity used to fetch is tied to the pod's service account in supported providers, which allows tighter scoping than a cluster-wide operator identity.
Trade-offs
- Pod start depends on the external store. The mount happens at pod start; if the provider is unreachable, the pod does not start. This couples your availability to the secret manager.
- Application changes. Reading from files instead of environment variables is a code or entrypoint change for many apps.
- More moving parts on every node. A DaemonSet plus a provider plug-in per node, and the driver is invoked by the kubelet at mount time.
- Sync is an add-on, not the design centre. Teams that mostly want Secrets often find ESO simpler.
Sealed Secrets
What it is
Sealed Secrets (from the bitnami-labs GitHub organisation) takes a different approach. A controller in the cluster holds a private key. You encrypt a Secret on your laptop or CI runner using the public certificate and the kubeseal CLI, producing a SealedSecret that is safe to commit. In the cluster, the controller decrypts it and creates a normal Kubernetes Secret.
The documented workflow:
echo -n bar | kubectl create secret generic mysecret --dry-run=client \
--from-file=foo=/dev/stdin -o json > mysecret.json
kubeseal -f mysecret.json -w mysealedsecret.json
kubectl create -f mysealedsecret.jsonThe SealedSecret resource uses apiVersion: bitnami.com/v1alpha1, with the encrypted values under spec.encryptedData. You can also fetch the certificate (kubeseal --fetch-cert) and seal offline in CI with --cert.
Scopes
Scope controls where a sealed value may be decrypted:
- strict (default): bound to the exact name and namespace.
- namespace-wide: may be renamed within the namespace.
- cluster-wide: may be unsealed in any namespace under any name.
Scope is set with kubeseal --scope or annotations such as sealedsecrets.bitnami.com/cluster-wide: "true". Prefer strict. Anything broader means that whoever can submit a SealedSecret into another namespace can obtain its plaintext there.
The README is explicit that the scheme does not authenticate the user: anyone who can create a SealedSecret with the matching namespace and name can produce one, so cluster RBAC and your deployment workflow have to control what gets applied.
Key management and rotation
By default the controller renews sealing keys every 30 days (--key-renew-period; 0 disables renewal). The project stresses that renewal is not rotation: old keys are kept so that existing SealedSecrets still decrypt, and kubeseal --re-encrypt can re-seal items with the latest key. Crucially, the README says rotating the actual secret values is still your job. If a credential leaks, resealing it does not change the credential.
You must back up the sealing keys. They are Secrets labelled sealedsecrets.bitnami.com/sealed-secrets-key in the controller namespace, and the README warns that the backup contains private keys and must be refreshed after each renewal. Without the key or the cluster, there is no way to decrypt, which is the point of the design and also the disaster-recovery trap.
Security advisory worth knowing
CVE-2026-22728 (GHSA-465p-v42x-3fmj, OSV record) rated medium (CVSS 4.9) describes a scope-widening issue in the rotate flow: untrusted template annotations could turn a strict or namespace-wide SealedSecret into a cluster-wide one. It affects versions before 0.36.0 and is fixed in 0.36.0. The project states that only the latest version is supported for production, so keep the controller current.
Strengths
- Gives GitOps teams a genuine solution with no external dependency. Everything lives in Git and the cluster.
- Small operational footprint: one controller and one CLI.
- No runtime network call to a secret manager, so there is no startup coupling.
Trade-offs
- No central secret manager. There is no audit trail, versioning or fine-grained access policy of the kind a cloud secret manager provides, other than what Git and Kubernetes give you.
- The end result is a normal Secret in etcd, so baseline controls still apply.
- Rotation is manual. You re-seal and commit. Sharing a secret across clusters means sealing it per cluster, because each cluster has its own key unless you deliberately restore the same key.
- Key backup becomes a critical process.
Side-by-side comparison
| Dimension | External Secrets Operator | Secrets Store CSI Driver | Sealed Secrets |
|---|---|---|---|
| Source of truth | External secret manager | External secret manager | Git (encrypted) plus cluster key |
| Delivery to pod | Kubernetes Secret | CSI volume (optional Secret sync) | Kubernetes Secret |
| Secret in etcd | Yes | No, unless secretObjects is used | Yes |
| Workload changes | None | Often (read files) | None |
| Rotation | Periodic refresh; env vars need restart | Poll-based, mounted files update; env vars need restart | Manual re-seal and redeploy |
| GitOps fit | Strong (references only) | Strong (references only) | Strong (encrypted values) |
| Runtime dependency | Provider reachable by controller | Provider reachable at pod start and during rotation | None at runtime |
| Audit/versioning | From the external manager | From the external manager | From Git history only |
| Main operational risk | Over-broad store identity | Pod start coupled to provider; rotation maturity | Key loss; no value rotation |
A decision framework
Use these questions in order.
- Do you already have, or are you willing to adopt, a central secret manager? If not, Sealed Secrets is the lowest-friction way to stop committing plain-text values. If yes, continue.
- Are there compliance or threat-model reasons to keep secrets out of etcd? If so, lean towards the CSI Driver consumed as files, and avoid
secretObjects. If not, continue. - Can your applications read secrets from files and handle a rotated file? If not, ESO usually costs far less change.
- How many teams share the platform? More teams push you towards per-team stores and namespaced scoping in ESO, or per-pod identity with the CSI Driver.
- How do you restart workloads when secrets rotate? Whichever tool you choose, environment variables require a restart. Decide on a mechanism (a rolling-restart controller, or a deploy-time hash annotation) before you decide on rotation frequency.
It is also legitimate to combine tools. A common pattern is Sealed Secrets (or an equivalent bootstrap mechanism) to deliver the single credential ESO needs to reach the external manager, and ESO for everything else. If your cloud provider supports workload identity for ESO's service account, you may avoid even that bootstrap secret.
The architecture below shows where each tool sits between source and pod:
flowchart LR
subgraph Source
SM[External secret manager]
GIT[Git repository]
end
subgraph Cluster
ESO[External Secrets Operator]
CSI[CSI Driver + provider]
SS[Sealed Secrets controller]
K8S[(Kubernetes Secret in etcd)]
POD[Pod]
end
SM -->|periodic sync| ESO --> K8S --> POD
SM -->|fetch at pod start / rotation| CSI -->|tmpfs volume| POD
CSI -.->|optional secretObjects| K8S
GIT -->|SealedSecret| SS --> K8SCommon mistakes
Treating base64 as protection. Base64 offers no confidentiality. Enable encryption at rest or a KMS provider and restrict who can get, list and watch Secrets.
Assuming rotation reaches the application. Updating the provider value does not restart anything. Environment variables and subPath mounts will keep the old value until the pod restarts.
Using OnChange or CreatedOnce and expecting rotation. These ESO refresh policies do not poll the provider on a schedule.
One powerful ClusterSecretStore for everyone. The IAM role behind it becomes the shared ceiling for every namespace allowed to use it. Scope stores per team or environment and use conditions to restrict namespaces.
Using cluster-wide Sealed Secrets by default. It makes a sealed value portable across namespaces, which is rarely what you want. Keep strict scope unless there is a specific reason.
Not backing up the Sealed Secrets key. Losing the cluster without the key means every committed SealedSecret becomes undecryptable. Refresh the backup after each key renewal and store it somewhere access-controlled.
Believing resealing equals rotating. The project says explicitly that key renewal is not a substitute for rotating the underlying credential after a leak.
Forgetting pod-start coupling with the CSI Driver. If the external manager has an outage or your network policy blocks it, new pods will not start. Test this failure mode before production.
Enabling the CSI sync and calling it done. The synced Secret exists only while a mounting pod exists, and it brings back the etcd exposure you adopted the driver to avoid.
Production checklist
- Encryption at rest enabled for Secrets, using a KMS provider where your platform supports it.
- RBAC reviewed: no broad
list/watchon Secrets; namespaces separate teams. - A written source-of-truth decision for each secret class (database, third-party API, TLS, signing keys).
- Refresh or poll interval set explicitly and justified against provider quotas.
- A documented restart strategy for secret rotation, tested at least once.
- ESO stores scoped per team or environment, with namespace conditions.
- CSI Driver: rotation flags verified for your version,
subPathmounts avoided, provider outage behaviour tested. - Sealed Secrets: controller on a version at or above 0.36.0, strict scope by default, sealing keys backed up and the backup refreshed after renewal.
- Audit logging enabled in the external secret manager, and alerts on unusual reads.
- Break-glass procedure for revoking and rotating a leaked credential, owned by a named team.
- Secret scanning in CI so values never reach Git in the first place.
How Syslabs can help
Secrets management sits at the boundary between platform engineering, security and delivery. Syslabs works with teams on cloud infrastructure design, DevOps and CI/CD pipelines, and security and identity management, including reviewing how secrets move from source to workload and which failure modes you are accepting. If you want a second opinion on a choice between these three tools, or a rotation runbook that actually gets exercised, book a meeting.
References
- Kubernetes documentation, Secrets
- Kubernetes documentation, Good practices for Kubernetes Secrets
- Kubernetes documentation, Encrypting confidential data at rest
- External Secrets Operator, Overview, ExternalSecret API, ClusterSecretStore API
- Secrets Store CSI Driver, Introduction, Sync as Kubernetes Secret, Auto rotation, Known limitations
- Sealed Secrets, README
- OSV, GHSA-465p-v42x-3fmj / CVE-2026-22728



