---
title: Compromise matrix and recovery runbooks v1
editUrl: https://github.com/Cratis/Identity/edit/main/Documentation/security/compromise-matrix-v1.md
description: 'Status: Draft. Issue: Identity #18. Owner review and operating commitments: Identity #20. This is a proposed response contract, not evidence of…'
lastUpdated: 2026-11-13T00:00:00.000Z
---

Status: Draft. Issue: [Identity #18](https://github.com/Cratis/Identity/issues/18). Owner review and operating commitments: [Identity #20](https://github.com/Cratis/Identity/issues/20). This is a proposed response contract, not evidence of implemented containment, completed rehearsals or production sign-off.

## Boundaries and matrix

A compromised process has the full authority of every key, credential and realm it can reach. Containment comes from authority it does **not** hold. The controls below describe the intended deployment, not a guarantee about an unverified installation. Inventory actual key reuse, replicas, secret-store access and hosted realms before choosing the recovery scope; broaden it when exposure cannot be bounded.

| Compromise | Attacker can | Attacker cannot (containment) | Contained by | Detection signals | Recovery runbook link | Owner (role; holder per Identity #20) | Rehearsal reference |
| --- | --- | --- | --- | --- | --- | --- | --- |
| One app's edge key: v1 HMAC secret | Forge signed envelopes for that app (impersonation additionally requires an authenticated hop and bearer binding that the verifier checks), including identity and tenant assertions; impersonate any existing member, including privileged ones, and use that member's legitimate authority (add or change memberships and roles, mint product-local PATs, create grants) through authorized product operations, leaving footholds that survive key rotation | Sign for sibling apps with distinct keys/audiences; mint issuer tokens from this key alone; override authoritative membership or roles by envelope assertion alone, only where the product independently verifies authorization (the Arc forwarded-identity path imports asserted claims and roles, so a product that trusts them gains no such containment) | Per-app keys and audiences; independent product authorization; no unsigned fallback | Secret-store access anomaly; unexpected envelope identities/tenants; replay or verification failures (valid forgeries may have none) | [HMAC edge key](/identity/security/runbooks/edge-key-hmac/) | AuthProxy maintainer + key custodian; woksin holds the role (Identity #20) | [Infrastructure #294](https://github.com/Cratis/Infrastructure/issues/294) |
| One app's edge key: v2 ES256 app public key disclosed, key only | Verify signatures; learn public key metadata | Forge envelopes or derive AuthProxy's private key from the public key | Private signing authority only at AuthProxy; trusted verifier key configuration; ES256 fixed by envelope version | Public-key disclosure report; unexpected verifier configuration changes indicate a different, broader incident | [ES256 public key](/identity/security/runbooks/edge-key-es256-public/) | Envelope / Arc runtime contract maintainer; woksin holds the role (Identity #20) | [Infrastructure #294](https://github.com/Cratis/Infrastructure/issues/294), public-only triage scenario to include |
| One app's edge key: v2 ES256 AuthProxy private key leaked | Forge for **every app that key signs for**, not merely the reporting app, including impersonating existing privileged members and using their authority to create memberships, roles, PATs and grants that survive key rotation | Sign for apps using independent keys; mint issuer tokens from the edge key alone | Per-app private keys/audiences; AuthProxy-only secret custody; sign-only KMS use where supported | Key-export/signing anomalies; envelope misuse; public verifier logs alone cannot distinguish a valid forgery | [ES256 private key](/identity/security/runbooks/edge-key-es256-private/) | AuthProxy maintainer + key custodian; woksin holds the role (Identity #20) | [Infrastructure #294](https://github.com/Cratis/Infrastructure/issues/294) |
| One backend (app process) | Control its data and operations; use its Chronicle/workload credentials and tokens received for its audience; forge v1 envelopes if it holds the HMAC secret | With v2, forge envelopes from a public verification key; access sibling credentials/keys absent separate exposure; use its audience-bound token at another resource | Per-app Chronicle credentials and entitlements; audience/tenant constraints; detached hosted issuer; sibling secret isolation | Unexpected data access/egress, Chronicle operations, workload use, deployment or verifier changes | [Backend process](/identity/security/runbooks/backend-process/) | Product authorization and consumer maintainer; woksin holds the role (Identity #20) | [Infrastructure #460](https://github.com/Cratis/Infrastructure/issues/460), [#296](https://github.com/Cratis/Infrastructure/issues/296); #294 covers edge rotation only |
| AuthProxy process | Assert any identity/tenant to every app it fronts; read tokens, PATs and sessions in transit; use all reachable signing keys | Mint issuer tokens without issuer authority; directly change independently held product membership/roles (but can impersonate someone who already holds them) | Treated like an issuer: own namespace, minimal privileges, one deployment per isolation tier; honest apps independently check live membership/roles and fences | Unusual signing, session or secret access; unexpected tenant/identity patterns; egress, image or TLS identity changes | [AuthProxy process](/identity/security/runbooks/authproxy-process/) | AuthProxy maintainer + recovery/on-call owner; woksin holds the role (Identity #20) | [Infrastructure #297](https://github.com/Cratis/Infrastructure/issues/297) (open, no completed drill) for process recovery; [#294](https://github.com/Cratis/Infrastructure/issues/294) covers edge-key sub-drill |
| Shared Identity host, including hosted Stage realms on one host | Mint tokens for **every realm served**; access reachable realm state/keys, including all hosted Stage realms on the shared host | Reach a genuinely separate host/tier without additional authority; realm separation alone does **not** contain a compromised common process | Issuer-bound realm routing, per-realm keys/event stores prevent request mix-ups, not process compromise; dedicated products host, separate Stage tier, per-app detached hosts where required | Unexpected issuance/clients, key or realm-store access, cross-realm activity, image/secret changes, fence-log or recovery-watermark anomalies | [Shared Identity host](/identity/security/runbooks/shared-identity-host/) | Identity module/issuer maintainer + hosted realm lifecycle maintainer; woksin holds the role (Identity #20) | [Infrastructure #299](https://github.com/Cratis/Infrastructure/issues/299) for products realm; [Infrastructure #458](https://github.com/Cratis/Infrastructure/issues/458) for multi-realm Stage recovery |
| Control plane: cluster admin, CI deploy credentials or secret-store admin | Control all reachable hosts, keys, sessions, PATs and grants in the cluster; tamper with deployment and recovery evidence | Be contained by per-app keys or realm/process separation within the same compromised administrative boundary | Outside Identity hardening scope; independently administered recovery authority required; separate admin identities, audited break-glass and restricted pipelines are infrastructure concerns | Cluster/CI/secret-store audit anomalies; unapproved admin access, deployment or key-policy changes; suspect in-cluster evidence | [Cluster-level recovery referral](/identity/security/runbooks/control-plane/) | Infrastructure incident authority + accountable issuer/security owner; woksin holds the role (Identity #20) | [Infrastructure #457](https://github.com/Cratis/Infrastructure/issues/457) for cluster-wide recovery and the cluster runbook; Chronicle credential and PAT-store compromise: [#459](https://github.com/Cratis/Infrastructure/issues/459); #294/#299 are sub-drills only |

Per-app keys, isolated tiers, one-deployment-per-tier AuthProxy and D13 dedicated signing are **target controls, not yet implemented or proven**: Infrastructure still shares Chronicle credentials across apps, and Identity loads private keys in-process. Track them in Infrastructure #294, #296, #297 and #298. A shared Identity host compromise includes the Chronicle credential resident on that host, so credential independence between realms holds only for exposure of an issuer key alone.

## Recovery rules shared by the runbooks

Use the draft [revocation protocol](/identity/specs/identity-revocation-v1/), especially §§3, 6–8: commit the scoped fence/epoch and outbox atomically, append durably to the independent fence log, and acknowledge only after both required durable commits. Preserve target ids, tombstones and retry identities. Review pending failures rather than treating a timeout as a successful revoke. Chronicle delivery is asynchronous; an eventually consistent projection is not revocation authority.

Revocation covers browser/on-behalf/runner sessions, OAuth authorizations and refresh families, delegation lineage, approvals and product-local PATs as applicable to the exposed authority. Product credential authorities must perform their own fences. Advance the applicable app/grant or realm epoch through a trusted authority and require affected verifiers to enforce it; a claim or rolled-back database counter alone does not invalidate anything. Do not invent a new wire claim or assume `jti` is a grant id. If trustworthy status/epoch correlation is unavailable, keep the affected routes denied.

Offline JWTs are not instantly revoked by rotating keys or revoking refresh families. Enforce authoritative status for sensitive work and stay closed until emergency rejection is proven across replicas or the [access-token profile](/identity/specs/identity-access-token-v1/)'s accepted lifetime plus skew has elapsed after the **last possible malicious issuance**. Confirm actual deployed bounds. Emergency compromised-key retirement is not routine rollover: no acceptance overlap for the compromised key; stage replacement trust only on clean components while traffic is denied. Bound and record any legitimate, uncompromised-key overlap from deployed envelope/token lifetime and cache rules; no duration is invented here.

If restoring state, apply revocation §6: prove contiguous independent fence-log coverage through the recovery barrier, reconcile outboxes and tombstones, and deny every older stateful credential by the independent recovery epoch; recovery requires that epoch and complete restriction recovery, with no exception. Missing coverage or uncertain verifier enforcement means not ready. A healthy process or rebuilt projection is insufficient. The [fence-log restore runbook](/identity/security/runbooks/fence-log-restore/) holds the operator procedure. Chronicle workload credentials share no trust root with the people realm, so a issuer-key-only exposure never implies Chronicle write access.

For every case, record the exposure window from earliest plausible compromise through containment and confirmed denial, widening it if evidence is incomplete. Preserve restricted audit evidence without copying raw tokens, PATs, session handles, keys or DPoP proofs into events, tickets or communications. Logs should correlate non-secret credential/grant ids, realm, app, audience, tenant, key id, fence sequence and timestamps. Recovery does not undo committed operations; product owners investigate and remediate affected data separately.

The [verified-caller contract](/identity/specs/arc-verified-caller-v1/) requires independent product authorization and no unsigned fallback. The [DPoP profile](/identity/specs/identity-dpop-v1/) prevents bound-token replay only when the key and enforcing path remain trustworthy; it does not contain a compromised AuthProxy or issuer. An incident must not introduce a Bearer downgrade for bound tokens.

## Decision dependencies and acceptance

- **D13 — accepted with gates ([Identity #15](https://github.com/Cratis/Identity/issues/15)):** a shared signing authority for the products realm (Direct and Studio) is accepted. The shared Identity-host row and the products-realm portion of control-plane recovery include Direct and Studio together. Edge-key and detached backend incidents do not acquire that blast radius merely because products share a realm; escalate if issuer authority is reachable. Production issuance for the products realm is blocked until all gates hold: signing isolation (a dedicated signer holds the key, never an application process); access tokens of at most 5 minutes; emergency key rejection tested end to end and surviving a restore (identity-revocation-v1 §6); grant and session invalidation after key rejection tested (identity-revocation-v1 §4); key rotation rehearsed once in staging; and verifiers enforcing audience binding per product, with distinct key ids alone not treated as scoping. If any gate fails at the issuance review, D1 (separate realms) is revisited before any production token is issued; the decision is reversible until production issuance.
- **D19 — option B, with option C ([Identity #17](https://github.com/Cratis/Identity/issues/17)):** one platform-run Identity host serves customer Stage app realms; a dedicated host per app is available as option C for customers that need isolation. Each realm has its own signing keys and stores, and realms never share a key store. Separate stores do not contain a compromise of the host itself, so a host compromise is recovered across **all** realms the host runs: key rotation and rejection per realm, invalidation of grants and sessions, and forced reauthentication (see the [shared Identity host runbook](/identity/security/runbooks/shared-identity-host/)). The products realm (D13) runs on its own host, not the shared customer host. A backend incident escalates to host scope in compact/self-hosted profiles that embed issuer authority.
- **D17:** Design A §10 proposes per-app keys/audiences, v2 verification-only backends and AuthProxy treated like an issuer, with rehearsed rotation, app-session revocation and exposure-window audit review. The edge-key and AuthProxy rows depend on verifying these controls, not on assuming a single app is always the maximum scope. This document does not approve a shared edge key.
- **Owner roles — decided ([Identity #20](https://github.com/Cratis/Identity/issues/20)):** woksin holds every role until he delegates it, covering the security and release role, key custody and component maintainership. This is a role assignment only: it does not commit anyone to on-call duty and does not prove operational readiness. Key custody procedures are part of the runbooks. Before release, record primary/coverage, security patch budget/escalation, conformance and OpenIddict upgrade owner, and first/recurring restore and rotation drill dates, including fence-log recovery. No patch time or drill interval has been agreed here. Use shared implementations, measure footprint/on-call load, and do not change Identity, AuthProxy, Ante and Arc runtime contracts incompatibly at the same time.

## Review and open points

Owner roles are decided in #20; sign-off in [#14](https://github.com/Cratis/Identity/issues/14) remains required. Infrastructure #294 and #299 are rehearsal references, not evidence that any drill passed. Extend or create the explicitly missing rehearsal issues; supply the infrastructure-owned cluster response link before operational use. Rehearsals must demonstrate old-key/old-credential denial across replicas, fresh authorized access, sibling containment and fail-closed restore, not just successful key creation.
