Interview Prep/CI/CD/Secrets and Credentials

What are the risks of passing secrets as environment variables in containers and CI jobs?

IntermediateProductionSecrets and Credentials
Answer

Env vars leak through crash dumps, docker inspect, /proc/<pid>/environ, child processes, debug endpoints, and verbose error output. They are acceptable for short-lived pipeline jobs with masking, but for long-running apps prefer mounted files (tmpfs-backed volume from a secrets driver) or direct secret manager reads, and rotate more frequently.

All CI/CD questions

More on Secrets and Credentials