Skip to content

Releases

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

2.4.1

Choose a tag to compare

@lakhansamani lakhansamani released this 03 Sep 11:48
0bceb94

Security release. Fixes two reported advisories plus two further issues of the same classes found while fixing them.

Upgrading from 2.4.0 is recommended for every deployment. Read the migration note below first — it affects anyone running behind a reverse proxy.

Security fixes

Issue Severity Affected
Admin-secret brute-force lockout bypass via spoofable client IP (GHSA-93hc-xq3w-xw87) Critical >= 2.4.0-rc.16
Token-exchange delegation laundered a machine identity into a user identity (GHSA-vq29-8q3c-3hrm) High 2.3.0-rc.10, >= 2.4.0-rc.0
required_relations evaluated a machine token as a user High 2.3.0-rc.10, >= 2.4.0-rc.0

Client IP is now taken from the connection, not from headers

utils.GetIP returned X-Real-Ip / X-Forwarded-For verbatim while the router was hardened with SetTrustedProxies. The admin-secret lockout buckets on that value, so rotating a header per request turned 10 failures per 15 minutes into unlimited online guessing of the super-admin secret.

Two further bypasses of the same counter are closed alongside it: RemoteAddr was returned as IP:port, so the ephemeral port gave every new TCP connection a fresh bucket with no header forgery at all; and the gRPC/REST surface resolved the address from caller-settable metadata, including the Grpc-Metadata-X-Forwarded-For spelling that grpc-gateway forwards with the prefix stripped.

Machine identities are no longer laundered into user identities

A delegated token minted from a service-account subject dropped its login_method claim, and the authorization resolver treats a missing claim as a human user — so an autonomous machine was evaluated as user:<sub>, flipping OpenFGA decisions from deny to allow. This was not limited to the reported self-delegation shape; the multi-hop agent chain laundered identically.

Separately, enforceRequiredRelations discarded the classified subject and hardcoded user:<id>, so validate_jwt_token with required_relations answered a plain client_credentials token against a user subject while check_permissions denied the identical token. No delegation was required to reach that one. Subject classification is now shared by all three authorization decision surfaces.

⚠️ Migration note — --trusted-proxies

--trusted-proxies now governs client-IP resolution everywhere, not only the rate limiter.

If you run behind a reverse proxy, CDN or load balancer and have not set it, every client will now resolve to the proxy's address — audit-log IPs change, and one attacker's failed admin guesses fill the single shared lockout bucket. The flag was already load-bearing for rate limiting, so this makes resolution consistent rather than newly dependent, but it must now be set.

--trusted-proxies=10.0.0.0/8,203.0.113.7/32

List every hop. With a CDN in front of a load balancer, both must appear, or the client IP resolves to the outermost unlisted proxy. Railway deployments want --trusted-proxies=100.64.0.0/10. The server logs a warning at startup when the flag is empty.

Behaviour changes

  • A machine-subject delegated token now resolves to service_account:<client_id> rather than user:<service-account-row-id>. Tuples written against the latter for a service account stop matching — that is the vulnerability closing. User-subject delegation is unchanged.
  • A chained machine-subject token exchange now succeeds past the first hop, where it previously failed with invalid_grant. Liveness is still re-checked per hop, scope still attenuates monotonically, and the depth cap is unchanged.

Full changelog: https://github.com/authorizerdev/authorizer/blob/main/CHANGELOG.md
Compare: 2.4.0...2.4.1

2.4.0

Choose a tag to compare

@lakhansamani lakhansamani released this 19 Aug 08:13
4ad0758

Enterprise SSO (SAML IdP, verified domains, home realm discovery), WebAuthn/passkey login, SCIM 2.0, machine and agent identity (client_credentials, RFC 7523 workload identity, RFC 8693 delegation), a remote MCP server, gRPC and REST alongside GraphQL, and an OpenFGA-backed authorization engine.

Breaking: --url is now required, the at-rest encryption key is split out as --encryption-key, MFA is on by default and opt-out, and /userinfo filters claims by scope. Read CHANGELOG.md before upgrading — every breaking entry states what to change.

New: --redirect-uris holds this deployment's own client to an exact redirect_uri match, the rule OIDC Core §3.1.2.1 states and the one clients registered through RFC 7591 or a metadata document already got. Unset keeps the --allowed-origins fallback, which compares origins and so accepts any path under an allowed host.

Verified for this release: make test-all-db across all seven backends, make lint, make smoke, the Playwright e2e suite (105 tests), the SDK-driven Go e2e suite, and a Trivy scan with no HIGH/CRITICAL findings.

OpenID Foundation conformance: the Config profile passes clean. On the Basic profile 17 modules pass and 9 raise warnings. The two modules that require an unregistered redirect_uri to be refused — oidcc-ensure-registered-redirect-uri and oidcc-ensure-request-object-with-redirect-uri — now run to the suite's manual review step with no failed assertions when --redirect-uris is set.

