Interview Prep/CI/CD/Deployment Strategies and GitOps

Secrets in a GitOps repo: how do you handle them?

IntermediateScenarioDeployment Strategies and GitOps
Answer

Situation read → Git must not hold plaintext secrets.

What I'd do →

  1. Use External Secrets Operator syncing from AWS Secrets Manager/Vault into Kubernetes Secrets, with only ExternalSecret objects in Git.
  2. Or encrypt in Git with Sealed Secrets or SOPS (age/KMS).
  3. Rotate at the source and let the operator refresh.

Why → Git stores references or ciphertext, never raw values.

Interview tip → ESO keeps secret values out of Git entirely, SOPS keeps them encrypted in Git.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Deployment Strategies and GitOps