Video in progress

How do you choose a secrets management architecture for the whole company: Vault, a cloud secret manager, Sealed Secrets or External Secrets?

The main question is where the source of truth is and who controls rotation. I usually make a central store (Vault or a cloud secret manager) the source and sync it into Kubernetes with External Secrets Operator; Sealed Secrets is for small, single-cluster cases.

📖 Answer

Each one solves a different problem:

Approach Source of truth Strength Weakness
Sealed Secrets Git (encrypted) simple, fits GitOps rotation is manual, a problem if the cluster key is lost
SOPS Git (encrypted with KMS) can be reviewed rotation is manual again
External Secrets Operator Vault / AWS / GCP / Azure central, rotation at the source one more component, sync delay
Vault Agent / CSI driver Vault no Kubernetes Secret, dynamic credentials complex, Vault becomes a critical dependency

I decide based on these:

  • Rotation: manual rotation is the same as no rotation. If the requirement is "every 30 days", the source must support automatic rotation.
  • Audit: who read which secret. Vault and the cloud managers provide this, and Kubernetes Secrets mostly do not.
  • Not only Kubernetes: if CI, VMs and Lambdas also need secrets, you need a central store, not encrypted files inside Git.
  • Reliability: what happens if Vault is down? With ESO, the last copy stays in Kubernetes and running pods keep working. With Vault Agent, new pods do not come up.
  • Team capacity: keeping your own Vault cluster running with HA, backups and upgrades is serious work. If you are in the cloud, a managed secret manager is often the better choice.

On the Java side: give secrets to the app as a file or env var. Having the app call the Vault API itself is often an unneeded dependency. If you need dynamic DB credentials, design Spring Cloud Vault together with Hikari's maxLifetime setting.