Skip to content

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 04 Oct 01:56
· 2 commits to main since this release

Self-hosted OAuth 2.1 Authorization Server for the Model Context Protocol.

Security patch release. No new config keys, metrics or audit actions.
Read the upgrade notes first: one step applies to fronting links, and
three schema migrations run automatically.

Upgrade notes

  • Fronting links: add your gateway's client_id to the source
    resource's runtime clients before upgrading
    (authserver admin resource runtime-client add --slug <source> --client-id <gateway>). Until then its exchanges are refused with
    access_denied.
  • Migration 014 makes users.email nullable (on SQLite it rebuilds
    the users table, keeping every row). Once applied, do not start an
    older binary against the database without first running
    014_user_email_nullable.down.sql, which works only while at most one
    user has no email.
  • Migration 015 allows one account per federated identity. It refuses
    to apply if two federated accounts already share a provider subject;
    the migration file has the query that finds them.
  • Migration 016 adds refresh_token to every client stored with
    grant_types exactly ["authorization_code"], so existing clients keep
    refresh (see Security).

Security

  • Any client holding the token-exchange grant, including one registered
    through open dynamic registration, could exchange through a fronting
    link and reach the target as the gateway. Only the gateway may now:
    a client listed in the source resource's policy.runtime.client_ids,
    or in the target's policy.exchange.allowed_client_ids (see Upgrade
    notes).
  • Token exchange through a fronting link with no scope parameter skipped
    the link's scope check. A caller whose token lacked the mapped source
    scope was issued a token for the target with no scope claim, or, on a
    broker target, the user's stored upstream token. When scope is omitted
    the server now derives it from the subject token's scopes through the
    link, and refuses the exchange when none map. Both fronting-link issues
    affect 0.1.0 through 0.2.1 when token exchange is enabled (the default
    from 0.2.0).
  • A direct token exchange with no scope returned the user's full
    upstream credential on a broker resource, and a token with an empty
    scope on a Mint resource. The scope now defaults to what the exchange is
    authorized for (on a broker, what the agent is consented for), and the
    exchange is refused when that is empty.
  • client_credentials with a resource issued scopes the resource never
    declared, and a client with no scopes (for example one registered
    through open dynamic registration) could get a token for any resource
    by omitting scope. Scopes are now limited to the client's scopes the
    resource declares; nothing left → invalid_scope. An unknown
    resource returns invalid_target.
  • XAA (jwt-bearer) kept issuing tokens for a mapped local user after the
    user was disabled or deleted, and those tokens stayed active at
    introspection. Both are now refused. A subject mapping must name an
    existing user.
  • Token exchange accepted subject and actor tokens of disabled users and
    suspended clients, which introspection already reports inactive. Those
    are now refused with invalid_grant.
  • A jwt-bearer client with no scope ceiling, such as one registered
    through open dynamic registration, received the XAA policy's maximum
    scopes. It is now refused with invalid_scope.
  • Refresh tokens were issued to clients not registered for the
    refresh_token grant. They are now issued and honored only for
    clients that have it. Registrations that omit grant_types default to
    authorization_code and refresh_token.
  • A config value written as ${VAR} that no environment variable
    overrides now fails at startup instead of being used literally. The
    Docker quickstart showed one for admin.api_key without passing the
    variable; if you copied it, rotate the key and pass it as
    AUTHPLANE_ADMIN_API_KEY.
  • A few log lines, one span attribute and three audit records that
    included the user's email address no longer do. user_id identifies
    the record instead.
  • Container image base layers are pinned by digest.

Changed

  • Tokens minted through a fronting link name the agent at act.act.sub
    (previously the gateway, when gateway and agent are different
    clients), and they introspect as active to the target resource's
    runtime clients (previously inactive to everyone).
  • Audit rows for fronted exchanges record the calling client in
    client_id and actor_client; the source resource stays in
    via_link.
  • Examples and AGENTS.md pin the current SDKs: TypeScript and Python
    0.5.0, Go v0.4.0.

Fixed

  • Federated sign-in works for users whose identity provider sends no
    email; previously only the first such user could sign in. A first
    sign-in whose email belongs to another account gets a 409 page that
    explains why. Two simultaneous first sign-ins no longer create two
    accounts. Server-side failures on the callback return 500, not 401.
  • Audit events raised inside an HTTP request carry the caller's IP.
  • Traces: a 5xx response marks the server span as an error; Vault Transit
    signing joins the request trace; upstream broker, CIMD dispatch and IdP
    discovery calls get spans and log a WARN on failure.
  • Dashboards: three Operations panels queried renamed or nonexistent
    metrics; every exported instrument is charted; Prometheus alert rules
    ship in deploy/observability/alerts.yaml.
  • Audit catalog: token.issue_denied, token.refresh_denied,
    admin.ui.login, key.rotated and dcr.mode_updated documented;
    GET /admin/audit query filters documented.
  • Deploy guides: the Vault alert string is vault token renewal failed;
    the admin port default is :9001; AUTHPLANE_DPOP_PURGE_INTERVAL is
    removed from the compose files (nothing reads it); rate limiting behind
    a reverse proxy is explained (the limiter keys on the peer address, so
    every client behind one proxy shares a bucket).
  • Topology pages: the broker-mcp flow now shows how an agent reaches a
    broker resource (consent at its own Mint resource, then token exchange;
    a broker resource is never the target of /authorize); the
    gateway-mint request names target-side scopes; the
    fronting_link_missing error links to a page that exists.
  • Reference docs: rows for invalid_client_metadata,
    invalid_redirect_uri and invalid_target; HTTP metric labels named
    correctly.
  • CLI help: admin fronting and admin resource runtime-client describe
    the gateway rule; admin resource create --description, which was
    never stored, is hidden and warns when used.

Full Changelog: v0.2.1...v0.2.2