Interview Prep/CI/CD/Secrets and Credentials

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).

All CI/CD questions

More on Secrets and Credentials