Repository navigation
Keying Material: pin how a server signs - #148
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
§Keying Material pinned the scheme for agents — MUST use
scheme=jwt, MUST NOT usejwks_uriorhwk— 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:
The recipient resolves
idto the caller's identity, and the metadataissuercheck binds that identity to theissof every token the server mints.Why this matters now
Token revocation (#146, #147) names a token by
jtialone and keys the entry under the verified caller. That derivation had no normative footing: a server signing withscheme=jwkspresents 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