Break Glass Procedure

Published
Length
3 min read

Luis Felipe Dias

All posts

A break glass procedure gives engineers fast emergency permissions to fix broken production systems. Teams set up this path by creating standby admin roles with strict alerts and time limits. During an outage, normal login flows can break or slow down recovery. Most teams solve this by keeping a high-privilege account ready for emergencies. Still, broad emergency roles give users full control over sensitive data and system states. One wrong command during a high-stress outage can delete tables o

Break-Glass Access Procedures + Stored Procedure Security: the complete guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free white paper. No spam. Unsubscribe anytime.

A break glass procedure gives engineers fast emergency permissions to fix broken production systems. Teams set up this path by creating standby admin roles with strict alerts and time limits. During an outage, normal login flows can break or slow down recovery. Most teams solve this by keeping a high-privilege account ready for emergencies. Still, broad emergency roles give users full control over sensitive data and system states. One wrong command during a high-stress outage can delete tables or expose customer records.

How to build a native break glass procedure

To build a break glass procedure, teams first create dedicated emergency roles in their cloud or database systems. These roles sit idle during normal work days and stay separate from daily accounts. When a major outage hits, an on-call engineer requests the emergency role through a ticket or chat tool. The system checks the request and alerts the security team right away. Some setups need a second person to approve the request before the role activates. Other setups grant the role right away so the engineer can fix the bug fast.

Once the role is active, the user logs in with strong multi-factor checks. Hardware tokens or backup codes often protect these standby accounts from theft. A built-in timer then revokes the role after a few hours. This timer makes sure nobody keeps admin rights after the outage ends. Every login event sends a high-priority alert to a central log system. The security team reviews these logs the next day to verify why the user needed emergency rights.

What native emergency roles solve and what they miss

Native emergency roles solve the problem of getting into a locked or broken system fast. They remove slow approval chains when every minute of downtime costs money. They also keep daily accounts small and safe by moving admin rights into a separate flow. Auditors like this setup because it shows a clear start and end time for emergency logins.

Still, native role switches leave a major gap during the active session. The identity tool only decides who can log in at the start of the event. Once the engineer gets the admin role, the system stops checking individual actions. The engineer can run any query, drop production tables, or read raw emails and card numbers. Native cloud logs often show that a session happened, but miss the exact database queries or shell commands run in flight. Teams must trust that tired engineers under pressure will not make a mistake.

Break-Glass Access Procedures + Stored Procedure Security: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Why teams must control actions inside emergency sessions

True safety during an incident requires control over each command and query, not just the login step. Instead of handing out a full admin role, teams can scope emergency work to the exact task needed. For example, an engineer might need to restart a service or run one fix script. They do not need the power to dump a whole user table or change billing records.

Data masking also plays a key role during live incidents. When an engineer runs a query to check a broken order, masking rewrites matched fields in results. The tool replaces phone numbers and national IDs with safe placeholder text in flight. This lets the engineer fix the bug while keeping sensitive records safe. Real-time command checks can also block dangerous drop statements or require a quick peer check for risky writes. After the fix is done, detailed audit logs show every single query and command for the post-incident review.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev sits inline in the protocol beside each supported service as an open-source proxy, a sidecar for your database or API. For every query or command an AI agent or engineer runs against production, hoop.dev decides to pass, mask, block, or hold it for human approval.

First, hoop.dev guardrails block banned queries before they run or hold risky ones for review, and hoop.dev data masking rewrites matched sensitive values in responses in memory. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

When should a team use a break glass procedure?

Teams should use this procedure only during major production outages or security incidents. It serves as a backup path when normal login tools fail or lack needed permissions.

How often should teams test emergency accounts?

Teams should test their emergency accounts at least once every quarter during planned drills. Regular tests prove that backup keys work and alerts reach the security team on time.

What happens after an emergency session ends?

The system revokes the admin role right away and rotates any static keys used. The team then reviews all commands run during the session to close the incident ticket.

Save the open-source gateway.

hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.