Skip to main content
InterviewHubPRO
Section Overview
Q28

Question 28 of 50

Part 3: Kubernetes Infrastructure as Code & GitOps (31 - 42)

56%
Terraform & IaC (50 Qs)•Part 3: Kubernetes Infrastructure as Code & GitOps (31 - 42)

How do you manage Secrets in GitOps without committing plaintext secrets to Git?

senior LevelMost AskedKubernetes

In Simple Words: Two production patterns:

  1. External Secrets Operator (ESO): Git contains an ExternalSecret CRD referencing a secret in AWS Secrets Manager or HashiCorp Vault. ESO fetches the secret from the cloud vault and syncs it into a native Kubernetes Secret.
  2. Sealed Secrets (Bitnami): Developers encrypt secrets with a public key and commit the encrypted SealedSecret to Git. Only the controller running inside the cluster has the private key to decrypt it.