Identity, policy, and tenancy on an isolated listener
Alongside the data plane, UDB ships a network-isolated native control plane defined
under proto/udb/core/** — all proto-driven and Postgres-backed, fail-closed, with no
in-memory stores. It listens on UDB_AUTH_GRPC_ADDR — loopback 127.0.0.1:50061
(the data port + 10) by default — and the data-plane port answers UNIMPLEMENTED for its RPCs, so
SDKs set authTarget to it. Counts are authoritative from the generated descriptor contract.
Everything the platform enforces
Authentication, authorization (RBAC + ABAC + ReBAC), API keys, identity providers, tenants, notifications, analytics, storage, assets, WebRTC (room, peer, track, TURN, signaling), versioned policy distribution, vault, metering, scheduler, workflow, locks, search, embedding, webhooks, config, live query, backup, messaging, and cache.
Every service and RPC, with its required scopes, accepted credential kinds and tenant rule, is listed in
the generated native
service reference, rendered from the embedded descriptor by udb native docs, so it
cannot drift from what the broker enforces.
Auth that’s native, not bolted on
Authentication
Native JWT (static PEM or JWKS with kid rotation), UDB-issued RS256 access + refresh tokens, Argon2id passwords, RFC 6238 TOTP MFA, server-side sessions with idle/absolute TTL + revocation, CSRF, and mTLS SAN identity. External-provider auth requires a signed, verified JWT before claims are mapped.
Authorization
One engine for RBAC (roles + bindings), ABAC (attribute conditions), and ReBAC (relationship tuples) over Casbin — tenant/project domains, explicit-deny-wins, priority, deterministic decision_id + audit records, and GetNativeAccess for a restricted role + scoped DSN + RLS session vars.
Identity federation
OIDC/JWT provider registry, SAML lifecycle (metadata/login/ACS/replay), SCIM user/group provisioning, JIT, and account linking. External groups map to UDB roles only through configured, audited mappings.
Tenant · notification · analytics
Tenant + config management, notifications with templates/preferences/delivery-stats (Kafka emit), and pipeline/executor/reconciliation/throughput/SLA analytics.
An xDS-style control plane for fleets
Policy and config distribution is modeled on Envoy-style versioned, ACK/NACK, nonce-paired, ordered, delta delivery — for routing policy, method-security, RLS/tenant policy, native-service enablement, and backend targets.
- ✓ACK/NACK with nonce — a node can reject a bad policy without silently diverging; the last-good version is preserved.
- ✓Make-before-break ordering — referencing policies are never applied before their target definitions.
- ✓Progressive rollout — canary by node or tenant with a metric-based success condition and automatic rollback before fleet-wide impact.