Why not store secrets in Git or in ConfigMaps?
BeginnerProductionSecurity Hardening & Compliance
Answer
Git history is forever and widely readable, and ConfigMaps have no secret handling (no encryption options, shown in plaintext by describe-level access). Use a secret manager (AWS Secrets Manager, Vault) with External Secrets Operator or the Secrets Store CSI driver, or SOPS/Sealed Secrets if you must keep encrypted values in Git.
More on Security Hardening & Compliance
What is the baseline security checklist for a production cluster?BeginnerWhy should containers run as non-root?BeginnerHow should human access to the cluster be managed?BeginnerWhat is the purpose of image scanning in CI and in the cluster?BeginnerWhat is a default-deny NetworkPolicy baseline?BeginnerWhy should nodes be treated as immutable?Beginner