Repository navigation
Align verification steps and error mapping with signature-key -08 - #63
Merged
Merged
Conversation
dickhardt
force-pushed
the
sigkey08-algorithms
branch
from
August 6, 2026 07:30
11cf423 to
0181182
Compare
The six-step verification procedure predated -08 in three ways: it read the algorithm before resolving the key, it had no defined path for an unrecognized Signature-Key scheme, and it performed the metadata issuer check without reporting a registered error code. - Reordered so the algorithm is read from the key the scheme resolved to. Under scheme=jwt that key is the cnf.jwk of the presented token, which the server does not hold until the assertion has verified. - Added the unsupported_scheme step that -08 makes mandatory and conformance-testable, with Accept-Signature-Scheme naming what the server accepts, plus a subsection for the AAuth case where jwt is the only accepted scheme. - Replaced the vague algorithm step with the specific checks, reporting unsupported_algorithm with Accept-Signature-Alg, and invalid_key where kty or crv disagrees with alg. - Mapped the metadata issuer check to issuer_missing and issuer_mismatch, and required issuer to be present rather than only to match. - Stated the 401 profile explicitly, since the base spec uses 400 for most signature failures, and that a 403 carries none of the three signature headers. - Forbade the alg signature parameter and discouraged keyid per RFC 9421 Sections 3.3.7 and 5.1. - Rewrote the requirement=agent-token comparison, which described the sigkey Accept-Signature parameter that -08 removed. Fixes #58 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_011H2BBgoKc7DqXeme5yT9Ls
dickhardt
force-pushed
the
sigkey08-verification-errors
branch
from
August 6, 2026 07:33
ee4a4df to
d34eba7
Compare
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.
Stack 3 of 7. Base:
sigkey08-algorithms(#62). Fixes #58.The six-step verification procedure predated -08 in three ways: it read the algorithm before resolving the key, it had no defined path for an unrecognized
Signature-Keyscheme, and it performed the metadata issuer check without reporting a registered error code.Changes
scheme=jwtthat key is thecnf.jwkof the presented token, which the server does not hold until the assertion has verified — the old ordering was not implementable as written.unsupported_schemestep that -08 makes mandatory and conformance-testable, withAccept-Signature-Schemenaming what the server accepts, plus a subsection for the AAuth case wherejwtis the only accepted scheme. AAuth said agents MUST NOT use other schemes but never said what a server does on receipt.unsupported_algorithm(withAccept-Signature-Alg) for absent, polymorphic, or unimplemented;invalid_keywherekty/crvdisagrees withalg.issuer_missing/issuer_mismatch, and requiredissuerto be present rather than only to match.400for most signature failures and permits401for recoverable ones; AAuth pins401. That divergence is now declared rather than implicit. Also states that a403carries none of the three signature headers, per -08 §Access Denied — this affects the AAuth errors returned with403.algsignature parameter and discouragedkeyid, per RFC 9421 §3.3.7 and §5.1.requirement=agent-tokencomparison, which described thesigkeyparameter ofAccept-Signature— removed outright in -08.On #58
The issue's central example (
supported_algorithms=(...)) no longer exists; -08 removed that member in favour ofAccept-Signature-Alg, which works on a challenge and an error alike. This PR closes #58 with the header path only and does not add the proposedrequest_signing_alg_values_supportedmetadata field:Ed25519is a MUST-support floor on both sides, so a conformant agent never reaches the error, and the field would be surface without a failure case to justify it.Accept-Signature-Schemeis likewise not added to AAuth challenges —AAuth-Requirement: requirement=agent-tokenis strictly more specific, saying "anaa-agent+jwt" rather than merely "the jwt scheme". It appears only on the error path, and mixed-mode resources may list more.🤖 Generated with Claude Code
https://claude.ai/code/session_011H2BBgoKc7DqXeme5yT9Ls