Interview Prep/DevSecOps/Secrets and Identity Management

Developers need occasional production database access for debugging. How do you grant it safely?

IntermediateScenarioSecrets and Identity Management
Answer

Situation read → Standing access is the risk. Just-in-time, time-boxed, logged access is the goal.

What I'd do →

  1. No permanent prod DB roles for developers.
  2. Access request flow (Teleport, StrongDM, Boundary, or an IAM Identity Center permission set with approval) granting 1–4 hours.
  3. Connect through a bastion-less path: SSM Session Manager port forwarding or the access proxy, with session recording.
  4. Default to a read-only replica role; writes need a second approver.
  5. Use IAM database authentication or Vault dynamic users so credentials expire with the session.

Why → Debugging stays possible, but every session has an owner, a reason and an expiry.

Interview tip → Use the phrase "zero standing privileges".

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets and Identity Management