Skip to navigation

Claude Code Break Glass: Incident Access Controls

In short: Time-box emergency cloud access during incidents, name an approver and preserve the decision trail for later review.

Published 17 min read
On this page

Direct answer

Break glass access is a pre-authorized emergency path with four properties: a narrow scope, a named human approver who is not the agent, a hard time box and a decision trail you review after the incident. You define it before an outage, not during one. Claude Code can help diagnose the problem and prepare commands inside the emergency session, but it does not approve its own escalation and it never holds the break-glass credential.

The concrete win is that an on-call engineer can get exactly the access needed to restore service in minutes, with the justification recorded as they go. The concrete loss is that any emergency path you make usable will occasionally be used when it should not be, which is why the retrospective review step is not optional. The practical implication is to build the break-glass identity, the approval route and the termination automation before the first incident that needs them. Deciding who is allowed to approve an emergency is an ownership question, and the Claude Code RACI: Ownership for Infrastructure Changes guide covers naming that accountable human.

Break Glass Criteria

Break glass exists because normal controls are sometimes too slow to restore service. A tightly scoped permission model that requires a change ticket and a two-hour review is exactly right for planned work and exactly wrong when production is down and customers are affected. The criteria for invoking the emergency path need to be written down so the decision to escalate is not a judgment call made under duress, and the same written-criteria discipline is what the Claude Code RACI: Ownership for Infrastructure Changes guide applies to who decides on a change class.

Define the trigger precisely. Production is unavailable or actively degrading, and the on-call cannot restore service with standing access. A deadline slipping is not a break-glass event. A single customer reporting an issue is not a break-glass event. The path exists to restore availability, not to speed up planned work.

Situation Break glass appropriate Better path
Production down, standing access insufficient Yes None, this is the trigger
Production degraded, mitigation blocked by permissions Yes None, this is the trigger
Urgent feature or fix needed No Emergency change with normal identity
Deadline pressure No Escalate to a service owner
Suspected security incident Separate path Security incident process

The last row matters because a suspected intrusion is a different emergency. Evidence preservation and containment decisions during a security incident have their own process, and routing them through a general break-glass path can destroy evidence. The Claude Code NIST Incident Tabletops guide covers rehearsing those decisions separately.

Derived, F063: break glass access for agent-assisted incidents should be time-boxed, approved and reviewed after use. This is a recommended incident governance pattern drawn from the CISA incident management resource guide. The caveat is explicit: this is a governance recommendation, and the guide was not readable in full during the research pass, so treat it as a pattern to adapt rather than a citation for a specific control.

Emergency Identity

The emergency path needs its own identity, separate from day-to-day access. Sharing standing credentials for break glass defeats the purpose, because then there is nothing to raise and no boundary that distinguishes emergency action from routine work.

Create a dedicated identity with the narrowest permission set that still allows restoration. Official, F061: AWS identity-based policies define the permissions granted to an IAM identity, and the IAM policies reference describes how those policies attach. An emergency identity still needs an explicit permission set and a reviewable owner. A break-glass role with a hand-written policy document is not a control; it is a credential with a story attached.

Use a permission boundary to cap what the identity can ever do, even if a broader policy is attached by mistake. Official, F062: AWS documentation describes permission boundaries as maximum permissions that identity-based policies can grant. The permission boundaries reference explains the mechanism. A boundary is a ceiling, not a time limit and not an approval workflow, so it complements but does not replace the time box. The Claude Code Cloud IAM Permission Boundaries guide covers reviewing that ceiling in normal operation, and the same least-privilege review for cluster-scoped agent identities is covered in the Claude Code Kubernetes RBAC: Least Privilege for Agent Identities guide.

Identity property Purpose Common mistake
Dedicated identity Separates emergency from routine action Reusing a standing admin role
Narrow policy Grants only what restoration needs Attaching an admin policy
Permission boundary Caps maximum effective permissions Treating the boundary as a time limit
Named owner Someone answers for the identity Unowned shared account
Credential vaulting Access granted only at invocation Standing credentials on a laptop

The final row is where many break-glass setups quietly fail. If the emergency credential sits in a password manager that three people can reach at any hour, the path is always open and the invocation record means little. Credential vaulting that requires a justified request, records who took it and logs the session is what turns the identity into a control.

Approval Path

Someone human approves the escalation, and that person is named in advance. The agent cannot approve its own escalation, and neither can the engineer who will use the access, because a break-glass path with no separation is just a standing credential with extra logging.

