Rivergate

Authentication

How people, tools and workloads prove who they are to Rivergate — and how local access is kept to a minimum.

Rivergate is not an identity provider. People sign in through an external OIDC provider; Rivergate decides what they may do. A single local bootstrap administrator exists only to set that up, and for tightly bounded recovery.

CallerCredentialUsed for
Person in a browserOIDC sign-in, then an HttpOnly session cookieThe dashboard
Person's tool or scriptPersonal API tokenCLI, SDK, automation
Kubernetes workloadProjected ServiceAccount JWT, exchanged for a five-minute tokenThe Operator
Initial setup and recoveryLocal bootstrap passwordOne-time setup, time-limited recovery

The bootstrap administrator

A new installation has no users. An explicit first-run command creates exactly one local system administrator.

make -C rivergate-deployment bootstrap-admin

The bootstrap account is not a user-management system. There is no local registration and no way to add more local users.

OIDC sign-in

Normal sign-in uses OpenID Connect Authorization Code flow with PKCE S256. Rivergate validates the issuer, signature, audience, expiry, nonce, state, browser binding and the exact redirect URI before creating a session.

Configure the provider

A platform administrator saves the provider once, from the dashboard or through the API:

PUT /auth/oidc/provider
{
  "issuer": "https://keycloak.example.com/realms/rivergate",
  "client_id": "rivergate",
  "client_secret": "…",
  "redirect_url": "https://rivergate.example.com/auth/oidc/callback"
}

Keycloak client settings

Identity mapping

Each identity is the exact (issuer, subject) pair. Email is mutable display data and is never used to link or grant access — not even a verified email.

GET  /auth/identities
POST /auth/identities/{principal}/system-admin
PUT  /auth/identities/{principal}/status      # {"status":"disabled"} or "active"

Disabling an identity revokes its Rivergate sessions and API tokens in the same transaction as the audited status change. Re-enabling does not bring them back. Rivergate refuses to disable the last active OIDC system administrator. Changes in your identity provider are not pushed to Rivergate automatically, so disable the identity here when you need revocation to be immediate.

System administrator ≠ secret access

The system administrator role manages identities and platform configuration. It grants no permission to read secret values. Secret access always comes from organization or scoped roles.

Sessions and CSRF

Personal API tokens

CLI and SDK calls use personal API tokens.

The step-by-step procedure is in REST API.

Workload tokens

Kubernetes workloads authenticate with a projected ServiceAccount JWT that Rivergate validates directly against an administrator-configured issuer and JWKS. It is exchanged for an opaque token valid for five minutes, returned only after the exchange is audited. See Kubernetes Operator.

Break-glass recovery

After the OIDC handoff, local password login is disabled. It stays off — even if your identity provider is down — until an operator deliberately turns it on from the trusted host.

make -C rivergate recovery-activate      # default 15 minutes
make -C rivergate recovery-deactivate

After a recovery, review the audit log, rotate the bootstrap credential, and confirm OIDC administration is healthy again.