Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 15 Sep 06:32
· 6 commits to main since this release

Authplane Auth Server v0.2.0

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

MCP Authorization 2026-07-28 release, built with Go 1.26.6. Every gap
between authserver and the current revision of the specification is closed,
and the spec-surface features now ship enabled. A wire-level conformance
journey gates every change.

Contains breaking changes. Three bite a deployment that changes no
configuration: the spec-surface features are on, a cross-client token
exchange needs an operator allowlist entry, and an origin-only CIMD
client_id is refused. Read the next section first.

Breaking changes

  • DPoP, client credentials, token exchange and XAA are enabled by default.
    dpop.enabled, client_credentials.enabled, token_exchange.enabled and
    xaa.enabled now default to true; a stock deployment previously
    advertised only authorization_code and refresh_token. The discovery
    document grows accordingly. DPoP enabled means supported, not required —
    a client sending no proof still gets a bearer token. Grants remain gated by
    client registration, so enabling one widens what a client may register
    for; it grants nothing retroactively. XAA validates nothing until a trusted
    IdP is registered. The Helm chart (0.4.0) follows suit.
    Action: set any of the four to false (or the matching
    AUTHPLANE_*_ENABLED) to keep the previous posture.

  • A cross-client token exchange needs an operator allowlist entry. A
    client presenting a token minted for a different client — the common
    shape is an MCP server exchanging a user's web-app or agent token for a
    Mint resource token — must be named on the target Resource, in
    policy.exchange.allowed_client_ids or policy.runtime.client_ids.
    Otherwise the exchange is refused with access_denied (not
    consent_required; re-prompting the user would not fix it). Previously an
    empty allowlist meant "any client may act", so any client holding another
    client's token could spend that client's consent. Unaffected: a client
    exchanging a token issued to itself, fronted exchanges, Broker resources,
    and an MCP server exchanging for its own resource where it is already in
    runtime.client_ids.
    Action: for each MCP server that exchanges for a downstream resource it
    does not act as:

    PATCH /admin/resources/{id}
    {"policy": {"exchange": {"allowed_client_ids": ["<exchanging-client-id>"]}}}
    
  • A CIMD client_id URL must use https and carry a path component.
    Per the 2026-07-28 client-registration rules. An origin-only identifier
    (https://example.com) collapses every client on that domain into one
    identity and one consent record, so it is refused at /oauth/authorize
    with invalid_client; dot-segments and empty segments do not count as a
    path. Those identifiers were never spec-legal.
    Action: re-register affected clients against a metadata URL with a path.

  • cimd.require_https: false is only accepted with a localhost issuer.
    The server refuses to boot otherwise: a metadata document served over
    plaintext decides a client's identity and redirect URIs and is modifiable in
    transit. Both shipped configs already use a localhost issuer.

  • cimd.require_https no longer governs SSRF address filtering;
    cimd.allow_private_addresses does.
    Turning HTTPS enforcement off for
    local development previously also, and silently, removed dial-time address
    filtering, so a DNS name resolving to a private or cloud-metadata address
    was fetched unchecked. The two controls are now independent; both default
    to their protective setting, and the new key is likewise refused off a
    localhost issuer.
    Action: if you run require_https: false and serve CIMD documents from
    loopback, a container network or a LAN address (the shape of the demo
    config), add cimd.allow_private_addresses: true.

  • resource at the token endpoint is enforced. On the authorization-code
    and refresh paths it was read and dropped; the audience came from the
    session, so a client naming a different resource got a token for the one
    it authorized, with a 200. A resource that is not one the grant covers is
    now refused with invalid_target (RFC 8707 §2.2), before the code or
    refresh token is consumed. Omitting it is unchanged. The likeliest way to
    hit this is a spelling difference: resource URIs match exactly and a
    trailing slash counts.

  • Go API (embedders only): Fetcher.SetAllowLoopback is removed — the
    address policy rides on the per-request CIMDFetchConfig;
    ssrf.NewSafeTransport is variadic; AccessTokenClaims.MayAct is removed;
    api/public.NewServer panics when the authorize or consent handlers are
    wired without an IssuerProvider.

Upgrading from 0.1.2

  • Config and database from 0.1.2 work unchanged apart from the above.
    Migration 004 applies on first start — additive (a nullable
    application_type column on clients; existing rows stay NULL and read
    as web).
  • Decide the posture for the four now-on features before upgrading.
  • Authorize each MCP server that exchanges for a downstream resource (see
    above). An MCP server exchanging for its own resource needs nothing.
  • If any client uses an origin-only CIMD client_id, re-register it first.

Security

  • The consent screen shows where an approval will be sent, and warns when
    that is the user's own machine.
    The client name is self-declared; the
    redirect URI is the one thing on the screen the server has verified. The
    destination host is rendered in its own block above Deny/Allow; a loopback
    destination is marked, with a warning that any program on the machine can
    ask for this. Parsed from the URI, so a userinfo decoy
    (https://good.example.com@evil.example/cb) displays evil.example.
  • The CIMD fetch path is bounded. GET /oauth/authorize needs no session
    and a URL-shaped client_id is fetched, so an unauthenticated caller could
    drive outbound traffic at will. Failed fetches are negatively cached,
    concurrent fetches of one document collapse into one, total outbound
    concurrency is capped, and the document cache is bounded in entries.
  • The DPoP nonce middleware no longer issues a nonce — a durable insert —
    for every /oauth/token request.
    Only a request presenting a DPoP
    header gets one. Reachable now that DPoP is on by default.
  • Dependency updates. google.golang.org/grpc v1.83.2 (CVE-2026-84445);
    go-jose/v4 v4.1.5 — verification key chosen per signature, alg checked
    against the key's curve, malformed Ed25519 JWKs and out-of-range
    NumericDate rejected, on the paths a trusted-IdP JWKS reaches;
    golang.org/x/crypto v0.57.0 (CVE-2026-56855, CVE-2026-78662).
  • The dcr.mode: open boot warning now reports the effective mode, so a
    mode persisted through the admin API cannot leave it silent.
  • AUTHPLANE_XAA_SUBJECT_MODE is validated at boot; a typo no longer
    silently downgrades strict to auto_map.

Added

  • The AS serves OAuth 2.0 Protected Resource Metadata (RFC 9728) for
    every registered Resource, at GET /.well-known/oauth-protected-resource
    and /.well-known/oauth-protected-resource/{ref} — ref being the §3.1
    path suffix of the Resource URI or its slug. A resource server that cannot
    host well-known paths itself still has a conformant document to point its
    WWW-Authenticate: resource_metadata at. A Resource with no URI is 404, not
    a document with an empty resource.
  • RFC 9207 iss on every authorization response, success and error
    alike, and authorization_response_iss_parameter_supported: true in
    discovery — emitted unconditionally, because a client keys its strict
    rejection on it and "absent" differs from "false". The value is written
    verbatim; clients compare it byte for byte.
  • authorization_grant_profiles_supported in discovery, listing
    urn:ietf:params:oauth:grant-profile:id-jag — the field the stable MCP
    Enterprise-Managed Authorization extension tells clients to check. This
    server previously advertised the capability only under a pre-standard flag
    no conformant client reads.
  • POST /oauth/register accepts and persists application_type (web
    or native). MCP clients are required to send it; a client that omits it
    is defaulted to web and told so in the response, which under OIDC refuses
    the loopback redirect URIs native clients need.
  • xaa.* is configurable from the environment: AUTHPLANE_XAA_ENABLED,
    _TOKEN_EXPIRY, _MAX_ASSERTION_AGE, _REQUIRE_RESOURCE,
    _SUBJECT_MODE, _JWKS_CACHE_TTL.
  • cimd.allow_private_addresses (default false,
    AUTHPLANE_CIMD_ALLOW_PRIVATE_ADDRESSES) — see Breaking changes.

Changed

  • CIMD documents are cached according to their own HTTP cache headers
    (Cache-Control, Expires), bounded above by cimd.cache_ttl and below by
    a short floor; no-store is honoured. cimd.cache_ttl is now a ceiling
    rather than a fixed lifetime.
  • The server warns at boot when dcr.mode is open. The 2026-07-28
    specification deprecates DCR in favour of CIMD, which needs no registration
    endpoint and is on by default, so most deployments no longer need open DCR.
    It stays the default only because client-side CIMD support is still
    arriving.

Deprecated

  • identity_assertion_supported in AS metadata — still emitted this
    release; removed in v0.3.0. Read authorization_grant_profiles_supported.
  • Dynamic Client Registration as the primary registration path, per the
    specification. Still supported; set dcr.mode: admin_only or
    approved_redirects once your clients register via CIMD.

Removed

  • may_act. Its writer was removed long ago; the reader, claim field and
    documentation were unreachable leftovers. Operator impact: none — a
    cross-client exchange with no resource was already impossible and fails
    at the same point with the same access_denied.

Fixed

  • GET /.well-known/oauth-protected-resource/{ref} answered 500 on a ref
    that was not valid UTF-8; it is 404 now.
  • The consent POST resolved the issuer after minting the authorization
    code, so an issuer failure orphaned the code and persisted the grant.
  • The compliance statement declared a require_scope deviation that was not
    one, citing a record that did not exist.
  • The generated config reference documented zeros for every xaa.* default.

Full Changelog: v0.1.2...v0.2.0