The approver does not need to be a senior manager. The right approver is someone who can make a fast risk call, is reachable at the hour the incident happens and is not the person executing the fix. A secondary on-call manager or an incident commander works well. Name a primary and a delegate, because the primary will sometimes be asleep or on a plane.

bash
  # break-glass approval record
# requester: on-call engineer invoking the path
# approver: named emergency approver (not the requester)
# incident_id: active incident this escalation supports
# justification: why standing access was insufficient
# scope: resources and actions the escalation covers
# expires_at: hard time box for the session

Official, F055: Claude Code tool decision events can record permission outcomes and the source of each decision. That telemetry is useful for reconstructing what the agent did during the emergency session, but it does not constitute approval. A log line showing a permission was granted is not the same thing as a named human accepting the risk of an emergency action. Separating the human who approves from the human who executes is the same ownership question the Claude Code Risk-Tiered Infrastructure Approvals guide covers for planned changes, and keeping the emergency procedure itself current is what the Claude Code Runbooks: Ownership and Review Cadence guide covers for operational documentation.

Claude Code security documentation describes permission modes, sandboxing and managed settings as safeguards. Those govern what the agent can technically do. None of them approve an emergency escalation, which is a business and safety judgment.

Time Limit

The time box is the control that makes break glass acceptable. Without it, emergency access quietly becomes standing access, and the whole boundary between emergency and routine erodes.

Set the time box in hours, not days. A common pattern is a box measured in single digits that expires automatically unless an approver explicitly extends it. Automation should terminate the access at expiry, not send a reminder and hope. An extension is a new decision with a new approver and a new justification, not a checkbox on the original grant.

Access window Allowed Prohibited
Start of session Restoration actions in scope Scope expansion without approval
Mid-session Diagnosis and verification Adding unrelated resources
Extension New approver, new justification Silent renewal by the requester
Expiry Automatic termination Relying on a manual reminder
After incident Review and credential rotation Leaving the path armed

The permission boundary from the identity section caps what is possible during the window. The time box caps how long it is possible. The two together are what make an emergency path bounded rather than merely logged.

Allowed Actions

Scope the emergency session to restoration. The temptation during an incident is to widen access to everything that might help, and that widening is exactly what turns a controlled path into an uncontrolled one. A frozen window makes the temptation worse, and the Claude Code Change Freezes: Emergency Change Rules guide covers the exception path that applies when the outage lands inside a freeze.

Allowed actions are the ones that restore availability: restarting services, scaling capacity, rolling back a deployment, failing over to a healthy region, adjusting a rate limit. Each of these has a direct line to restoring service, which is the whole justification for the elevation. When the rollback is a Terraform change, a saved plan reference gives the reviewer something concrete to compare against, which is the discipline covered in the Claude Code Terraform Plan Review: Gates Before Apply guide.

Prohibited actions are everything that is not restoration: creating new long-lived resources, changing identity or permission boundaries, exporting data, deleting backups, altering logging or audit configuration. Any of those deserves a normal review, even after the incident closes. For infrastructure changes that touch shared state rather than live traffic, the Claude Code Terraform State Access Controls guide covers locking the state store so an emergency session cannot quietly rewrite history.

Restoration action Typically allowed Still needs care
Restart or roll back a service Yes Verify the rollback target
Scale capacity up Yes Cost and quota implications
Fail over to another region Yes Data consistency
Adjust rate limits Yes Downstream impact
Create new permanent resources No Plan after the incident
Change IAM or boundaries No Normal review path
Export or delete data No Normal review path

Keep Claude Code inside the restoration boundary. The agent can read logs, propose commands, explain a failure and draft the rollback. It should not have the standing ability to run destructive commands outside a reviewed step, even during an emergency. The Claude Code Destructive Git Commands guide covers a related class of irreversible action where a single command removes data that looked recoverable.

Evidence map showing a break-glass invocation with requester, named approver, narrow scope, permission boundary and an expiry time box.
Editorial evidence map based on F061 and F063. Emergency access should be easier to authorize and harder to leave enabled. Labels are the post author’s.

Session Evidence

Record the session so the retrospective review has something to review. Evidence collected during the incident is worth more than any reconstruction afterward, because memory degrades and chat threads scatter.

