Repository navigation
Conversation
There was a problem hiding this comment.
Superseded by the review of
8dbc4a0e.
This review, of 72bbfb27
💬 Approved with comments — The verification changes are correct and tested. The only finding is a stale draft-00 reference in the Rust README, which has no runtime impact.
Findings: 1 warning
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
🔧 Fix with your agent
Paste the following into your coding agent to investigate and fix these issues.
Fix the following code review issues found in pull request #208.
Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order
## WARNING (1)
### [Documentation] The Rust crate README (line 8) and the root README table (line 57) still say the crate implements draft-00, but this change aligns it with draft-01.
- **File:** crates/web-bot-auth/README.md:8
📝 Documentation: ⚠️ 1 warning
The Rust README still names draft-00
Recommendation: 📝 Minor Comments
- [WARNING] The Rust crate README (line 8) and the root README table (line 57) still say the crate implements draft-00, but this change aligns it with draft-01. (
crates/web-bot-auth/README.md:8)
View full review
crates/web-bot-auth/README.md:8 and the Rust row at README.md:57 still say the Rust crate follows draft-00, but this pull request aligns Rust verification with draft-01.
✅ All other checks passed
🚀 Release: ✅ LGTM
This pull request contains no release artifacts. The description says a Rust patch release and a TypeScript minor release will follow.
🔒 Security: ✅ LGTM
check_nested_coverage in crates/web-bot-auth/src/lib.rs handles every keyed signature component. For each one it requires that the outer signature covers the matching signature-input member, that the inner list exists, and that the outer signature covers every inner component. Other components are skipped. The TypeScript assertNestedCoverage enforces the same rules before the Signature-Agent is resolved.
📖 AGENTS.md: ✅ LGTM
No issues.
📋 Code Quality: ✅ LGTM
No problems found. Nested coverage is enforced in both implementations, key selection prefers the signature's own label, decimal timestamps are rejected and covered by tests, and the Rust examples build against the published vector.
⚡ Performance: ✅ LGTM
The new checks run over a few small header entries on each request, so the cost is negligible.
Reviewed commit: 72bbfb27
There was a problem hiding this comment.
Superseded by the review of
e07dd281.
This review, of 8dbc4a0e
✅ Approved — The earlier draft-00 documentation issue is fixed in both READMEs, and no new problems turned up in the verification changes.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🚀 Release: ✅ LGTM
This pull request contains no release artifacts. The description says a Rust patch release and a TypeScript minor release will follow.
🔒 Security: ✅ LGTM
Each keyed signature component now needs the outer signature to cover the matching signature-input member and every inner component. TypeScript runs this check before it resolves the Signature-Agent or the verifier.
📖 AGENTS.md: ✅ LGTM
No issues.
📋 Code Quality: ✅ LGTM
Nested coverage is enforced in Rust (check_nested_coverage) and TypeScript (assertNestedCoverage). In Rust, Signature-Agent key selection falls back to the signature's own label and still handles the bare-header case. assertIntegerTimestamps skips quoted strings and item parameters, and tests cover it. The Rust examples read the published draft-01 vector.
⚡ Performance: ✅ LGTM
The new checks look at a few small header entries on each request, so the cost is negligible.
📝 Documentation: ✅ LGTM
README.md:57 and crates/web-bot-auth/README.md:8 now reference draft-ietf-webbotauth-httpsig-protocol-01.
Reviewed commit: 8dbc4a0e
There was a problem hiding this comment.
✅ Approved — The rewritten decimal-timestamp scan in http-message-sig is correct and has tests. Rust and TypeScript both still enforce nested signature coverage.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🚀 Release: ✅ LGTM
This pull request contains no release artifacts. The description says a Rust patch release and a TypeScript minor release will follow.
🔒 Security: ✅ LGTM
Rust's check_nested_coverage (crates/web-bot-auth/src/lib.rs:189-222) skips every component except a keyed signature. For each one, it requires the outer signature to cover the matching signature-input member and every component of that inner list. This matches the TypeScript check. The new timestamp scan in TypeScript rejects decimal created and expires values before verification.
📖 AGENTS.md: ✅ LGTM
No issues found.
📋 Code Quality: ✅ LGTM
The new rawParameterCount scan skips quoted strings, including backslash escapes, so top-level member labels stay in step with the parsed dictionary. assertIntegerTimestamp looks only at an exact created= or expires= signature parameter after the inner list closes, and rejects a decimal value. The null, undefined and label modes work as intended: when several signatures are present and no label is given, LabelRequired still prevents an unchecked decimal timestamp from being accepted. The tests cover the boundary cases, quoted content that looks like parameters, and selection by label.
One behaviour change to be aware of: appendSignature now rejects an existing Signature-Input header in which any member has a decimal created or expires. This matches the stated intent.
⚡ Performance: ✅ LGTM
The scan makes one linear pass over a small header, so the cost is negligible.
📝 Documentation: ✅ LGTM
No issues found.
Reviewed commit: e07dd281
A couple of fix so that we correctly follow draft -01
sig1=(due to;key="sig1"). Therefore, it includes only the inner value (that used to be the sole value of signature-agent header).These changes will lead to a patch release in rust and a minor release in typescript (considering we are still in 0.x there)
Closes #202, #203, #195