Skip to content

Store State

StateStoreOperational implication
Product, policy, authority, Session, Delegation, admin-audit, and audit evidencePostgresPrimary durable backup and restore target.
Invalidation, revocation, lifecycle, audit delivery, consumer coordinationRedis StreamsPreserve when possible; recover propagation from durable state and outboxes.
Undelivered STS/Gateway audit eventsReplay volumesRestore before discarding Redis state so evidence can drain.
Provider, application, workload, signing, HMAC, and encryption secretsSecret backend and runtime secret filesRestore with matching key material; ciphertext alone is insufficient.

The API owns product and policy data. STS owns issuance behavior and Authority records. Coordinator owns Sessions and Delegations. Audit owns append-only evidence ingestion. Shared Postgres does not make one service’s tables a supported API for another client.

Some schema names retain protocol history, including agent_services, agent_invocations, and delegation_edges. Public surfaces expose Sessions, invocations, and Delegations. Integrations must use public names and APIs rather than retained table names.

  • Production migrations move forward and are recorded in schema_migrations.
  • Policy versions are immutable.
  • Zone-scoped reads use fail-closed row-level security.
  • The Audit database role cannot update or delete evidence rows.
  • Outboxes couple a state change to eventual event publication.
  • Secret envelopes bind encrypted values to key fingerprints and purposes.
  1. Restore Postgres and the runtime/secret-backend keys needed to decrypt it.
  2. Restore STS and Gateway audit replay volumes.
  3. Restore Redis streams and pending entries when available, or allow durable publishers and snapshots to rebuild propagation state.
  4. Reconnect audit exports and verify retention watermarks.
  5. Run readiness, Diagnostics, a policy simulation, a protected request, and an Audit trace.

Use Back Up and Retain Data for procedures. Do not use direct SQL as a management or migration shortcut.

Manage Keys.