Capture five things per escalation. Who requested and who approved, with timestamps. The justification, written before access was granted. The commands run and their outputs, so the actions are reconstructable. The agent’s tool decisions, which the telemetry from F055 can support. When the access terminated and by what mechanism.

Evidence captured Why it matters Reconstruction value
Requester and approver identity Names the decision makers Answers who authorized
Justification text Records why standing access failed Explains the trigger
Command log and outputs Reconstructs what changed Shows actual actions taken
Agent tool decisions Ties agent actions to the session Separates agent from human steps
Termination record Proves the time box held Confirms access ended

Claude Code monitoring and usage documentation describes tool decision events and telemetry that support this record. One caveat applies to agent transcripts: they can contain secrets if the session touched them, so store transcripts with the same access discipline as credentials. The Claude Code Secrets in Logs guide covers that exposure in detail.

Access Termination

Termination has to be automatic, or it will not happen reliably. An engineer who just spent six hours restoring production is not going to remember to revoke access, and a reminder email is not a control.

Automate expiry at the end of the time box. Rotate the break-glass credential after every use, so a session that ends does not leave a reusable secret behind. Confirm termination as part of incident closure, and treat an access that failed to terminate as its own follow-up item rather than a detail.

Termination step Mechanism Owner
Time box expiry Automated revocation Platform automation
Credential rotation Post-use rotation job Identity owner
Session closure Part of incident closure checklist Incident commander
Boundary recheck Confirm no boundary drift IAM owner
Failed termination follow-up Ticket with a named owner Security owner

The final row exists because automation fails. When a time box expires and the access does not actually revoke, you want a detected failure with an owner, not a silent standing credential discovered months later during a recertification. The Claude Code Access Recertification for Agent Identities guide covers the periodic review that catches exactly this class of drift, and the register design for the exceptions that survive it is covered in the Claude Code Security Exception Expiry and Ownership guide.

Retrospective Review

Every break-glass use gets reviewed after the fact, without exception. The review is not a punishment. It is how you learn whether the path was scoped right, whether the criteria held and whether the normal controls failed in a way worth fixing.

Review four questions per invocation. Was the trigger legitimate, meaning production was genuinely down or degrading. Was the scope correct, or did the session reach beyond restoration. Did the time box hold, and did termination succeed. Should the normal path change so this emergency does not recur.

Review question Good outcome Follow-up action
Was the trigger legitimate Yes, recorded justification holds None
Was scope correct Restoration only Tighten scope or policy
Did the time box hold Access expired on time Fix termination automation
Should normal access change Path was genuinely needed Grant standing access if recurring

The last row is the most useful one. If the same break-glass path gets invoked every month for the same reason, the emergency path is compensating for a standing access gap. Fix the underlying permission model so the routine path handles the recurring need, and the emergency path returns to being rare.

The Claude Code Blameless Postmortem Evidence guide covers running the review in a way that surfaces causes without assigning blame, which is what keeps people honest about invoking the path.

Workflow from incident detection through break-glass invocation, named approval, scoped emergency session, automatic termination and retrospective review.
Editorial workflow based on F062 and F063. The path authorizes quickly and terminates automatically, with a review after every use.

Working with Claude Code during the incident

Claude Code earns its place in an incident by accelerating diagnosis, not by holding credentials. Give it the read-only side of the emergency session: log queries, metric lookups, configuration reads and the drafting of candidate commands. Ask it to explain what it observes and to propose a restoration sequence with the risk of each step.

Keep the destructive and emergency-only actions as explicit human steps. The agent proposes; a person reviews and runs. This boundary is the same separation of duties used in planned work, and an incident is the wrong time to relax it.

Incident task Claude Code role Human role
Read logs and metrics Query and summarize Direct the investigation
Propose a fix Draft commands and sequence Approve the approach
Run restoration commands No Execute in the emergency session
Verify recovery Check signals and report Confirm service is healthy
Write the timeline Assemble the evidence Validate and annotate

For the change side of emergency work during a freeze window, the Claude Code Change Freezes: Emergency Change Rules guide covers the exception path and the retrospective approval that follows.

Tradeoff between fast emergency authorization that restores service quickly and the risk that a usable emergency path gets invoked when it is not needed.
Editorial tradeoff diagram based on F063. A usable path restores service fast; the trade is discipline so the path is not used for convenience.

The concrete win, loss, and implication

The concrete win is measured restoration time. An on-call engineer with a pre-authorized, correctly scoped break-glass path gets the access needed to restore service in minutes, with the justification captured at the moment of invocation instead of reconstructed from memory a week later.

