Skip to content

Recovery: one backend app process

Status: Draft. Owner: product authorization and consumer maintainer with key custodian and recovery/on-call role; woksin holds the role (Identity #20). Follow the shared rules and revocation §§3, 6–8. Scope includes app data, Chronicle/workload credentials and received tokens, not just the public envelope key.

Unexpected app execution/egress, deployment changes, data reads/writes, workload identity use, Chronicle operations or verifier tampering. Establish earliest exposure and reachable stores/secrets. In compact/self-hosted profiles, determine whether the app embeds Identity: if so, use Identity-host recovery, not the detached hosted-app assumption.

  1. Isolate all affected app replicas from ingress, data stores and outbound access using trusted administration; preserve evidence.
  2. Disable the app’s Chronicle/workload credentials and stop background jobs or queues that can continue using them. Treat app-side authorization and logs as suspect.
  3. Inventory credentials and data reachable by the process. Escalate sibling, AuthProxy, issuer or control-plane access; recover a clean image/configuration and independently verify product membership/policy state before reconnecting.

Revoke compromised app Chronicle credentials, workload/service identities, OAuth client secrets, runner credentials and TLS identities it could read; provision replacements with the same narrow app entitlements on the clean deployment, then verify consumers before reconnecting. No acceptance overlap for exposed credentials. Rotate a resident v1 HMAC secret via HMAC recovery. A v2 public verifier key does not itself require private-key rotation. Keep issuer/edge private keys outside the app; rotate them only if exposure is found. Record legitimate, unexposed rollover bounds separately from emergency retirement.

Fence authorizations/refresh families for the app’s audience and app sessions, delegation/approval/runner records accessible during the window. Revoke exposed local PATs through the product authority. Advance the applicable trusted app/grant epoch and enforce it; broaden with owner coordination if the deployed mechanism only supports realm-wide invalidation. Use atomic fence/outbox plus durable independent log acknowledgement, not a projection update. Check for malicious memberships, grants or clients; remove unauthorized facts through their owning authorities without resurrecting old credentials. Honor offline-token denial/expiry and fail-closed restore rules before readiness.

Review independent workload/cluster, secret-store and Chronicle audit, AuthProxy sessions/access records, product data changes, membership/role/tenant changes and outbound destinations. Correlate non-secret ids and detect exfiltration, persistence, queued work or cross-app attempts. A compromised backend can bypass its own checks and falsify its logs; obtain independent evidence and investigate committed data damage separately.

Notify the product owner, accountable issuer/security owner, AuthProxy/Arc maintainers, key custodian and on-call/privacy roles. Include affected tenants/data and exposure uncertainty. The owner role makes the customer notification decision with privacy/security input.

Prove old app credentials cannot access Chronicle/workload endpoints, old sessions/grants/PATs deny, and new credentials have only intended app entitlements. Test sibling store/audience denial, clean verifier configuration, no unsigned fallback, fresh login and live product membership/policy under the verified-caller contract. Verify queued work, restored fences/epochs and data integrity before enabling traffic/jobs.

See also: Outage behavior for what keeps working while a store is down.

rehearsal issue needed for app isolation, credential replacement, data review and clean redeployment. Cratis/Infrastructure #294 applies only to a resident v1 edge key’s rotation sub-drill, not full backend recovery.