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:
- External Secrets Operator (ESO): Git contains an
ExternalSecretCRD 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. - Sealed Secrets (Bitnami): Developers encrypt secrets with a public key and commit the encrypted
SealedSecretto Git. Only the controller running inside the cluster has the private key to decrypt it.