The concrete loss is that the path will sometimes be used when it should not be. A deadline pressure situation gets mistaken for an emergency, or a session reaches slightly beyond its scope. That is the cost of making emergency access usable, and the retrospective review is the control that catches it.

The practical implication is to build the path before the incident that needs it. Define the criteria, create the dedicated identity with a permission boundary, name the approver and delegate, automate the time box and credential rotation, and require a review after every use. An emergency path improvised during an outage is not a control.

Control checklist covering invocation criteria, a dedicated bounded identity, named approver separation, automatic time box, session evidence and post-use review.
Editorial control checklist derived from F061 through F063. Passing it shows the emergency path was governed, not that the incident was handled perfectly.
Verdict that emergency access should be pre-authorized, time-boxed and reviewed, with the agent assisting diagnosis rather than holding credentials.
Editorial verdict based on F062 and F063. Build the path before the incident, and keep the credential with a human.

Data gap and future update

Three facts carry the technical claims. F061 and F062 are official AWS documentation on identity-based policies and permission boundaries. Both caveats matter: an emergency identity still needs an explicit permission set and a reviewable owner, and a boundary caps permissions without time-limiting access or creating an approval workflow. F063 is a derived incident governance recommendation from the CISA guide, and the research pass could not read that PDF in full, so this post does not cite specific pages from it.

No measurement of break-glass invocation frequency, mean time to restore, or misuse rate is reported here, because none was collected and no public dataset covering agent-assisted emergency access exists in the sources used. A future update quantifying how a governed break-glass path affects restoration time would need incident records across a defined population and a before-and-after window.

Cloud provider specifics vary beyond AWS. The identity and boundary mechanics described here follow AWS documentation, and equivalent controls in Azure or Google Cloud have their own documentation and behavior. Verify the equivalent mechanism for your provider rather than generalizing this post. The same provider-specificity applies to change evidence, which the Claude Code SOC 2 Change Evidence Packets guide covers for the audit side, and to the cluster-side network changes a session might touch, which the Claude Code NetworkPolicy: Blast Radius Reviews guide covers. For planned changes that carry a plan artifact, the Claude Code Terraform Drift Triage guide covers separating pre-existing drift from what the emergency session actually changed.

One AI API Key option for OpenAI-format agents

Claude Code uses an Anthropic-format route, so the One AI free model IDs are not a Claude Code model source. The research behind this post records Claude IDs as unavailable on 2026-11-27.

OpenAI-format agents have a separate path. One AI API Key provides https://api.oneaiapikey.com/v1, a single key and 46 live free model IDs. That is a different client and request format, not a workaround for Claude Code authentication. See the free model list for eligibility notes, or the quickstart for the request shape. The cost calculator helps compare hosted options before you commit.

FAQ

Should Claude Code hold the break-glass credential?

No. The agent can assist inside the emergency session by reading logs and proposing commands, but the credential belongs to a governed identity used by a human. An agent holding emergency credentials has no approval separation and no time-box enforcement.

Does a permission boundary time-limit the access?

No. A permission boundary caps the maximum permissions identity-based policies can grant. It does not expire access or create an approval workflow. Pair the boundary with an automated time box so the access is both bounded and temporary.

How long should a break-glass session last?

Measure it in hours and expire it automatically. The right length is long enough to restore service and short enough that the access cannot quietly become standing. Extensions need a new approver and a new justification.

What if the same break-glass path is needed every month?

That is a signal the standing access model has a gap, not a reason to normalize the emergency path. Grant the recurring need through the normal path with appropriate review, and keep break glass rare.

Can the engineer who will use the access also approve it?

The approver should be someone other than the requester. A break-glass path where one person invokes and approves their own escalation has no separation of duties. Name a primary approver and a delegate in advance so this holds at any hour.

More Claude Code troubleshooting

Sources

More in Blog

Try it

One API key for GPT, Grok, DeepSeek, Kimi, GLM, MiniMax, Qwen, Step, Beam, Nemotron, ERNIE, Hunyuan, Gemma, Laguna, LFM, LongCat, Llama, Solar, Jais, Mistral, K2 and Roleplay.

One AI API Key speaks the OpenAI and Anthropic formats, so you change the base URL and the key, not your code. Credit packs start at $10, and every model has a published per-token rate.

New accounts$10 credit on sign-up
Claim $10 credit →