Interview Prep/DevSecOps/Secrets Management and Identity

Why is hard-coding secrets or putting them in environment variables a problem?

BeginnerConceptSecrets Management and Identity
Answer

Hard-coded secrets end up in Git history, logs, images and developer laptops, and cannot be rotated without a redeploy. Env vars are better but still leak via docker inspect, /proc/<pid>/environ, crash dumps and child processes.

Fetch secrets at runtime from a secrets manager using workload identity, keep them in memory or a tmpfs file mount, and make them short-lived and rotatable.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets Management and Identity