2.4.0-rc.23

2.4.0-rc.23 Pre-release
Pre-release

Choose a tag to compare

@lakhansamani lakhansamani released this 17 Aug 14:00
0206e7f

Release candidate for 2.4.0.

Since 2.4.0-rc.22

Security

  • A logged-out subject can no longer seed new delegations (#776) — token exchange verified a subject_token's signature, issuer and type and nothing else. The resulting delegated token is bound to a third-party resource and validated by that server, which has no view of this session store, so after a logout the user's agent kept minting fresh, externally valid credentials until the subject token expired. Exchange now checks the subject session's liveness when the token carries a sid. Service-account subjects stay exempt — a client_credentials token has no browser session. Same opaque invalid_grant as the invalid-subject path, so the endpoint is not a sign-in oracle. Ships with audit + metrics on all fourteen previously-silent exchange refusal paths (token.exchange_failed, authorizer_auth_events_total{event=token_exchange}, token_exchange_rejected), plus meters for the agent scope ceiling and delegated-token validation refusals.
  • Revocation is now visible at /oauth/introspect and /oauth/revoke (#774) — the session entry is this codebase's only revocation record, and neither token endpoint consulted it. Introspection answered active:true for tokens ValidateAccessToken already rejected, disclosing sub, scope and aud with it (RFC 7662 §2.2); any resource server trusting the endpoint accepted a logged-out token for the rest of its TTL. /oauth/revoke advertised token_type_hint=access_token but only ever looked up refresh tokens, returning the mandated 200 having revoked nothing — the hint now orders the lookup rather than restricting it (RFC 7009 §2.1). id_token is carved out by type; it is never registered in the store.
  • Two reachable IANA special-purpose ranges added to the SSRF block list (#781) — 198.18.0.0/15 and 192.88.99.0/24. The former is the one with real exposure: not being globally routable is exactly why organisations use it internally, so an SSRF there reaches a live internal service through an address that reads as public to every "is this private?" check, including this one. Found while testing the JWKS-fetch path: a container on a 198.18.0.0/24 docker network was fetched successfully through the unmodified guard.
  • Spec-defined outbound fetches refuse redirects (#775) — backchannel logout and client-metadata retrieval must reach the resource AT the URL named. Webhook delivery and the admin test-endpoint probe deliberately still follow redirects; those URLs are the operator's own. Also fixes cacheTTL parsing, where fmt.Sscanf accepted max-age=600junk as 600 (the clamp made every outcome safe, so no live defect).

Added

  • /mcp accepts RFC 8693 delegated tokens (#773) — an agent could not ask Authorizer about its own delegated authority: check_permissions was unreachable with the very token that proves the delegation, so agent delegation over MCP stayed a stdio-only story. The fallback is gated on the act claim and goes through a separate entry point, so audience matching stays exact in both directions: a token bound to the bare server URL is still refused at /mcp, and an MCP-bound one is still refused everywhere else.

Fixed

  • Workload identity: issuer enums are allow-listed, SPIFFE labelled preview (#777).
  • Correct false comments, remove dead code, wire missing telemetry (#779).

Tests

  • Kubernetes workload identity pinned against a real cluster (#778) and e2e coverage of workload identity against a real JWKS fetch (#782).

Upgrading from 2.3.x

--url is required — the server refuses to start without it. It is not --allowed-origins: --url is this server's own address, --allowed-origins is the apps it may redirect to. See Trusted base URL.

--encryption-key is required for RS*/ES* deployments.

Full detail in CHANGELOG.md.

2.4.0-rc.22

2.4.0-rc.22 Pre-release
Pre-release

Choose a tag to compare

@lakhansamani lakhansamani released this 14 Aug 14:35
2532341

Release candidate for 2.4.0.

Since 2.4.0-rc.21

  • Go 1.26.6 (#772) — go.mod is the single source of truth; every workflow resolves the toolchain from it and the image tracks golang:1.26-alpine3.23.
  • --url added to every runnable command in the repo (#771) — the README (including the Docker quick start and the volume-persistence example), MIGRATION.md, the perf harness and .env.sample all documented commands that exited at boot, because --url became mandatory in #764 and these were never swept.
  • e2e mock host ports are overridable (#770) — the suite published five fixed host ports and died at startup if any was taken locally, with no way to change it. Each is now ${SERVICE_HOST_PORT:-<default>}; defaults unchanged.

Upgrading from 2.3.x

--url is required — the server refuses to start without it. It is not --allowed-origins: --url is this server's own address, --allowed-origins is the apps it may redirect to. See Trusted base URL.

--encryption-key is required for RS*/ES* deployments.

Full detail in CHANGELOG.md.