Skip to content

Releases

2.5.0

Choose a tag to compare

@lakhansamani lakhansamani released this 01 Dec 09:30
d48b6a4

Adds human approval for agent actions: an AI agent can ask a user to approve
one specific action (OpenID CIBA, poll mode, beta, off by default) and gets
a short-lived token bound to exactly that action. Also makes single-use checks
atomic on DynamoDB and Cassandra/ScyllaDB, fixes a logout CSRF, and removes the
deprecated stdio authorizer mcp subcommand. Read the Upgrade notes if you run
authorizer mcp.

Security

  • Single-use checks were not atomic on DynamoDB and Cassandra/ScyllaDB without Redis (#957). On those databases the database memory store's "claim once" was an upsert, so concurrent requests could all succeed. This weakened replay protection for SAML assertion IDs, RFC 7523 client-assertion jti and TOTP codes. Claims now use a conditional write (attribute_not_exists on DynamoDB, INSERT … IF NOT EXISTS on Cassandra/ScyllaDB). Other databases were already atomic, and Redis deployments are unaffected.
  • Logout CSRF (#956, low). GET /logout skipped the confirmation page for any validly signed id_token_hint, so a page embedding /logout?id_token_hint=<the attacker's own ID token> signed out every visitor. The hint's sub must now match the signed-in user; otherwise the confirmation page is shown.

Added

  • Human approval for agent actions: OpenID CIBA, poll mode (beta) (#953, #954, #955, #958). Guide: Human Approval for Agent Actions.
    • Endpoints: POST /oauth/bc-authorize starts a request, naming the user (login_hint or id_token_hint), a binding_message, the API (resource, RFC 8707) and optional authorization_details (RFC 9396). The agent polls /oauth/token with grant_type=urn:openid:params:grant-type:ciba. The user decides on GET/POST /oauth/bc-approve.
    • Opt-in: --enable-ciba on the server, plus backchannel_token_delivery_mode: "poll" on each client (GraphQL, REST and gRPC admin APIs, and the dashboard's Human approval (CIBA) toggle). Only service accounts whose allowed scopes include openid qualify.
    • Reaching the user: an email (new CIBA approval request template) and the user.approval_requested webhook, which carries the approval link.
    • Approving: only on Authorizer's own page, in the user's own browser session. The sign-in must be recent (--ciba-step-up-max-age, default 300 s) and not a magic link. A user with no session signs in through the login page and comes back.
    • What the agent gets: a delegated access token (act.sub = the agent) bound to that one API, carrying the approved authorization_details and a ciba claim. It is valid for 5 minutes and can be redeemed once. There is no refresh token, and the token can neither be used at Authorizer itself nor exchanged for an unbound one.
    • Limits and abuse resistance:
      • Per-agent and per-user caps (--ciba-max-requests-per-user, --ciba-max-requests-per-user-total) and a per-client rate limit.
      • Deny blocks the agent for an hour; deny and block, for 24 hours.
      • Organization-scoped agents can reach only members of their organization.
      • Unknown, revoked, blocked or capped users get an identical, never-approvable response, so the endpoint doesn't reveal which users exist.
    • Other flags: --ciba-request-ttl (1–600 s, default 300), --ciba-poll-interval (2–60 s, default 5) and --ciba-authorization-details-types. The server needs an https --url (http is allowed on a loopback host). Redis is not required on any database.
    • Observability:
      • Audit events ciba.requested, ciba.approved, ciba.denied, ciba.blocked, ciba.expired and ciba.token_issued; the dashboard's audit filters include them.
      • Metrics authorizer_ciba_outcomes_total{client_id,outcome} (alert on the per-agent deny rate) and authorizer_ciba_time_to_decision_seconds.
      • Discovery metadata backchannel_authentication_endpoint, backchannel_token_delivery_modes_supported and the CIBA grant type.
  • Release coverage: a CIBA smoke test, and an e2e-playground test of the full approval journey through the real login page, served over TLS.

Changed

  • Token exchange (RFC 8693) refuses a subject token that is bound to an approved action (ciba or authorization_details claim).
  • The MCP bridge forwards only the calling request's own Authorization header. The process-wide fallback credential is gone with the stdio subcommand.
  • Dependency updates: AWS SDK (DynamoDB), go-redis 9.24, modernc SQLite, web app and dashboard packages, CodeQL action (#947–#951).

Removed

  • The stdio authorizer mcp subcommand, and its flags --mcp-bearer and --mcp-authorizer-url (#959). It was deprecated in 2.4.0. It ran a second copy of every provider and served one user per process, so it could not be deployed. MCP is served at POST <url>/mcp with --mcp-enabled. The authorizer binary now has no subcommands.

Upgrade notes

  • If you run authorizer mcp: start the server with --mcp-enabled instead and point your MCP host at <url>/mcp (see MCP).
  • GET /logout with an id_token_hint for a different user than the one signed in now shows the confirmation page instead of logging out. Relying parties that send their own user's hint are unaffected.
  • CIBA is off by default. To try it, enable --enable-ciba, configure SMTP or a user.approval_requested webhook, and opt in a service account.
  • SDKs:
    • CIBA helpers ship in authorizer-js 4.2.0 (requireApproval, checkApprovedAction) and authorizer-py 0.5.0 (require_approval, check_approved_action). Go v2.4.0 and both of those releases add backchannel_token_delivery_mode to the admin client methods.
    • Over GraphQL, those client methods need this server. Older SDKs keep working against it.

2.4.10

Choose a tag to compare

@lakhansamani lakhansamani released this 27 Nov 07:08
7b9d768

Adds time-limited fine-grained authorization grants: OpenFGA conditions now
work end to end, with the server's own clock deciding when a grant expires.
Also stops an AI agent from granting itself access through contextual tuples,
and patches OS-package CVEs in the Docker image. Read the Upgrade notes: a
delegated (agent) token can no longer send contextual tuples.

Security

  • An agent could grant itself access with a contextual tuple (#945). A delegated (RFC 8693) token could attach a contextual tuple naming itself on the relation being checked, and check_permissions (including the MCP check_permissions tool) answered allowed: true. An agent using that answer as a "check before acting" guardrail could be talked past it. Contextual tuples from a delegated token are now rejected with a permission error on GraphQL, REST, gRPC and MCP. Users, service accounts and super-admins keep them.
  • Docker image OS-package CVEs (#944): libssl3/libcrypto3 3.5.9-r1 (CVE-2026-95691, CVE-2026-95692, CVE-2026-107496, CVE-2026-88822, CVE-2026-88823) and musl 1.2.6-r6 (CVE-2026-107891).

Added

  • Conditional (time-limited) FGA grants (#945). Models could declare OpenFGA conditions before, but tuples could not carry one, so a conditional grant errored on every check.
    • _fga_write_tuples / AuthorizerAdminService.FgaWriteTuples / POST /v1/admin/fga/tuples accept a condition { name, context } on each tuple; _fga_read_tuples returns it (null for a plain tuple). Delete by user, relation and object.
    • The server supplies current_time (its own clock, UTC) on every check, list and lookup, including list_permissions, required_relations and the SAML and org-role lookups. Callers cannot set it, and it cannot be stored on a tuple.
    • check_permissions accepts an optional context, from a super-admin only (never through a delegated token, and never current_time). Stored tuple parameters take precedence over it.
    • Dashboard: the Tuples page shows each grant's condition ("Expires …" / "Expired …") and can add a grant that expires after 10 minutes to 30 days. The model page adds an AI agents (time-limited & task-scoped) example.
    • MCP: the check_permissions tool schema describes context as a plain JSON object.
  • Release smoke coverage for conditional grants on GraphQL, REST, gRPC and MCP with a real delegated token, and for the 2.4.7–2.4.9 fixes (#945, #943, #942). CI now boots docker-compose.yaml and checks persistence on every Dockerfile or compose change (#939).

Changed

  • README Docker quick start (#941): one verified docker run command. The image runs as UID 1000 and owns /authorizer/data, so a named volume needs no -u root; the stale UID 65532 advice and the removed --target final-root build are gone.
  • The README's ZopDay button pulls the one-click image from Docker Hub (#940).
  • ROADMAP_V2.md marks the shipped MCP, agent, SAML, SCIM, passkey and M2M work (#937).

Upgrade notes

  • Delegated tokens can no longer send contextual tuples to check_permissions (PermissionDenied). Pass request-time facts from your trusted backend with its own credentials instead.
  • Every condition parameter except current_time must be stored on the tuple. A write that leaves one out is rejected, because most evaluation paths can only supply current_time.
  • A model whose condition declares current_time with a type other than timestamp is rejected when written.
  • SDKs: reading tuple conditions over GraphQL needs this server. SDK releases with condition support follow this release; older SDKs keep working against it.

2.4.9

Choose a tag to compare

@lakhansamani lakhansamani released this 26 Nov 11:41
956f86c

Fixes an authentication bypass that let anyone sign in as an account whose
email or phone was not yet verified, without its password. Also fixes several
role, MFA and magic-link bugs, stops raw database and infrastructure errors
from reaching API clients, and makes the Docker Compose file work with v2.
Upgrading is strongly recommended for every 2.4.x deployment. Read the
Upgrade notes at the end of this section first: a few behaviours change on
purpose.

Security

  • Authentication bypass: a wrong password could sign in to an unverified account (GHSA-rpv7-grw6-r2jv, high). When MFA was enabled (the default) and the account's email or phone was still unverified, login armed an MFA session before checking the password. That session was accepted by skip_mfa_setup, which then issued full tokens; with the same session a caller could also lock the victim's MFA with lock_mfa, enroll TOTP (getting the secret), add email/SMS OTP authenticators, or start passkey registration. These pre-password sessions are now only redeemable by verify_otp with the code that was just sent. The same fix covers phone signup with --enable-phone-verification, where skip_mfa_setup could issue tokens before the phone was verified. Affected 2.4.0-rc.1 through 2.4.8.

Added

  • Sort and filter the admin users list (#927, #112). _users / AuthorizerAdminService.Users / POST /v1/admin/users accept email_verified (filter) and created_at_order (ASC/DESC, default DESC); pagination.total counts the filtered set. The dashboard Users page has matching controls. Additive: existing clients are unaffected.
  • The admin dashboard uses --organization-name / --organization-logo on its login page and sidebar, like the /app login UI (#931, #444).
  • One-click deploy image for v2, ghcr.io/authorizerdev/authorizer-oneclick: maps environment variables to v2's CLI flags so image-only deploy buttons (ZopDay) can start a v2 server. The README's ZopDay button now uses it (#935; thanks @muskanbandta23 for #929).

Fixed

  • Roles removed from --roles were still granted (#922, #425). Roles are now filtered against --roles ∪ --protected-roles ∪ --default-roles wherever they grant access: token issuance, login, session, validate_session, validate_jwt_token and the refresh grant. Stored user records are left as they are, so adding a role back restores it. Role flags are also trimmed, so --default-roles "user, member" no longer drops member.
  • Roles requested at login were lost when MFA interrupted the login (#925, #301). They are now carried server-side across verify_otp, skip_mfa_setup, MFA enrolment and the passkey second factor, and checked against the user again when the MFA step completes.
  • Raw database and infrastructure errors reached API clients (#924, #932, #356). Errors from storage, the memory store (Redis/in-memory/DB), OpenFGA's datastore, token signing, email/SMS providers and the JWKS endpoint are now returned as internal server error (error_id: …) on GraphQL, gRPC, REST, MCP and the HTTP handlers, and logged server-side under the same error_id. Deliberate user-facing messages are unchanged. Losing a creation race (invite, organization, membership) now returns 409 AlreadyExists instead of a 500; revoking an already-revoked session returns "token not found" instead of a masked 500.
  • Distributed rate limiting never used Redis (#932). A type check that could never match meant every replica enforced its own in-memory limit even with --redis-url set. The rate limiter now shares the memory store's Redis client.
  • Asking for a password reset (or magic link, or invite) twice failed on MongoDB and ArangoDB (#928, #273) with a raw duplicate-key error, and Cassandra, DynamoDB and Couchbase kept both pending requests. A new request now replaces the previous one on every backend.
  • Duplicate emails were possible on ArangoDB, DynamoDB, Cassandra and Couchbase when the user also had a phone number (#933); AddUser now checks email and phone independently on every backend.
  • Magic links (#934, surfaced by #406): the code that /verify_email returns for an /authorize + PKCE flow can now be exchanged at /oauth/token. It is issued only when the link is opened in the browser that started /authorize and the redirect matches the one /authorize recorded. Magic links also work with --redirect-uris now: links are URL-encoded and carry roles/state/scope as their own parameters instead of inside redirect_uri. Links emailed by older versions still work.
  • The password-reset flow dropped the user's /authorize request (#923, #344), leaving them on /app instead of returning them to the application. Hash-routed reset URLs keep the token inside the route.
  • The signed-in page flashed before the redirect back to the application after logging in through /authorize (#921, #269).
  • docker-compose.yaml could not start a v2 server (#930, #325): it relied on a .env file that v2 ignores. It now passes CLI flags (placeholder secrets, SQLite on a named volume). The image pre-creates /authorizer/data owned by its non-root user, so a named volume mounted there is writable without -u root.

Changed

  • Comment typo fixes (#926, thanks @kayaal34).

Upgrade notes

  • Roles removed from --roles stop working immediately, including in tokens issued before the upgrade. If you changed --roles in the past and users still rely on an old role, add it back (or to --protected-roles) before upgrading.
  • An MFA login that requests no roles now gets --default-roles instead of every role on the user, the same as a non-MFA login. Integrations that relied on the full set after MFA must pass roles explicitly.
  • Error text changed: clients that matched raw database messages (e.g. record not found, NoSQL user with given email already exists) now see internal server error (error_id: …). Match on the error code instead.
  • Redis deployments: rate limits are now shared across replicas, so with several replicas a client reaches --rate-limit-rps sooner than before.
  • A newer password-reset, magic-link or invite email invalidates the previous link on MongoDB, ArangoDB, Cassandra, DynamoDB and Couchbase (SQL already behaved this way).
  • DynamoDB: the server adds an email index to the existing verification-requests table on first boot. Grant dynamodb:UpdateTable (or add the index yourself); without it lookups fall back to a scan.
  • /authorize sets a short-lived authorizer-authorize-binding cookie (HttpOnly, SameSite=Lax, 15 minutes) when it sends the browser to the login UI.

2.4.8

Choose a tag to compare

@lakhansamani lakhansamani released this 24 Nov 11:50
c83107c

Fixes a cross-organization account takeover through SCIM, adds
SurrealDB as a storage backend, and adds a kid
header to signed JWTs so JWKS consumers that select keys by kid can verify
them. Upgrading is recommended for every deployment where a user can belong
to more than one organization and SCIM provisioning is enabled.
Nothing to do
on upgrade for existing deployments.

Security

  • One organization's SCIM token could redirect a shared user's password reset and take over the account in another organization (GHSA-p7g3-2258-8wmp, high; same class as GHSA-93q4-j2hq-5qgg, whose fix covered only the active flag). SCIM tokens are issued per organization, but PATCH /scim/v2/Users/{id} wrote userName / emails / phoneNumbers to the global user row and kept the existing email-verified marker. For a user who is also a member of organization B, organization A could set the email to an address it controls, request a password reset to it, and sign in as that user in B. A PATCH that changes the email or phone of a user with any membership outside the calling organization (deprovisioned ones included) is now refused with 400 and scimType: "mutability", and nothing in that PatchOp is written. Single-organization users keep full directory sync, and a shared user's unchanged or case-only email still syncs. Affected 2.4.0-rc.5 through 2.4.7. Found by Liam Giannini (@Liam-G).

Added

  • SurrealDB storage backend (#906). --database-type=surrealdb for SurrealDB 4.0 or later, over http(s) or ws(s), with --surrealdb-namespace (default authorizer). The schema is created and upgraded by versioned migrations; cascade deletes run as one transaction and are retried as a whole on SurrealDB's write conflicts. The connection signs in again when its token expires, so a long-running server does not start refusing queries after an hour. See Databases.
  • client_id claim in access tokens (RFC 9068) and azp in ID tokens (OIDC Core) (#913). Access tokens from the authorization_code, refresh_token and client_credentials grants now name the client they were issued to, so a resource server can tell clients apart even when an RFC 8707 resource replaces aud. ID tokens carry azp, always equal to aud. Additive: no existing claim changes.

Fixed

  • JWTs had no kid header, so JWKS consumers that pick the key by kid rejected them (#904). For example, SurrealDB's DEFINE ACCESS ... WITH JWT URL failed with Missing token header 'kid'. RS/ES-signed tokens now carry a kid equal to the key's RFC 7638 thumbprint, which /.well-known/jwks.json publishes under the same value. The kid follows the key, so tokens signed before a primary-to-secondary rotation still name a published key. HMAC-signed tokens get no kid, since their key is never published. The kid values in the JWKS change from the client-ID-based labels to thumbprints; a client that hard-coded the old kid must refetch the JWKS. The client-assertion verifier now refetches a trusted issuer's JWKS once (rate-limited to one per issuer per minute) when it meets an unknown kid.

Changed

  • Bumped github.com/openfga/openfga from 1.22.1 to 1.23.0 (#915).

2.4.7

Choose a tag to compare

@lakhansamani lakhansamani released this 20 Nov 04:37
0bd61e5

Adds SereneDB as a storage backend, fixes two
upserts that failed on SQL Server, and makes list_permissions report
truncation correctly. Nothing to do on upgrade for existing deployments.

Added

  • SereneDB storage backend (#792). --database-type=serenedb with a PostgreSQL-style --database-url (SereneDB listens on 7890 by default). Requires SereneDB 26.11 or later; tested against 26.11.2. Queries run through the existing SQL provider unchanged; two things differ underneath:

    • Schema. SereneDB reports varchar(n) as text, so GORM's automatic migration issued an ALTER COLUMN ... TYPE on every restart, which SereneDB refuses on an indexed column. The schema is instead created and upgraded by hand-written, versioned migrations, recorded in a new authorizer_schema_migrations table. Each version runs in one transaction with its record, so a failed migration leaves nothing behind. Instances that boot at the same time can't conflict.
    • Write conflicts. SereneDB aborts contended writes with SQLSTATE 40001 instead of making them wait. Single statements are retried, and the four cascade deletes (user, client, organization, webhook) are re-run as a whole. No other backend changes behaviour: the retry is enabled only for SereneDB.

    SereneDB is not an OpenFGA datastore, so FGA needs an explicit --fga-store. See Databases.

Fixed

  • SQL Server: re-requesting a verification email, or enrolling an MFA method a second time, failed with a duplicate-key error (#792). gorm.io/driver/sqlserver builds every upsert's MERGE from the primary key and ignores the conflict columns, so AddVerificationRequest (keyed on email + identifier) and AddAuthenticator (keyed on user + method) never matched the existing row and failed on the unique index (mssql ... (2601)). Every other SQL backend replaced the row. SQL Server now builds the MERGE on the conflict columns, with WITH (HOLDLOCK) so two concurrent upserts of the same key cannot both insert. These were the two SQL Server tests known to fail; SQL Server is now part of make test-all-db.
  • list_permissions returned truncated: false while dropping results (#903). The embedded OpenFGA engine capped each list call at 1000 results, the same as the service's own cap. A relation with more matches came back as exactly 1000 with no signal that more existed. The engine cap is now one above the service cap, so truncated is set. For an RFC 8693 delegated caller, the agent's and the user's results are capped separately before they are intersected, so the response is now also marked truncated when either side hit the cap.

Changed

  • Documentation: CockroachDB must be configured as --database-type=cockroachdb. The docs previously showed postgres, which skips CockroachDB's migration fixes. No code change.

2.4.6

Choose a tag to compare

@lakhansamani lakhansamani released this 17 Nov 08:42
7ae8358

Social login now works for clients whose callback is on another origin, and it
goes through the consent screen like every other login method. Upgrading is
recommended for every deployment that offers social login to OAuth/OIDC
clients
, and in particular for anyone who added client origins to
--allowed-origins to make social login work. That workaround can now be
removed. See the upgrade notes at the end.

Fixed

  • Social login failed with invalid redirect uri for a client whose callback is on another origin (#855, #899, #901). /authorize and /app check redirect_uri against the client's registered redirect URIs, but /oauth_login and /oauth_callback checked it only against the global --allowed-origins and then sent the authorization code straight to the client. A client registered with https://app.example.org/callback therefore passed /authorize, reached the login page, and failed at "Continue with GitHub". The only workaround was adding the client's origin to --allowed-origins, which also loosens CORS, the CSRF origin check and the email-link redirects, for every client. Social login now ends the way password login already does: it returns to this server's own /app, which replays the request to /authorize. /authorize then checks the client's registered callback, shows consent if the client needs it, binds PKCE and issues the code. This is also how Auth0 and other providers treat social connections. /oauth_login and /oauth_callback accept this server's own /app, /app/ or /app/signup (same scheme and host:port as --url, exact path, no fragment); on that hop the callback sets the session only, issues no code and appends nothing, so the client's nonce reaches the ID token. Thanks to @kurnias for the report.

  • Social login skipped the consent screen for self-registered and CIMD clients (same change). The consent gate lives in /authorize, and the old social path delivered the code without going through it. It was reachable only for a client whose callback origin was in --allowed-origins; that is the same restriction that caused the bug above, so fixing one could not be done by loosening it without opening the other.

  • The hosted login page sends its own URL to /oauth_login. @authorizerdev/authorizer-react 2.2.1 makes AuthorizerSocialLogin, on Authorizer's own login page during an /authorize request, send the page's /app/ URL (with the /authorize parameters moved into the query string) instead of the client's callback (authorizer-react#75). Everywhere else, including a login page on your own site, it sends the same redirect_uri as before.

  • A rejected SAML assertion logged only "Authentication failed" (#901). crewjam/saml puts the real reason in InvalidResponseError.PrivateErr and returns a fixed public message. The ACS handler now logs that reason as cause at debug level (--log-level=debug), so an operator can tell a clock skew, a bad signature and a missing AuthnStatement apart. Nothing changes in the response.

Changed

  • MCP: /mcp returns no Mcp-Session-Id, and DELETE /mcp returns 405 (since 2.4.5) (#900). The MCP server has always run stateless, so replicas need no session affinity. 2.4.5's move to modelcontextprotocol/go-sdk v1.8.0 made a stateless server also stop issuing session IDs, per the spec's sessionless direction (SEP-2567). Session IDs are optional for MCP servers, so spec-conformant clients need no change; a 405 on DELETE is the spec's "server does not allow clients to terminate sessions"; and a session ID still held from an earlier server is ignored rather than rejected. This went unnoticed in 2.4.5 because only the browser suite checked the header; internal/mcp now pins it in CI.
  • SAML SP: an assertion without an <AuthnStatement> is rejected (since 2.4.5). crewjam/saml v0.6.2, which 2.4.5 moved to for its <NameID>-spoofing fix (#828), enforces saml-profiles §4.1.4.2: a login assertion "MUST contain at least one <AuthnStatement>". Every mainstream IdP (Okta, Entra ID, ADFS, Google Workspace) sends one for browser SSO, so conformant IdPs are unaffected. A non-conformant IdP now fails at /oauth/saml/<org>/acs with saml_assertion_invalid; the debug log names the reason (below). The e2e mock IdP was itself non-conformant here and is fixed (#901).
  • Dependencies (#901). Alpine 3.24.4. Dashboard: @urql/core 6 with urql 5, tailwind-merge 3 (the dashboard is on Tailwind CSS v4), vitest 5, jsdom 31, plus minor/patch groups for both web apps.

Deprecated

  • Completing an /authorize request by sending the client's callback straight to /oauth_login. It still works when the callback's origin is in --allowed-origins, but it skips consent, and the server now logs social login completed an /authorize request without resuming through /authorize each time. A future release will refuse it. The hosted login page no longer does this; a customised login page should send its own /app URL instead — see Social login inside an authorization request.

Upgrade notes

  • Hosted login page: nothing to do. The page is built into the same image as the server.
  • Remove the workaround. If you added client origins to --allowed-origins only so social login would work, remove them after upgrading. Keep any origin your own front end needs for CORS.
  • Customised login page (your own build served by Authorizer at /app): send redirect_uri = the page's own /app URL with the /authorize parameters in the query string, then replay to /authorize once the session exists. If it is built on @authorizerdev/authorizer-react, upgrade to 2.2.1. Until you do, it keeps working as before, with the warning above.
  • Social login started on /app with no client now returns to /app without state and nonce appended, and is accepted under any --allowed-origins list (it used to need a bare *). Nothing on /app reads either parameter.
  • /oauth_login and /oauth_callback called directly (mobile apps, a "Sign in with GitHub" link on your own site): unchanged.

2.4.5

Choose a tag to compare

@lakhansamani lakhansamani released this 14 Nov 13:04
c6b0ca3

Security release. Closes two high-severity advisories reported through
SECURITY.md and moves the build to Go 1.27.4 for a reachable net/http crash.
Upgrading from 2.4.4 is recommended for every deployment, and is urgent for
anyone running a mixed --allowed-origins list or SCIM across more than one
organization. See the upgrade notes at the end: SCIM deprovisioning semantics
change, and org_memberships gains one nullable column.

Security

  • OAuth access tokens could still be redirected to an attacker through a dotless IPv4 redirect_uri (GHSA-f9fw-76m6-wc75, high; incomplete fix of GHSA-h29v-hj44-q8cv / CVE-2026-54072) (#853). IsValidRedirectURI special-cased * only when it was the entire allowlist. In a mixed list such as *,https://app.example.com the bare * fell through to the origin matcher, which re-opened it as the regex [^.]* — matching every host without a dot and no dotted one. A browser reads http://3405803783/ as 203.0.113.7, so a crafted /authorize link delivered the signed-in user's access token to any IPv4 address; the same check guards the logout, password-reset and magic-link redirects. A bare * now means "this server's own origin" wherever it appears in the list, every spelling that normalises to * (https://*, *:443, */) is caught by one shared predicate, and a wildcard entry with no literal dot (**, *:3000) is refused outright. Affected 2.1.0 through 2.4.4, only when --allowed-origins mixes a bare * with explicit origins and the client has no registered redirect URIs.
  • One organization's SCIM token could deactivate a shared user in every organization (GHSA-93q4-j2hq-5qgg, high) (#854). SCIM tokens are issued per organization, but DELETE /scim/v2/Users/{id} and PATCH active:false wrote is_active=false and revoked_timestamp to the global user row and deleted every session and session token, so organization A could lock a user out of organization B — and PATCH active:true could lift B's lock in the other direction. Deprovisioning is now recorded on A's membership only; the global account is deactivated only when no other active membership remains. A deprovisioned membership also loses A's FGA grants and A's SSO sign-in, and membership existence alone no longer confers org-admin authority. Affected 2.3.0-rc.10 through 2.4.4.
  • Client-chosen forwarding headers no longer reach gRPC metadata (#870). The REST gateway refused 4 of the ~29 standard client-IP and host headers. X-Forwarded-For / X-Real-Ip decide the client IP used for rate limiting, the admin-secret lockout and audit logs, and X-Authorizer-Url decides the host of emailed reset and magic-link URLs; all known spellings are now dropped before metadata is built. SCIM meta.location for groups now comes from --url rather than the request Host.
  • Go toolchain 1.27.4 for GO-2026-6859 (HTTP/1 server crash via a MaxBytesReader header race in net/http), via 1.27.3 for the advisories it patches. The release image builder is now pinned to golang:1.27.4-alpine3.24 instead of the floating golang:1.27-alpine3.23 (#871, #890).
  • crewjam/saml bumped from v0.5.1 to v0.6.3. v0.5.1 let a signed assertion carry a <NameID> in a foreign namespace, which is the value SAML JIT provisioning keys on (#828, #890). govulncheck still reports GO-2026-6909 against every version because its OSV record has no fixed event; that entry is a documented false positive in .govulncheck-allow.

Changed

  • govulncheck gates CI on a written allowlist (.govulncheck-allow, make vulncheck): any reachable finding not listed with a reason fails the build (#872).
  • Dependencies. Go modules upgraded across the board (AWS SDK, pgx, goose, gRPC, storage drivers). The login app and dashboard move to React 19, Vite 8 and TypeScript 7, with baseUrl dropped from both tsconfigs (#889). Alpine runtime image 3.24.3.

Upgrade notes

  • SCIM deprovisioning is now per organization. An IdP that deprovisions a user who also belongs to another organization will see that user stay globally active and keep their other sessions; the user loses access to the deprovisioning organization only. A user whose last active membership is deprovisioned is deactivated globally, as before. SCIM GET and filter=active eq ... report the membership's state, not the global account's.
  • One new nullable column. org_memberships.deprovisioned_at (unix seconds) is added by AutoMigrate on SQL backends and by ALTER TABLE on Cassandra/ScyllaDB; the document stores need nothing. Absent means active, so existing members are unaffected.
  • Mixed --allowed-origins lists. If you rely on * beside explicit origins, the * now admits only this server's own origin as a redirect target. Add any other legitimate redirect origins explicitly. CORS behaviour for a bare * is unchanged.

2.4.4

Choose a tag to compare

@lakhansamani lakhansamani released this 01 Nov 09:17
b0f6b62

Four of the SQL backends in the supported list could not create their own schema,
and PostgreSQL was rewriting four tables on every restart. Upgrading is
recommended for every SQL deployment.
The first boot after this release emits a
small, one-time set of ALTER COLUMN statements and nothing on every boot after;
see the upgrade notes at the end.

Fixed

  • char(36) columns were retyped on every single boot, and that was fatal on CockroachDB (#826). GORM's postgres driver reads these columns back from information_schema as bpchar, which never prefix-matches the declared char(36), so AutoMigrate re-emitted the same no-op type change at every startup: ALTER TABLE "authorizer_sessions" ALTER COLUMN "user_id" TYPE char(36) USING "user_id"::char(36). On PostgreSQL that is a silent table rewrite under ACCESS EXCLUSIVE on four tables at every restart. On CockroachDB it is fatal — ALTER COLUMN TYPE sits behind an experimental flag (SQLSTATE XCEXF) — so the server started once and never started again. Five non-PK columns now declare varchar(36), which is what the catalog reports; values are 36-character uuids either way. Measured on PostgreSQL 18 with log_statement=all: 5 alters on the upgrade boot, 0 on every boot after.
  • CockroachDB aborted at startup dropping a constraint it never had (#826). CockroachDB lists unique indexes in information_schema.table_constraints, and MySQL reports COLUMN_KEY='UNI' for them, so GORM saw every gorm:"uniqueIndex" field as a constraint the model no longer wants and issued DROP CONSTRAINT "uni_<table>_<column>" — a name it only ever creates from a unique tag. Startup died on constraint "uni_authorizer_oauth_states_state_key" ... does not exist (SQLSTATE 42704), and on MySQL on Error 1091: Can't DROP. Those indexes are declared by the models and are meant to be there, so the drop is skipped; the create direction is delegated untouched.
  • The pre-2.3.0 uniqueness cleanup silently did nothing on CockroachDB (#826). ALTER TABLE ... DROP CONSTRAINT on a UNIQUE is rejected outright there (unimplemented: ... use DROP INDEX CASCADE instead, SQLSTATE 0A000), and the failure was logged at debug level and swallowed. Releases before 2.3.0 declared authorizer_users.email and authorizer_otps.phone_number as UNIQUE; v2 keeps plain indexes and enforces uniqueness in the application layer, writing the empty string into phone_number for every email OTP — so on an upgraded CockroachDB database the second email OTP was rejected and email OTP login was broken. The drop now goes through DROP INDEX ... CASCADE.
  • MySQL and MariaDB had never worked at all, on three separate aborts (#826). Nothing had ever run the storage suite against them. (1) GORM's mysql driver widens an unsized string to varchar(191) when the field carries index or unique, but it checks only those two tags — a field tagged uniqueIndex, named or composite, is missed and becomes longtext, which MySQL refuses to index: Error 1170: BLOB/TEXT column 'client_id' used in key specification without a key length, so the schema could not be created. (2) Then the phantom DROP CONSTRAINT above, as Error 1091. (3) Then DeleteSessionTokensByUserID used a backslash as its LIKE escape character, which MySQL rejects as Error 1064; the escape character is now ! and the escaping is portable across engines, pinned by a new metacharacter test case.
  • SQL Server could not create its schema since 2.3.0-rc.10 (#826). gorm.io/driver/sqlserver has the identical two-tag gap as the mysql driver, so ten unsized uniqueIndex strings became nvarchar(MAX): mssql: Column 'client_id' in table 'authorizer_clients' is of a type that is invalid for use as a key column in an index. Fixed at the driver's own indexed-string width. Two upsert tests remain red on an unrelated driver bug — MergeCreate builds its MERGE predicate from the primary key and ignores clause.OnConflict.Columns, so an upsert keyed on a composite unique index inserts a second row instead of replacing one. make test-sqlserver therefore exists but is deliberately outside make test-all-db.
  • TestDeleteUserCascadesAllUserOwnedRows could not be run twice against a persistent database (#826). Fixed fixture ids and no cleanup, so a second run collided on rows the first left behind. Pre-existing — it failed identically on PostgreSQL — and it masked real failures behind a false one on every re-run.

Changed

  • make test-all-db now covers 12 databases, with new make test-cockroachdb, test-mysql, test-mariadb and test-sqlserver targets (#826). CI runs SQLite only, so a backend with no target had most likely never been executed — which is how four of them shipped unable to boot. Readiness is gated by a new scripts/wait-for-sql.sh, because nc -z connects to Docker Desktop's published-port proxy the instant docker run -p returns, and MySQL binds its port, runs its init scripts and then restarts — mysqladmin ping answers during that window, so the probe now runs a real query against the test database instead.

Upgrade notes

  • One-time DDL on the first boot. Five columns move from char(36) to varchar(36): audit_logs.actor_id, audit_logs.resource_id, authenticators.user_id, sessions.user_id and webhook_logs.webhook_id. Stored values are unchanged — a 36-character uuid is identical in both types — and nothing is narrowed. On PostgreSQL this is five rewrites on the upgrade boot and zero thereafter; take the usual care if authorizer_audit_logs is large.
  • MySQL/MariaDB and SQL Server column widths. An unsized string column under a uniqueIndex is now created as varchar(191) / nvarchar(256) instead of longtext / nvarchar(MAX). Every affected column lives in a table introduced in 2.3.0-rc.10 (clients, organizations, org_memberships, federated_identities, scim_endpoints, trusted_issuers, webauthn_credentials), so no existing data is narrowed.
  • A SQL Server database left behind by a failed boot must be dropped. The unsized uniqueIndex columns and the composite index over authenticators.user_id both arrived in 2.3.0-rc.10, so the two never coexist in a database that completed AutoMigrate. A database touched by a 2.3.0-rc.10 or later SQL Server boot has user_id as char(36) inside that index, and SQL Server will not retype an indexed column. No boot there ever finished, so such a database holds no data. Databases from 2.0.0 through 2.3.0 did boot, carry no index over any widened column, and upgrade in one boot with rows intact.
  • PlanetScale and Yugabyte were not executed. PlanetScale is hosted MySQL-wire and shares the MySQL code path verbatim; Yugabyte keeps the unchanged postgres.Open path and the same bpchar catalog, so the varchar(36) change covers it.

2.4.3

Choose a tag to compare

@lakhansamani lakhansamani released this 28 Oct 18:59
0f4032a

Patch release. Corrects the CassandraDB provider, which did not work on Apache Cassandra at all on three queries, and closes the timestamp-domain exposure #818 left behind. No schema or data migration, no breaking change. One operational note: sanity-check NTP on application hosts before upgrading.

Fixed

  • The CassandraDB provider did not work on Apache Cassandra at all, on three queries (#824). One provider backs both cassandradb and scylladb, but cassandradb was missing from the storage suite's backend list, so it had only ever been exercised through ScyllaDB. Apache Cassandra accepts CQL LIKE only against a SASI index and rejects it against the plain secondary index this provider creates, so GetWebhookByEventName (webhook dispatch by event name never fired), DeleteAllSessionTokensByUserID (session revocation failed) and DeleteSessionTokensByNamespace errored outright on every Apache Cassandra deployment. ScyllaDB accepts the same statements, which is why it went unnoticed. All three already carried ALLOW FILTERING, so the index was doing no work; the comparison moves into Go. cassandradb is now in the suite on its own port, with make test-cassandradb.
  • DeleteAllSessionTokensByUserID matched an unanchored substring on five backends (#824). A revocation for user 42 also deleted tokens stored for 142 or provider:427. The SQL provider was anchored long ago; CassandraDB, MongoDB, ArangoDB, DynamoDB and Couchbase kept the defect because the assertion covering it lived inside a SQL-only subtest. The match is now the exact value or a :<userId> suffix — strictly tighter, never looser — on every backend, asserted by a test that runs on all eight. MongoDB additionally interpolated the id straight into $regex, so an id containing regex metacharacters was evaluated as a pattern; it is now escaped and anchored with \z rather than $, which also matches before a trailing newline. Harmless in practice, since every user id is a UUIDv4, but it was a live over-delete primitive.
  • Single-use session tokens and OAuth states could be consumed twice on Cassandra/ScyllaDB (#824). Completing #818: DeleteSessionTokenByUserIDAndKey treats a DELETE ... IF EXISTS applied flag as the exactly-once arbiter behind refresh-token rotation, and that lightweight transaction is stamped from the Paxos ballot — the server clock — while AddSessionToken's plain insert carried the driver's client timestamp. With the client clock ahead the tombstone lands below the insert: the row survives, yet Paxos saw a live row and returned applied=true, so the next claim of the same token also returned applied=true. Measured on scylladb/scylla with the client clock 10 ms ahead: 20 of 20 tokens claimed twice, 0 of 20 after the fix. session_tokens, oauth_states and authenticators now take the coordinator's clock on every write, including the one inside DeleteUser's cascade. Applied per query, never cluster-wide, so the ~20 tables that never touch a lightweight transaction stay on one client clock rather than several node clocks. No Paxos round-trip is added to the login path. Sanity-check NTP on application hosts before upgrading — a host minutes off NTP was already losing lightweight-transaction deletes on the old binary, which is the bug being fixed.
  • Cassandra/ScyllaDB: a delete could be silently discarded after a lightweight-transaction insert (#818). A lightweight transaction takes its mutation timestamp from the Paxos ballot, i.e. the server clock, while a plain DELETE writes a tombstone carrying the driver's client-side timestamp. A tombstone only shadows a row whose timestamp it exceeds, so with the server clock running ahead the delete was dropped with no error and the row survived. Measured on scylladb/scylla at 46 of 50 tight insert-delete pairs. AddUser loses its IF NOT EXISTS — it only ever constrained a freshly generated UUID partition key, enforced no uniqueness, and its applied flag was never read — and the two org_domain deletes gain IF EXISTS, because there the lightweight transaction is load-bearing: the domain is the partition key and first-writer-wins is the atomicity guarantee. A dropped delete there left a verified domain claimed permanently. Apache Cassandra was not observed to drop the write in the runs behind this entry, and the reason given here originally — that its ballot timestamp is truncated to whole milliseconds, flooring the row marker behind the later client timestamp — was measured false while preparing #824: with the client stamp forced back 10 ms, Apache Cassandra 4.1.12 drops 50 of 50, and an ambient run with the engine clock 15 ms ahead still dropped 0 of 50, which truncation cannot explain either. The exposure is not engine-specific. Whether it fires without forcing depends only on which way the client and coordinator clocks happen to sit, which is what made it look flaky. No schema or data migration.

2.4.2

Choose a tag to compare

@lakhansamani lakhansamani released this 14 Oct 12:48
89968b6

Security release. Closes six advisories reported through SECURITY.md, plus three
dependency advisories reachable from this codebase. Upgrading from 2.4.1 is
recommended for every deployment.
See the upgrade notes at the end — audit-log
result counts change on two backends, and one behaviour changes on the gRPC and
REST transports.

Security

  • Trusted-URL pin was bypassed on the gRPC and REST transports (GHSA-m46m-j9p5-5j99, high). --url is authoritative for this server's own base URL on the gin path, inside parsers.GetHostFromRequest. The gRPC transport built the same value straight from caller-supplied metadata and never consulted --url, so the pin reached neither gRPC nor the grpc-gateway REST mux in front of it. That value becomes the host of the emailed password-reset and magic-link URL and the iss claim of the tokens minted from it, so a caller able to choose it could have a victim emailed a genuine reset link pointing at a host the caller controls. Fixed with two independent locks, matching the treatment x-forwarded-for already carries: the transport now prefers the configured --url, and the gateway refuses the X-Authorizer-Url header (closing the Grpc-Metadata- spelling that DefaultHeaderMatcher forwards prefix-stripped). Affected >= 2.3.0-rc.3 (#814).
  • Public gRPC methods skipped the delegated-scope gate (GHSA-25j3-4jg3-w352, high). The auth interceptor returned for every public method before resolving any credential, so enforceDelegatedScope — which sat below that return — never ran on the public path. Six public RPCs are dual-mode and hand a bearer token to a resolver that accepts a delegated token, so an agent holding an openid-scoped delegated token could call TotpMfaSetup, collect a Verified MFA-session cookie, and trade it at SkipMfaSetup for an unattenuated first-party user token with no act claim. No MFA RPC is on the delegated allow-list, so the policy already said deny; it was never consulted. Credential resolution on the public path stays opportunistic — a caller with no credential reaches the handler exactly as before — and the gate no-ops on first-party tokens. Machine identities are now also rejected at the two dual-mode resolvers. Affected >= 2.4.0-rc.13 (#799).
  • /verify_email delivered session tokens in the redirect query string (GHSA-44vr-f829-xfch, high). The handler appended access_token, id_token and refresh_token to the query string of a redirect target validated only at origin granularity, so any path under an allowed origin received a full session. An unauthenticated attacker could start the flow through magic_link_login with a redirect_uri under the app's own origin and read the victim's tokens from the target page, the access log, the browser history or the Referer header — and because this endpoint is reached from an emailed link, that URL is unusually long-lived. The tokens are gone; redirect validation additionally goes through checkClientRedirectURI, the exact-match validator /authorize already uses. Affected all releases through 2.4.1 (#798).
  • A password-only profile change did not revoke existing sessions (GHSA-qx8r-9p3g-vcp4, medium). DeleteAllUserSessions lived only inside UpdateProfile's email-change branch, so a user who changed only their password kept every pre-existing session and refresh token alive — a stolen refresh token continued minting access tokens after the victim believed they had locked the attacker out. The sibling reset_password path already revoked correctly. Affected all releases through 2.4.1 (#796).
  • validate_jwt_token did not bind the token to its signed token_type (GHSA-cqr5-83v5-mx8f, medium). The requested type was checked against a list of legal names but never compared with the token's own signed claim, so all six cross-type combinations validated: a refresh token or an id_token passed as an access token. The session-store lookup did not catch it because one nonce is stamped on all three tokens of a login, so an entry existed whatever token was presented, and the fetched value was discarded rather than compared. Both checks are restored, matching ValidateAccessToken and ValidateRefreshToken. The rejection is indistinguishable from any other invalid token, since a distinct error on a public RPC would disclose an unknown token's type. Reachable on GraphQL, gRPC and REST, which share one implementation. Affected all releases through 2.4.1 (#796).
  • /authorize/consent accepted a delegated token with no scope check (GHSA-hhhh-p743-q3cp, low). The handler authorized an approval on caller identity alone, and the dual-mode resolver returns the delegating user's sub for an RFC 8693 delegated token, so the check passed for an agent acting on a user's behalf — on a plain gin route behind neither of the two gates that enforce internal/delegatedscope. An openid-scoped delegated token could therefore record a consent approval for an arbitrary third-party client. The caller cannot redeem it (/authorize resolves its session from the cookie only, and the login-handoff code it can observe is not bound to an authenticated user and fails exchange), so the exposure is that consent can be pre-approved for one exact pending request and a later visit from the user's own browser then skips the consent screen. Delegated callers are now refused outright: approving a grant confers whatever scope the third-party client requested, unbounded by the agent's own ceiling, so the operation is deliberately absent from the delegated allow-list rather than gated by a scope. Browser flows are unchanged — the session cookie is resolved before any bearer token. Affected all releases through 2.4.1 (#815).
  • gRPC bumped to v1.83.2 for GO-2026-6443 (server panic via missing authority/Host headers, reached by grpcsrv.Run → grpc.Server.Serve → http2Server.HandleStreams) and GO-2026-6348 (reached through the generated admin gRPC client). Both reachable from called code, not merely present. Note the target: the advisory names v1.82.2 as the fix for the 1.82.x line, but on 1.83.x it landed in v1.83.2, so v1.83.1 is still affected (#797).
  • OpenTelemetry bumped to v1.45.0 for GO-2026-6505: the OTLP trace exporter can log exporter configuration — including endpoint URLs, which may carry credentials or internal hostnames — at info level. govulncheck classes it reachable here through the embedded OpenFGA engine's init, the gocql driver and the metrics package. Indirect dependency only; no source change (#807).
  • golang.org/x/net bumped to v0.60.0 for five called vulnerabilities — GO-2026-6617, GO-2026-6612, GO-2026-6611, GO-2026-6610 (HTTP/2 framing and header handling) and GO-2026-6603 (HTTP/2 server memory exhaustion via Trailer headers). All reachable: the traces run through the gRPC listener, which reads and writes h2 frames directly, the outbound webhook test client, and WebAuthn registration verification (#811).
  • Release image builds with Go 1.27 so the shipped binary picks up the current toolchain and its standard-library security fixes. go.mod deliberately stays at 1.26.6 — Go builds an older module with a newer toolchain unchanged, so this is a toolchain bump, not a language version bump (#800).

Fixed

  • Audit-log filters were silently ignored on CassandraDB/ScyllaDB and Couchbase. _audit_logs advertises six filters; those two backends built their WHERE clause from actor_id and action only and discarded resource_type, resource_id, from_timestamp and to_timestamp — returning unfiltered rows with no error, so a narrowed audit query read as authoritative when it was not. The dashboard's Audit Logs page was already sending three of the dropped filters, so the UI offered filtering that did nothing. A second bug surfaced while fixing it: on ScyllaDB two indexed equalities without ALLOW FILTERING are rejected outright, which is the query the old builder emitted — so _audit_logs(action:, actor_id:), the one combination Cassandra was believed to support, had never worked there. All six filters now apply on every backend (#802).
  • A failed audit-log scan returned a truncated page with a nil error on CassandraDB/ScyllaDB. ListAuditLogs never checked scanner.Err(), so a read timeout or coordinator failure part-way through ended iteration normally: the caller got fewer rows and no indication, while pagination.total reported the real count. Newly reachable because the filters ab...
Read more