Skip to content

app.break_glass_sessions

TableRow level security on

Emergency full access an Owner took for one hour with a second factor and a written reason (Section 8.4). Every Owner and Admin is notified and the audit ledger records the start and end. Written only by app.start_break_glass and app.end_break_glass.

Primary key: id

Columns of app.break_glass_sessions
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.References app.organizations.id
person_iduuidNoOwner who took emergency access, from the session.References app.people.id
reasontextNoWritten reason, 20 to 2000 characters.
started_attimestamp with time zoneNoWhen emergency access began.
expires_attimestamp with time zoneNoWhen it ends on its own: one hour after it began.
ended_attimestamp with time zoneYesWhen the holder ended it early; NULL when it ran its hour.
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id