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 →
- If a cloud secret manager exists, use External Secrets Operator to sync into native Secrets. Apps stay unchanged.
- If secrets must never touch etcd, use the CSI driver to mount them as files directly from the store.
- Use Sealed Secrets only for small GitOps setups without a secret manager; the encrypted blob lives in git.
- Whatever I pick, enable etcd encryption at rest and restrict
get/list secretsin 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.
More on Secrets and Identity Management
A team stores database passwords in a `.env` file committed to a private repo. How do you migrate them out?BeginnerYour CI pipeline uses long-lived AWS access keys stored as repository secrets. How do you replace them?IntermediateAn auditor asks how often you rotate database credentials. You currently never do. What do you build?IntermediatePods need AWS access. A developer mounted an IAM user's keys as a Kubernetes Secret. What do you propose instead?BeginnerA Slack webhook URL and a Stripe live key were posted in a public GitHub issue. What is your response sequence?BeginnerHow would you set up HashiCorp Vault so Kubernetes workloads authenticate without any static token?Advanced