Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Sovereign, high-performance data protection

CRL and Crypto Officer ceremony across regions

CRL endpoints across regions

The KMS exposes two distinct CRL endpoints:

  1. Authenticated generation endpoint (GET /certificates/{issuer_id}/crl): Signs a fresh X.509 v2 CRL using the CA private key, assigns a new monotonically increasing crlNumber, writes the signed CRL to the crls table, and updates the in-memory cache.

    • Leader-gated: Must only be executed on the leader region (require_leader_region). Calling this on a follower region returns HTTP 422 (KmsError::InvalidRequest).
    • Background refresh cron: The periodic background task (crl_refresh_check_hours) is automatically executed only on the leader region; followers skip the check.
    • Revocation auto-trigger: A certificate revocation on the leader region triggers automatic CRL regeneration.
  2. Public distribution endpoint (CDP) (GET /public/certificates/{issuer_id}/crl): Unauthenticated public endpoint serving pre-signed CRL bytes to relying parties (browsers, TLS clients, validators).

    • Active on every region: Runs locally on all nodes (both leader and follower).
    • Replicated data: The crls table is included in the replication set. When the leader generates and persists a new CRL, the row (issuer_id, crl_der, crl_number, generated_at, next_update) replicates asynchronously to all follower PostgreSQL databases.
    • Serving from cache and DB: When a client requests the public CDP on a follower region, the follower serves it from its local in-memory cache, or falls back to reading the replicated row in its local crls table on cold start or cache refresh.

CRL generation on the leader and distribution from any region

Crypto Officer ceremony across regions

crypto_officer_activations replicates like any other table in the default replication set: a Crypto Officer ceremony completed on the leader region becomes recognized on every follower region automatically, once the activation row replicates (subject to ordinary replication lag — there is no separate per-region CO status). The same applies to revocation.

This requires every region's KMS server to be configured with the identical ceremony_secret (or a ceremony_key_id resolving to the same underlying key). Ceremony records are AES-256-GCM sealed with keys derived from this value; a follower configured with a different secret cannot verify replicated records — it fails secure (treats the user as not an active Crypto Officer, logging a warning) rather than erroring, but the ceremony will not be usable on that region until the secret is corrected to match the leader.

Crypto Officer ceremony activation replicated across regions

See also