How would you design secrets management for 100 services using Kubernetes and GitOps?
AdvancedProductionSecrets and Credentials
Answer
A central secret manager (AWS Secrets Manager or Vault) with a path convention per team and environment; External Secrets Operator in each cluster with a ClusterSecretStore and namespace-scoped SecretStore policies; IAM roles (IRSA) giving each namespace access to only its prefix; Git contains only ExternalSecret manifests; rotation is configured in the manager with refreshInterval picking up changes, and apps reload via Reloader or restart-on-change. CI never sees production secret values. Access is audited via CloudTrail, and a break-glass procedure covers manager outages (cached synced Secrets keep running).
More on Secrets and Credentials
Why are long-lived credentials in CI a problem, and what is the modern alternative?BeginnerHow do you manage application secrets from build to runtime?IntermediateHow do you store secrets in Git safely for GitOps?IntermediateHow do you detect secrets committed to a repo?BeginnerWhat do you do after a secret is committed to Git?IntermediateHow do you use HashiCorp Vault with CI/CD?Advanced