Continuation surface for Entra ID: signed policy snapshot + constrained local issuance
Summary
When the Entra identity plane is unavailable, an organisation that authenticates only to Entra stops operating — not degraded, stopped. Microsoft already ships most of the primitives (Conditional Access resilience defaults, Backup Authentication System, disconnected Azure Local), but there is no supported contract that lets a customer hold a verifiable local copy of policy and identity state, and no MCP surface for agents to operate during the outage.
This is a proposal for that contract, with a reference implementation and a test suite.
Evidence
Entra sign-in and dependent applications degraded on 12 November 2026, roughly 12:00–20:00 UTC, with aggregated reports peaking at ~109× the normal rate, dominated by "Entra login is not working" and "Entra apps not loading".
Source: third-party outage aggregators (instatus.com, statusgator). Microsoft has not
published a postmortem at time of writing, so these figures are indicative, not official.
Where current mitigations stop
| Mechanism | Covers | Stops at |
|---|---|---|
| CA resilience defaults | Keeps existing sessions usable | No new tokens, no new devices |
| Backup Authentication System | Microsoft-internal failover | No customer surface, no API |
| Windows Hello cached creds | Enrolled, previously-signed-in devices | Nothing for VDI, BYOD, service principals, APIs |
| Azure Local disconnected ops | Azure infrastructure | No Entra identity continuation |
| Azure MCP Server v3 | Management plane | Assumes reachability |
Proposal
APIs
GET /continuity/v1/snapshot— signed, read-only bundle: policies in evaluation-ready form, group/role membership for named principals, app registrations and required scopes, sequence + validity window. No secrets, no keys, no refresh tokens.POST /continuity/v1/token— short-lived (≤60 min), scope-allowlisted token, only while an incident is declared or a pre-authorised drill window is open. Markedxms_continuity: trueso downstream can step up on reconnect.GET /continuity/v1/delta— reconciliation of everything that happened while degraded.
MCP servers (this repo)
Entra.Continuity.Mcp— status, snapshot fetch/verify, degraded sessions, reconcile.Entra.Policy.Mcp—evaluate_policy_locally(snapshot, context),diff_policy,explain_denial. The point is evaluation parity: an agent should be able to answer "would this sign-in have been allowed?" offline with the same result the service returns.
Safety properties (the reason this is a fallback and not a bypass)
- Continuation can never escalate — snapshot roles are a read-only subset.
- Time-boxed by construction — issuance requires an active incident or declared drill.
- Hardware-bound — credentials derive from a key enrolled while healthy.
- Visible — every continuity token carries a marker claim.
- No offline master secrets — the snapshot is data, not a credential store.
- Customer-held keys — snapshots encrypted to a customer key.
Reference implementation
A dependency-free stdio MCP server implementing the tool contract, plus a loopback issuer
(/health, OIDC discovery, /token, /reconcile) so downstream services repoint by
configuration. 38 tests, 14 of them adversarial: audience override, scope escalation,
device-key brute force, alg:none forgery, expired/revoked sessions, audit tampering,
oversized bodies — all refused.
Repository: https://github.com/JPeetz/ENTRA-MCP
Questions for the team
- Is a snapshot model compatible with the existing resilience defaults, or does it supersede them?
- What is the minimum safe snapshot TTL given token lifetime policy?
- Can Azure Local disconnected operations host the continuation service, making the path single-vendor and air-gappable?
- Would Microsoft publish a reference
evaluate_policy_locallyso third-party gateways can match semantics exactly?
Note: the attached implementation is Python for reviewability; Azure.Mcp.Server is .NET,
so this is offered as a design + conformance artefact, not a merge-ready PR.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @microsoft/azure-mcp.
Update — always-on beacon + automatic detection
Two gaps in the original proposal, now closed in the reference implementation
(repo, commit e1439a5):
1. Failover cannot depend on a human declaring an incident.
HealthMonitor now probes the identity plane on three independent signals — DNS, TLS and
HTTP separately — and transitions the mode itself. Hysteresis on both edges: three
consecutive failures to degrade, two consecutive successes to recover. A single 502 never
opens minting; a 401/404 counts as up because the service is answering. Automatic mode is
opt-in and every transition is audited.
2. Discovery is the missing piece, not just the API. The gateway now serves a signed beacon at all times, in every mode, including healthy:
GET /.well-known/continuity-beacon.json
{ "authority": "cloud" | "local" | "drill", "endpoints": {...},
"capabilities": {"can_mint": bool}, "expires_at": ... , "sig": ... }
authority is the field a service acts on, so failover is a read of one document rather
than a config change. The beacon is HMAC-signed (well-known/mDNS discovery is otherwise
spoofable on-LAN) and carries a 60-second TTL — a stale beacon is treated as unreachable
rather than acted on.
New threats covered in the security model: beacon spoofing, beacon replay/staleness, probe oscillation, and silent behaviour change. 52 tests, all green.
Still the open questions from the original issue, especially: would Microsoft publish
evaluate_policy_locally reference semantics?
Update — the bootstrap credential is a tenant administrator's own account
The gateway no longer self-authorises. It is bound by an administrator of the customer's
original Entra tenant, and that admin's own identity is the only thing that can create it
(repo, commit 9053088):
POST /admin/bootstrap Authorization: Bearer <admin's Entra access token>
-> { "api_key": "ok_...", "tenant_id": ..., "scopes": ["continuity.read","continuity.mint"] }
Checked before a key is issued: administrative directory role (wids/roles — Global
Administrator, Application Administrator, Cloud Application Administrator, Privileged Role
Administrator), token not expired, tenant matches the already-bound tenant, and the token is
not one this gateway issued.
The key is strictly narrower than the credential that made it
| Admin token | Downstream API key | |
|---|---|---|
| Lifetime | ~1 h | 90 days, revocable |
| Can bootstrap | yes, once | no |
| Can mint continuity tokens | no | yes |
| Stored | never | salted HMAC only |
| Scope | tenant admin | continuity.read, continuity.mint |
The admin token can do exactly one thing here, once. A continuity token can never bootstrap the gateway — that direction is closed explicitly, because a fallback that can promote itself into its own authority is not a fallback.
Question for the team
Is there a supported way to bind a tenant-level administrative role to a non-interactive bootstrap like this today — i.e. an App Registration with an admin-consented directory role rather than a human Global Admin — or does the bootstrap have to be a human sign-in?
Tests: 72, all green, including keyless-miniting refusal, revoked-key refusal, tenant rebind refusal, and continuity-token-as-bootstrap refusal.
Update — security hardening (the bootstrap now verifies signatures)
The previous revision verified an admin token's claims but not its signature. That is the
difference between "the token says I am Global Admin" and "Microsoft says you are Global
Admin", so it was the first thing to fix (commit b2d0a72).
What changed
| Control | Effect |
|---|---|
| RS256 verification against the tenant JWKS, before any claim is read | A self-signed token claiming admin is refused |
| Fails closed with no JWKS loaded | No trust anchor means no bootstrap, not "trust it anyway" |
alg allowlist (RS256 only) |
none and HS256-confusion bypasses refused |
jti replay cache |
A captured admin token works exactly once |
| HKDF key separation | Token / beacon / audit keys are independent |
| HMAC'd audit chain | Write access alone cannot forge a history |
| Bounded handler pool (32) | Connection floods refused rather than absorbed |
The RS256 implementation is RSASSA-PKCS1-v1_5 over SHA-256 in pure integer arithmetic —
no third-party library — and is tested against real openssl-generated signatures,
including a tampered payload, unknown kid, expired token, tenant mismatch, and a chain
rebuilt with a foreign audit key.
Still open, deliberately: continuity tokens remain HS256 (shared key) and there is no mTLS between downstream and gateway. Both are documented as residual risks rather than implied away.
94 tests, all green.
The question from my previous comment still stands, and now matters more: is there a supported way to bind a tenant administrative role to a non-interactive bootstrap — an App Registration with admin-consented directory role — rather than requiring a human Global Admin sign-in?
Update — continuity tokens are now Ed25519-signed
Previously the tokens this gateway issued were HMAC-signed over a shared key, which meant
every downstream service able to verify a token could also mint one. That is the wrong
shape for a fallback, so it is fixed (commit 53a1040):
- tokens are EdDSA (Ed25519) by default
- the gateway publishes the public half at
GET /jwks.json(kty: OKP, no private material) - a consumer verifies a token without ever holding minting authority
- each verifier refuses the other algorithm, so EdDSA/HS256 key-confusion is closed in both directions
- HS256 is retained only for constrained devices that cannot do Ed25519 — explicit, never silent
The Ed25519 implementation is RFC 8032 in ~150 lines of integer arithmetic, and is checked byte-for-byte against the RFC's own test vectors (secret → public key → signature, three vectors). Worth noting: my first version had an unclamped low-3-bits bug that still produced correct signatures for two of the four keys I tried by hand — the published vectors caught it immediately. That is the argument for test vectors over spot checks.
CI now enforces the claims
.github/workflows/ci.yml runs on 3.9 and 3.12: full suite with ResourceWarning as error,
a dependency-free secret scan, and a docs claim checker that fails the build if a README
states a test or tool count the code does not have. It found a stale "24 tests" claim in the
proposal on its first run.
112 tests.
Still open, deliberately: no mTLS between downstream and gateway; the signing key lives in process rather than an HSM. Both documented as residual risks.