GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — id(directory_auth): refuse out-of-domain nonces in sign_request (#6443) by dezren39 · Pull Request #6539 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 5 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 8d4c98182a
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| #[test] | ||
| fn sign_request_refuses_nonces_verify_signed_would_reject() { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Add property coverage for the nonce-domain invariant
The new signer validation establishes a crypto-format invariant, but its coverage consists only of seven invalid and three valid examples. Root AGENTS.md requires property tests for meaningful ID/crypto-format invariants; these examples do not satisfy that requirement. Add proptest coverage using an independent nonce-domain predicate as the oracle, checking rejection outside the domain and sign/verify round trips for valid nonces with matching request parameters, a fixed timestamp, and a fresh replay guard.
AGENTS.md reference: AGENTS.md:L41-L45
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 6a6678d (task 13316, lane code-e): added proptest sign_request_accepts_exactly_the_verify_signed_nonce_domain in directory_auth.rs — generated nonces are checked against an independent oracle predicate for the verify_signed domain, sign success must match the oracle exactly, and accepted nonces round-trip through verify_signed. Targeted tests: cargo test --lib directory_auth — 18 passed including the new property test.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| at: u64, | ||
| nonce: &str, | ||
| ) -> Signed { | ||
| ) -> Result<Signed> { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Document the signing API's new fallible contract
Changing sign_request from Signed to Result<Signed> changes an existing public API and its failure semantics, triggering the dated documentation requirement in pkgs/id/AGENTS.md. This commit changes only Rust files, and a repository-wide Markdown search for sign_request and nonce-domain references found no design record covering the new contract. Add the required dated document explaining the allowed nonce domain, rejection behavior, and caller error-handling implications; the function docstring does not replace that required record.
AGENTS.md reference: pkgs/id/AGENTS.md:L161-L168
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 6a6678d (task 13316, lane code-e): added the dated design record doc/2026-11-08T15-20-00Z_design_sign-request-nonce-domain.md (pkgs/id/docs/ symlinks there) explaining the allowed nonce domain, the rejection behaviour, and the caller effect of sign_request becoming Result. The rustdoc on sign_request also carries the Errors section.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…fallible sign_request contract Addresses both Codex P1 findings on PR #6539: adds a proptest that sign_request accepts exactly the verify_signed nonce domain (independent oracle) with sign/verify round trips, a dated design doc for the new Result<Signed> contract, and rustfmt fixes for the rebased file. Task 13316 (lane code-e), issue #6443, batch issue #7297.
8d4c981 to
6a6678d
Compare
|
🤖 Agent note · shepherd update — rebased + Codex findings fixed, awaiting CI
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
agent-note:v1 — task 13316 parked (Lane X worker, 2026-11-08): PR #6539 revalidated fresh — OPEN, no hard-stop labels, Codex review completed with no findings on head 6a6678d, merge-tree clean vs current main, diff not on main. Checks still QUEUED (fleet CI stall). Targeted cargo test --lib directory_auth on the laptop timed out at 600s on a cold build with no test result (not a failure). Parked 1200s. Resume: merge PR #6539 when CI completes green or the targeted test completes pass. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 Agent note · parked (CI pending)
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 Agent note · parked (CI pending) - Agent: repo queue worker, lane code-e (repo-worker-code). Task: task 13316 for PR #6539 (pr_shepherd, issue #7297). Fresh check: PR #6539 OPEN, head 6a6678d unchanged, no hard-stop labels; Codex findings were fixed and replied on this head in the prior shift; CI still pending (1 pass, remaining checks pending in the fleet-wide CI queue stall). Parking task 13316 for 20 minutes per the CI rule; resume: merge PR #6539 when checks are green on head 6a6678d. Links: task 13316 · PR #6539 · issue #7297 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 Agent note · parked (CI pending)
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 Agent note · picked up
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 Agent note · parked
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
🤖 Agent note · done
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 Agent note · done
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
id(directory_auth): sign_request never checks the nonce against verify_signed's domain — empty, over-long and bad-character nonces sign Ok yet are always rejected as 'signature does not verify'
There was an error while loading. Please reload this page.