Interview Prep/Kubernetes/Configuration, Secrets and storage

How do you manage secrets in GitOps without committing them in plain text?

IntermediateScenarioConfiguration, Secrets and storage
Answer

Situation read → Argo CD syncs from Git but the secrets must not be in the repo.

What I'd do →

  1. Use External Secrets Operator: a SecretStore points to AWS Secrets Manager and an ExternalSecret creates the Secret
  2. Or use Sealed Secrets: encrypt with kubeseal and commit the SealedSecret
  3. Or SOPS with KMS and the Argo CD or Flux integration
  4. Restrict who can read the resulting Secret
  5. Plan rotation: ESO refreshes on refreshInterval

Why → References or encrypted payloads are safe in Git, and the cluster resolves them at runtime.

Interview tip → Mention the trade-off: ESO needs access to the secret store, Sealed Secrets keeps the key in the cluster.

All Kubernetes questions Roadmap: Kubernetes core

More on Configuration, Secrets and storage