Repository navigation
v0.2.2
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_idto 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.emailnullable (on SQLite it rebuilds
theuserstable, 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_tokento every client stored with
grant_typesexactly["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'spolicy.runtime.client_ids,
or in the target'spolicy.exchange.allowed_client_ids(see Upgrade
notes). - Token exchange through a fronting link with no
scopeparameter skipped
the link's scope check. A caller whose token lacked the mapped source
scope was issued a token for the target with noscopeclaim, or, on a
broker target, the user's stored upstream token. Whenscopeis 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
scopereturned 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_credentialswith aresourceissued 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 omittingscope. Scopes are now limited to the client's scopes the
resource declares; nothing left →invalid_scope. An unknown
resourcereturnsinvalid_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 withinvalid_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 withinvalid_scope. - Refresh tokens were issued to clients not registered for the
refresh_tokengrant. They are now issued and honored only for
clients that have it. Registrations that omitgrant_typesdefault to
authorization_codeandrefresh_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 foradmin.api_keywithout 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_ididentifies
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_idandactor_client; the source resource stays in
via_link. - Examples and
AGENTS.mdpin 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 indeploy/observability/alerts.yaml. - Audit catalog:
token.issue_denied,token.refresh_denied,
admin.ui.login,key.rotatedanddcr.mode_updateddocumented;
GET /admin/auditquery filters documented. - Deploy guides: the Vault alert string is
vault token renewal failed;
the admin port default is:9001;AUTHPLANE_DPOP_PURGE_INTERVALis
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_missingerror links to a page that exists. - Reference docs: rows for
invalid_client_metadata,
invalid_redirect_uriandinvalid_target; HTTP metric labels named
correctly. - CLI help:
admin frontingandadmin resource runtime-clientdescribe
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