Break-glass Procedure

Published
Length
3 min read

Luis Felipe Dias

All posts

A break glass procedure gives engineers fast emergency entry to production when normal sign-in fails. You set it up by creating high-privilege backup accounts with strict alerts and time limits. Most teams store these backup keys in a secure vault or a locked cloud role. During an outage, an on-call engineer checks out the role to fix the broken app. Still, these emergency roles often grant full admin rights across the whole system. Broad rights increase the risk of a costly mistake during a hig

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 entry to production when normal sign-in fails. You set it up by creating high-privilege backup accounts with strict alerts and time limits. Most teams store these backup keys in a secure vault or a locked cloud role. During an outage, an on-call engineer checks out the role to fix the broken app. Still, these emergency roles often grant full admin rights across the whole system. Broad rights increase the risk of a costly mistake during a high-stress outage.

How a native break glass procedure works

In a standard setup, the security team creates a dedicated emergency role ahead of time. This role sits outside the normal single sign-on flow so it works during identity outages. The team protects the role with strong multi-factor keys kept in a safe place. When a severe outage hits, the on-call engineer requests the emergency role. A ticketing tool or chat bot logs the reason for the emergency request. Some teams require a second person on the team to approve the request first. Other teams allow self-approval so the engineer can fix the outage right away. The moment the role becomes active, the cloud platform sends high-priority alerts to security. Every sign-in event writes a record to a central log storage bucket. After the team fixes the incident, an automated rule revokes the active session. The security team then rotates the backup keys and reviews the ticket notes.

What native emergency roles solve and what they miss

Native emergency roles solve the core problem of getting locked out during a major failure. They give the team a clear path into production when primary identity tools go down. They also create an entry log showing who claimed the emergency role and when. Still, native emergency setups stop watching once the engineer logs into the target system. They decide who can log in, not what individual commands or queries do in flight. Once inside a database or server, the engineer holds full root or admin permissions. A tired engineer at three in the morning can run a drop table command. They can also run a broad query that returns raw emails, phone numbers, or card numbers. Native role logs show that an admin session happened, but miss the exact SQL statements. To review the incident later, teams must dig through scattered server and database logs. Even worse, if an attacker steals the emergency role, nothing blocks destructive commands in flight.

How to review and test emergency workflows

An emergency workflow only works if the team tests it before a real crisis hits. Teams should run scheduled fire drills every quarter to check the backup sign-in path. During a drill, an on-call engineer claims the emergency role and runs a safe read check. The security team verifies that the high-priority alert fires within one minute of sign-in. They also check that the session cut-off timer drops the role on schedule. After any real use or drill, the team must hold a short review meeting. They match the ticket reason against the commands run during the emergency session. If the engineer only needed to restart one service, full database admin rights were too broad. Teams should split one giant admin role into smaller roles for each part of the stack. Scoping roles by task keeps a single mistake from taking down healthy systems.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

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 runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. 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 it only during severe outages or when the main sign-in provider fails. It is not for daily work or routine bug fixes.

Should emergency access require a second person to approve?

Many teams allow self-approval during an outage so engineers can fix the problem right away. To stay safe, they pair self-approval with instant security alerts and strict post-incident reviews.

How often should teams rotate break glass credentials?

You should rotate backup keys right after every emergency use and after every test drill. If the keys sit unused, rotate them on a set schedule every ninety days.

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.