Repository navigation
test(request-signing): grade step-1 header rules (vectors 029-031, guards 013-015, re-code 026) - #8066
Merged
bokelley merged 2 commits intoOct 9, 2026
Conversation
…29-031 and guards 013-015 Refs #7905 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…formed at step 10 Aligns the vector with the security.mdx error table and canonicalization.json. Gives it a real signature over the A-label base so the host is the only fault. Refs #7905 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean conformance-vector PR, no blocking or medium findings.
Checked:
- Adds six request-signing conformance vectors (negative 029/030/031, positive 013/014/015) and recodes negative/026. The 026 outcome change (request_target_uri_malformed, step 10) is correct errata matching security.mdx:1650 error table; old grading contradicted it. Shipped on a patch changeset — appropriate.
- 029/030 inherit normative basis from existing graded siblings 021/023; 031 is well-constructed (real sig over clean URL authority, unbracketed Host the only fault).
- README, signed-requests.yaml, and vector outcomes are coherent; PENDING_MIRROR test exemptions consistent.
- No schema-source changes, no dist/** immutability concerns, no oneOf regression, no breaking wire change. Base is main (3.2.1→3.3), so the 3.1.x patch floor does not apply.
Decision path: no critical/high findings (row 1 N/A); gated_paths false (row 2 N/A); high_risk false (rows 3/5 N/A); no medium findings (rows 4/8 N/A); no prior escalation (row 6 N/A); no no-auto-approve team match (row 7 N/A). Falls through to row 9 → approve.
Non-blocking follow-up noted by reviewer: the new real-signature vectors lack automated crypto-verification coverage (only positive/002 and profile-3.2/001 have it) — a transcription error in signature bytes would ship silently. This is a pre-existing corpus gap, not a regression introduced here.
bokelley
deleted the
conductor/33-pull-7905-three-step-1-header-rules-the-reques
branch
October 9, 2026 00:56
bokelley
added a commit
that referenced
this pull request
Oct 9, 2026
Complete the profile-3.2 counterparts for unsigned and malformed/duplicate signing-header requests, with required Content-Digest coverage, independently verified real signatures where possible, and strict mirror parity. The existing step-ordering question remains in #7577. Parent #8066 is merged. Validation: all 60 exact-head service checks passed and the existing review approves that same source. Independently ran the unchanged official vector test on SDK15.2: 92 passes and 2 explicitly documented TODOs; the generator verifies all43 profile-3.2 vectors. The non-ASCII-host TODO now passes, while the malformed-Host TODO remains an upstream SDK gap. No native gates were waived. Closes #7733.
This was referenced Oct 13, 2026
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.
Refs #7905 (does not close it: the profile-3.2 mirrors land in #7733).
What
Closes three step-1 grading gaps in the root request-signing corpus, adds the matching false-positive guards, and re-codes
negative/026per the maintainer decision.negative/029-duplicate-signature-labelsig1twice onSignature(once onSignature-Input)request_signature_header_malformed, step 1negative/030-content-digest-key-caseContent-Digest: SHA-256=…, sha-256=…request_signature_header_malformed, step 1negative/031-malformed-host-authorityHost: ::1with URLhttps://[::1]/…, real signature over[::1]request_target_uri_malformed, step 10positive/013-two-signature-labels-distinctsig1/sig2on both headersverified_label: sig1positive/014-content-digest-two-algorithmssha-256+sha-512, both correctpositive/015-bracketed-ipv6-host-with-portHost: [2001:db8::1]:8443negative/026-non-ascii-host(re-coded)request_signature_header_malformed/1 →request_target_uri_malformed/10Also: README file-layout tree + run-order,
universal/signed-requests.yamlsummary, apatchchangeset, and aPENDING_MIRRORallowlist intests/request-signing-profile-3.2-vectors.test.cjs(013, 014, 015, 026, 031) so the mirror-parity test passes until #7733 generates the 3.2 counterparts. #7733 should delete those entries.026 correction (maintainer decision, option a)
security.mdx(error table) andcanonicalization.jsonmap a raw non-ASCII host torequest_target_uri_malformed, so the oldrequest_signature_header_malformed/step 1 was wrong. Verifiers that matched the old code must update. It now carries a real Ed25519 signature over the A-label base, so a verifier that silently applies ToASCII verifies and wrongly accepts: the host is the only fault. 026 is not in the 3.2 generator and has no 3.2 copy, so nothing to regenerate here; #7733 mirrors it.Notes for reviewers
Signature-Inputin 021.security.mdxstep 1 says only "reject if malformed" and has no explicit sentence for duplicateSignaturelabels or malformedContent-Digest(same gap for 021/023). One normative sentence would close it; left out of thispatchPR.sig1+sig2on both headers. 013's only real difference is a correctly sized 64-bytesig2(004's decodes to 66 bytes).Content-Digestis 3.1 unpadded Base64URL; the 3.2 mirror must re-encode as standard padded Base64.test-ed25519-2026key; no generator committed. Verified independently.Hostheader that differs from the vectorurlauthority (no earlier vector has aHostheader).Testing
npm run test:transport-errors(incl.--check): 250 passnode --test tests/request-signing-body-integrity.test.cjs,lint-conformance-doc-freshness,lint-doc-compliance-drift: passnode scripts/check-changeset-protocol-scope.cjs origin/main: pass--no-verify(known sandbox timeout intest:unit's 180 s limit; it passes given 300 s). Pre-push ran withADCP_SKIP_STORYBOARD_MATRIX=1(the hook's documented opt-out; CI's training-agent-storyboards workflow is authoritative). Nodist/committed.🤖 Generated with Claude Code
Open workspace in Conductor