CRL and Crypto Officer ceremony across regions
CRL endpoints across regions
The KMS exposes two distinct CRL endpoints:
-
Authenticated generation endpoint (
GET /certificates/{issuer_id}/crl): Signs a fresh X.509 v2 CRL using the CA private key, assigns a new monotonically increasingcrlNumber, writes the signed CRL to thecrlstable, and updates the in-memory cache.- Leader-gated: Must only be executed on the
leaderregion (require_leader_region). Calling this on afollowerregion returns HTTP 422 (KmsError::InvalidRequest). - Background refresh cron: The periodic background task (
crl_refresh_check_hours) is automatically executed only on theleaderregion; followers skip the check. - Revocation auto-trigger: A certificate revocation on the
leaderregion triggers automatic CRL regeneration.
- Leader-gated: Must only be executed on the
-
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
leaderandfollower). - Replicated data: The
crlstable 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
crlstable on cold start or cache refresh.
- Active on every region: Runs locally on all nodes (both
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.