Interview Prep/DevSecOps/Secrets and Identity Management

A legacy app reads its config only from environment variables, and security says env vars are unsafe. How do you handle it?

IntermediateScenarioSecrets and Identity Management
Answer

Situation read → Env vars leak through /proc/<pid>/environ, crash dumps, debug pages and child processes. But a rewrite is not happening this quarter.

What I'd do →

  1. Keep values out of the manifest: source the env vars from a Secret synced by ESO, not from literal YAML.
  2. Restrict pods/exec and secret read access in RBAC.
  3. Disable debug endpoints and error pages that dump the environment.
  4. Plan the move to file-mounted secrets read at startup, which also allows hot reload.
  5. Make sure log shippers do not capture environment dumps.

Why → Pragmatic risk reduction now, cleaner design later.

Interview tip → Show you can reduce risk without blocking delivery.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets and Identity Management