CTK: §9 authorization-token vectors; mark §9 reference-backed (0.3.3)#11
Merged
Conversation
…d (0.3.3) The reference implements the §9 token profile from delego 0.3.3. Adds ctk/vectors/token.json (+ token_signing_key.pub) — verifier vectors for §9.1: valid token + alg=none (algorithm confusion), tampered signature, wrong audience, expired — wired into conformance.py (skipped on reference < 0.3.3). Flips §9's status tag from 'draft — not yet in reference' to reference-backed; no normative design text changed. Protocol version unchanged (token is additive).
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.
The reference now implements the §9 authorization-token profile (delego#17, 0.3.3). Per the spec-leads-reference model, §9 becomes reference-backed once the reference reproduces its CTK vectors — which it now does.
Changes
ctk/vectors/token.json+ctk/vectors/token_signing_key.pub— verifier (PEP) vectors for §9.1: a valid token, plusalg=none(algorithm confusion), tampered signature, wrongaud, and expired — each marked accept/reject. Wired intoconformance.py(skipped on a reference < 0.3.3).spec.md§9 status tag flipped from draft — not yet in reference → reference-backed (optional profile), since delego 0.3.3. No normative design text changed — this is the sanctioned §2.1 transition (a clause becomes reference-backed once its CTK vectors reproduce), not an edit to the frozen design.ctk/README.md+CHANGELOG.mdupdated.Protocol version unchanged (still 0.3): the token is additive and changes no hashed/signed bytes.
Verification
validate.pyandconformance.pyboth green locally against delego 0.3.3 — including the 5 new token cases. The conformance CI here installsdelego@main(now 0.3.3), so it will replay them.