Skip to content

Outage behavior

What Identity keeps doing, and what it refuses, when a store or dependency is down. The contract is fail closed: a credential is never honored on the strength of a store that cannot answer. Related: Cratis/Identity #121, #57.

Rows marked open have no spec yet; treat them as intent, not proof.

Outage Keeps working Refused Recovery and evidence
Chronicle kernel down Revocation is still acknowledged (HTTP 200). Online refresh is denied as invalid_grant (HTTP 400). Specs: Source/Identity.Integration.Specs/for_Revocation/when_chronicle_is_unavailable.cs (CI release gate “Release gate - Chronicle-down behaviour”); recovery delivery retry: Source/Identity.Specs/Revocation/when_both_stores_are_restored_and_chronicle_is_unavailable.cs. The spec restarts Chronicle and waits for recovery afterwards.
Read model behind or stalled (Chronicle up) Everything not waiting on the projection. Sign-in is refused as temporarily_unavailable once the catch-up budget (Accounts.ReadModelCatchUpTimeout, default 30 s) elapses (Source/Identity/Protocol/ReadModelCatchUp.cs, EventSourcedAccountAdapter.SignIn). Specs: Source/Identity.Specs/Protocol/for_ReadModelCatchUp/when_the_projection_times_out.cs, for_ProtocolCommands/when_a_command_succeeds_without_appends_while_a_projection_is_stalled.cs.
Request abandoned during catch-up Other requests. The abandoned sign-in stops waiting: the HTTP request’s RequestAborted token flows from GitHubSignInEvents through IAccountSignIn, ProtocolCommands and SignInWithUpstreamKey into the wait. Arc captures a cancellation raised inside the command pipeline into a failed result, so EventSourcedAccountAdapter re-checks the request token (never the internal catch-up timeout, which still refuses) immediately after each pipeline execution and after the account read, before any refusal is derived from the result or the read, and throws OperationCanceledException instead of temporarily_unavailable or account_not_active. Between those points a cancellation is observed only by the awaited operations that were handed the token (catch-up waits); other reads, such as the account projection read, do not take it. GitHubSignInEvents.RemoteFailure ends an aborted callback without a denial redirect, and no session principal or cookie is issued. A request cancelled after the sign-in events were appended is not rolled back: the account or profile change may already be recorded. A fresh sign-in converges on the same account through the upstream-key reservation and the unique-upstream-key constraint (the adapter retries a conflict once), but this is not proven by an end-to-end spec. Specs: Accounts/SigningIn/when_signing_in/and_the_request_is_cancelled_during_the_catch_up_wait.cs, and_the_pipeline_captures_a_request_cancellation.cs, and_the_request_is_cancelled_after_the_command_succeeds.cs, and_the_request_is_cancelled_and_the_account_is_inactive.cs, for_GitHubSignInEvents/when_the_request_is_aborted_before_the_callback_fails.cs, when_the_request_is_cancelled_after_the_sign_in_is_recorded.cs. The pipeline-capture spec simulates Arc’s behavior with a mocked pipeline; no spec runs the full Arc pipeline.
Fence log unavailable Nothing that needs a fence decision. Redemption and issuance are denied: RefuseIssuanceDuringRecovery closes the restriction gate and returns false when the recovery epoch cannot be read (Source/Identity/Authorization/RefuseIssuanceDuringRecovery.cs). Open: no end-to-end outage spec. Restore and completeness behavior: Source/Identity.Specs/Revocation/when_a_backup_omits_denials_above_its_checkpoint.cs.
Operational store (Mongo) down Unexpired signed tokens validate offline at resources. Not verified against code. Open: no spec stops the operational store; no claim is made beyond fail closed intent.
Upstream provider (GitHub) down Existing sessions. A failed provider call (HTTP error, malformed response) ends the sign-in as access_denied; temporarily_unavailable is reserved for an account-store refusal (Source/Identity/Upstream/GitHubSignInEvents.cs, RemoteFailure). Open: no spec for a provider outage end to end.
Identity restart or restore Resources validating unexpired signed tokens. While the restriction gate is closed the guarded issuance paths refuse (health check identity-restriction-recovery, registered in Source/Identity/Hosting/IdentityServiceCollectionExtensions.cs). The integration host waits for recovery (IdentityHost.WaitForRecovery).
  • Offline JWT validation at a resource continues until token expiry during any Identity outage; see Resource token validation for the revocation window.
  • Recovery after compromise follows the runbooks in Compromise matrix and recovery runbooks.
  • Making the Chronicle-down gate a required check is a repository setting (list the Build and specs job as a required status check on main), not a file in this repository.