OpenID Connect SSO
Sign in through an OpenID Connect provider, turn off password sign-in, and fold repeated log lines.
Rootprint 0.4.4 adds single sign-on through one OpenID Connect provider. Set the issuer URL, client ID and client secret under Settings → Authentication → OpenID Connect. New users join with the user role, and existing accounts with the same email are linked.
Admins can now turn off password sign-in. Invitations and admin password resets keep working, so you can still onboard people while everyone signs in through your identity provider.
The log explorer gains fold mode: consecutive rows that match on every visible column except the timestamp collapse behind a count, so a retry loop takes one line instead of a screen.
Before you upgrade
- Back up the database. Migration
0022drops the legacyuser.banned,user.ban_reasonanduser.ban_expirescolumns, so rolling back to 0.4.3 needs that backup. - Scripts that call
/api/auth/admin/*must move to/api/usersand/api/service-accounts. - OAuth tokens are now encrypted with
BETTER_AUTH_SECRET. Set it explicitly if that protection should survive a database compromise.
Changelog
⚠️ Breaking
- Better Auth’s admin endpoints under
/api/auth/admin/*are closed. Use/api/usersfor user management and/api/service-accountsfor service accounts. hasCredentialAccountremoved fromGET /api/usersrows. Users can keep a password alongside linked providers; the user page no longer shows the “Auth” chip.- Migration
0022drops the legacyuser.banned,user.ban_reasonanduser.ban_expirescolumns. Rolling back to 0.4.3 after migration requires restoring those columns or a database backup.
Added
- OpenID Connect SSO. One provider, configured by issuer URL, client ID and client secret under Settings → Authentication → OpenID Connect, or via
GET /api/settings/auth/oidc,PUT/DELETE /api/settings/auth/oidc/credentials. Discovery is fetched at save time and refused when the issuer, endpoints or PKCES256support are missing; ID token signatures are verified against the issuer’s JWKS. New users are created with theuserrole and same-email accounts are linked.GET /api/auth/providersgainsoidc.enabled. - Password sign-in toggle.
PUT /api/settings/auth/passwordwith{ "enabled": false }disables/api/auth/sign-in/email; invitations and admin password resets keep working.GET /api/auth/providersgainspassword.enabled. - Log explorer fold mode (
fold=1): consecutive rows that match on every visible column except timestamp collapse behind a count badge. - Syslog severity aliases
emerg,alert,crit,errandnoticehave matching colors and severity ordering. INGEST_PROXY_TIMEOUT_MSsets how long/ingest,/v1/logsand/v1/traceswait on Quickwit before answering503. Default 120 seconds.
Changed
- Provider access checks run at sign-in. Google domain and GitHub organization allow-lists apply when users create, link or sign in to an account. Removing a provider revokes its users’ sessions; allow-list edits apply at the next sign-in.
- Invited users can onboard through Google, GitHub or OpenID Connect without first setting a password. Linking a provider consumes the invite and leaves any existing password in place.
- Changing the OpenID Connect issuer URL or client ID unlinks every OpenID Connect account and signs those users out; they re-link by email on their next sign-in, or an admin resets their password.
- Admins can reset the password of, or reissue an invite to, any user, including users who first signed in through a provider.
- OAuth access and refresh tokens are stored encrypted with
BETTER_AUTH_SECRET. Set it explicitly if that protection should survive a database compromise; the generated secret lives in the same database. - Sign-in page shows an error when the providers request fails instead of assuming password sign-in.
- Authentication and admin settings UI gains clearer sign-in states, keyboard-accessible table rows and responsive user, API-key and service-account tables.
- Session validation reads the database on each request, so role changes and revocations apply on the next request.
- OIDC discovery retries after an unreachable issuer at boot, with a default interval of 60 seconds configurable through
OIDC_RETRY_MS. - Internal: centralized auth field definitions and shared row-limit controls across monitoring tables.
Fixed
- A first administrator created with a mixed-case email could not sign in.
- A rejected Google or GitHub first sign-in left a user row with no account.
- First-admin setup now reloads authentication configuration before the next sign-in.
- Auth requests with an explicit
Origin: nullno longer bypass origin validation through a server-side origin replacement. - Re-running an unchanged query refreshes log results, histogram counts, field discovery and field values.
- Log context pagination advances through dense time windows and shows pagination limits.
- Default display columns remain defaults when changing line wrap or display mode, including while preferences load.
- Expanded fields and collapsed field groups persist on user toggles without overwriting another index’s preferences during navigation.
- An ingest request that timed out or lost the connection while reading Quickwit’s response returned
500instead of the retryable503.