Kubernetes ships with a built-in answer to environment variables: the Secret object. It is convenient, it is native, and for a lot of teams it is the first place a database URL or API key lands. Before you add another tool, it is worth asking whether the built-in object is good enough for what you are storing.
What Kubernetes Secrets actually give you
A Secret is a key-value object stored in etcd. When you create one with kubectl, the values are base64-encoded - which is an encoding, not encryption. Anyone who can read the object can decode it. A Secret you built from a .env file is, in practice, that same .env file with a different address.
The first real control is etcd encryption at rest. If you configure an encryption provider backed by a KMS, Secret data is encrypted on disk, so a stolen etcd snapshot is not immediately readable. It is not on by default everywhere, and it protects the disk rather than the running pod that mounts the value.
The second is RBAC. Secrets are namespaced, so you can grant a service account or a team read access to namespace A and not namespace B, and role bindings let you decide who can get and list them. That is genuine access control, and it is the strongest part of the built-in story.
What you do not get is rotation. Kubernetes will serve a stale credential forever, and replacing the value does not restart the pods that mounted it. There is no record of who read which Secret and when. And there is no clean path for the systems outside your cluster - the CI runner, the staging VM, a teammate's laptop - to read the same value.
Where a dedicated secrets manager wins
A dedicated manager treats the secret itself as the managed object rather than as a side effect of a deployment. That changes four things that matter as a team grows.
Rotation becomes a first-class operation. You can schedule a credential to change on an interval, keep both versions valid during the cutover, and let consumers pick up the new value on their next fetch instead of waiting on a redeploy.
Every read is logged with an identity attached. When someone asks who had access to the production DATABASE_URL three weeks ago, the answer is a query, not a guess.
The same store serves your cluster, your CI pipeline, and a developer's local environment. With a CLI command to pull variables, a teammate gets the keys their role allows - no copy of the prod .env pasted into a Slack DM.
Local development parity falls out of that. The staging values a developer pulls locally are the same objects the pod reads in the cluster, so what runs on a laptop matches what runs on staging with far less drift.
A decision rule for small teams
Stay on Kubernetes Secrets when the values are non-sensitive configuration, the cluster is the only consumer, your team is small enough that rotation is manual and rare, and etcd encryption is enabled. Adding a manager at that point is ceremony, not security.
Move to a dedicated manager when any of these is true: the same credential is needed outside the cluster; more than one person can read production values; you need to prove who accessed what; or rotating a key means a manual redeploy. For teams between five and fifty engineers, those conditions tend to arrive together, right around the time headcount grows.
The honest middle ground is both. Keep the manager as the source of truth and sync it into the cluster, so workloads keep reading native Secrets while humans, CI, and local dev read from one controlled place.
Syncing a manager into your cluster with External Secrets
The External Secrets Operator reconciles an external secret store into Kubernetes Secret objects. You declare an ExternalSecret that points at a path in your manager, and the operator creates or updates the matching Secret in the namespace.
A minimal setup has two resources. A SecretStore (or ClusterSecretStore) holds the connection details to your provider. An ExternalSecret references that store, sets a refreshInterval and a target Secret name, then lists one data entry per key you want synced. The operator fetches the values and writes the Secret, and your workloads keep mounting it exactly as before.
Two details are worth getting right. First, rotate the store's access token on a schedule, so a leaked operator credential is short-lived. Second, confirm that your pods actually pick up changes: a Secret mounted as a volume updates on disk after a delay, but a value injected as an environment variable does not change until the container restarts. If your app reads env vars at boot, pair the sync with a rollout restart or a reload sidecar.
The short version
Kubernetes Secrets are fine for configuration and, with etcd encryption and tight RBAC, acceptable for low-stakes credentials that only your cluster consumes. They are a poor fit for anything you need to rotate, audit, or share with systems that live outside the cluster. When those needs show up, a dedicated manager gives you rotation, an audit trail, and one source of truth that the cluster reads from instead of owning. Envly is built for that middle ground: encrypted at rest, role-based access, and one CLI command to pull the variables you are allowed to see.
