A prod deploy waits for approval, but on-call is asleep and the fix is urgent. Design break-glass.
IntermediateScenarioSecrets, OIDC & Environments
Answer
Situation read → Need speed without silently bypassing controls.
What I'd do →
- Separate environment
prod-emergencywith a small senior approver group and its own AWS role, deploy brancheshotfix/*andmain. workflow_dispatchwithreasoninput written to the summary and posted to an incident channel.- Alert security on every use (audit log streaming rule).
- Post-incident review of every emergency deploy.
Why → A documented, audited fast path beats admins bypassing protection rules.
Interview tip → Emphasize auditability over speed alone.
More on Secrets, OIDC & Environments
You find AWS access keys stored as repo secrets in 25 repos. Plan the migration.IntermediateA developer asks to print a secret in the log "just once" to debug. What do you do instead?BeginnerStaging and prod need different database URLs and different AWS roles, using one workflow. How?BeginnerSecurity requires two people for prod deploys: the author cannot approve. Configure it.BeginnerWrite the AWS trust policy for a role used only by the prod deploy job of one repo.IntermediatePR workflows need read-only AWS access for `terraform plan`, including from same-repo branches. How do you set trust?Advanced