How do you design secrets management for a Git-driven deployment (GitOps) on Kubernetes?
AdvancedProductionSecurity: secrets, signing, access and supply chain
Answer
Git holds references, not values. External Secrets Operator syncs from AWS Secrets Manager or Vault into cluster Secrets using workload identity, so no secret material crosses Git or CI. If encryption in Git is preferred, use SOPS with KMS and Flux or Argo CD decryption support, and rotate keys on a schedule. Secret access is audited at the secrets-manager layer.
More on Security: secrets, signing, access and supply chain
What are the first things you do when a secret is committed to a repo?BeginnerHow do you prevent secrets from entering the repo in the first place?IntermediateWalk through purging a leaked secret from a 5 GB repo with 200 contributors.AdvancedWhy use OIDC federation for cloud credentials from GitHub Actions instead of stored keys?IntermediateWhat is your policy on signed commits and how do you enforce it?IntermediateWhat do signed commits not protect against, and what supply chain controls complement them?Advanced