ADR 0008: Entra ID sign-in with local break-glass admins

  • Status: Accepted

  • Date: 2026-12-02

Context

Day-to-day access should use the organisation’s identity provider (MFA, Conditional Access, joiner/leaver processes). But a backup server is needed most when Microsoft 365 is broken, so it cannot depend only on Entra ID.

Decision

  • Entra ID (OIDC, auth code + PKCE via MSAL) for normal use, with roles from app roles on a dedicated sign-in app registration.

  • Local break-glass admins with password + TOTP (or single-use recovery code), replay protection, lockout, optional network allow-list, short sessions and an alert on every sign-in.

  • First admin created with a setup token from the server log, so a new installation cannot be claimed by whoever reaches it first.

  • Server-side sessions and a per-session CSRF token.

Consequences

  • Works when Entra is down; break-glass use is visible to everyone who gets alerts.

  • Admins must keep break-glass credentials outside Microsoft 365.

  • Role changes in Entra take effect at the user’s next sign-in (sessions last at most 12 hours).