Interview Prep/DevSecOps/Secrets and Identity Management

Should you use Kubernetes Secrets, Sealed Secrets, External Secrets Operator or the Secrets Store CSI driver?

IntermediateScenarioSecrets and Identity Management
Answer

Situation read → They solve different problems: storage, GitOps encryption, or syncing from an external source of truth.

What I'd do →

  1. If a cloud secret manager exists, use External Secrets Operator to sync into native Secrets. Apps stay unchanged.
  2. If secrets must never touch etcd, use the CSI driver to mount them as files directly from the store.
  3. Use Sealed Secrets only for small GitOps setups without a secret manager; the encrypted blob lives in git.
  4. Whatever I pick, enable etcd encryption at rest and restrict get/list secrets in RBAC.

Why → The source of truth should be a store with audit logs and rotation, not a YAML file.

Interview tip → ESO is the common default in 2025–2026 GitOps stacks.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets and Identity Management