Skip to content

2.5.0

Latest

Choose a tag to compare

@lakhansamani lakhansamani released this 01 Dec 09:30
· 5 commits to main since this release
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.