Skip to content

Keying Material: pin how a server signs - #148

Merged
dickhardt merged 1 commit into
mainfrom
server-signing-scheme
Sep 7, 2026
Merged

dickhardt merged 1 commit into
mainfrom
server-signing-scheme

Conversation

@dickhardt

Copy link
Copy Markdown
Owner

§Keying Material pinned the scheme for agents — MUST use scheme=jwt, MUST NOT use jwks_uri or hwk — and said nothing about the PS, AS, AP, and resource requests the protocol also depends on. Server-to-server signing appeared only in the PS-to-AS example, which was itself malformed until #147 fixed it.

Added:

A PS, AS, AP, or resource making a signed AAuth request in its own right — a PS-to-AS token request, a revocation, or any other server-to-server call — MUST use scheme=jwks_uri. The id parameter MUST be the server's issuer as published in its metadata, and dwk MUST be that metadata document's well-known name: aauth-person.json, aauth-access.json, aauth-agent.json, or aauth-resource.json.

The recipient resolves id to the caller's identity, and the metadata issuer check binds that identity to the iss of every token the server mints.

Why this matters now

Token revocation (#146, #147) names a token by jti alone and keys the entry under the verified caller. That derivation had no normative footing: a server signing with scheme=jwks presents a JWKS URL as its identity, not an issuer URL, and a recipient would have had nothing to key on. With the scheme pinned, (id, jti) is two plain strings off the same request.

Carve-out

A resource acting as an agent to reach a downstream resource (#multi-hop) is signing as an agent, not as a server — it presents its own agent token with scheme=jwt, as §Call Chaining already requires.

Builds clean with mmark + xml2rfc.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Vibbcv1TAfcACkkbNTkraE

Keying Material named the scheme for agents and said nothing about the
PS, AS, AP, and resource requests the protocol also depends on. Server
signing appeared only in the PS-to-AS example, which was itself
malformed until last week.

A server signing in its own right MUST use scheme=jwks_uri, with id
equal to its metadata issuer and dwk the well-known name of that
document. The recipient resolves id to the caller, and the metadata
check binds that identity to the iss of every token the server mints.

Token revocation rests on this: it names a token by jti alone and keys
the entry under the verified caller. Without a pinned scheme there was
no normative guarantee the signature yielded an issuer URL at all — a
server signing with scheme=jwks would have presented a JWKS URL as its
identity.

A resource acting as an agent in multi-hop signs as an agent, with
scheme=jwt.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vibbcv1TAfcACkkbNTkraE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant