Skip to main content

Auth Service — Sync Contract

Status: populated Owner: Platform Engineering Last updated: 2026-04-18

1. Policy

AggregatePolicy
Userserver_authoritative
Accountserver_authoritative
ApiKeyserver_authoritative
Sessionserver_authoritative
JwkKeyserver_authoritative

2. JWKS sync to Kong

  • Kong polls /.well-known/jwks.json every 5 min; caches in Kong workers.
  • Rotation window: old key present in JWKS for 10 min after rotation event → zero-downtime rotation.

3. Outbox

Aggregate mutations + domain event persisted in one PG transaction (auth.outbox). Relay publishes to NATS; deletes from outbox on ACK. Replay safe.