GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 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' · Issue #6443 · developing-today/code

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' #6443

New issue
Copy link
New issue
Copy link
Closed
#6539
Closed
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'#6443
#6539
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Nov 6, 2026
Issue body actions

Summary

pkgs/id/src/directory_auth.rs: sign_request (line 304) signs any nonce presented to it and returns the Signed infallibly (#[must_use], no Result), while verify_signed (line 327) refuses — before it even checks the signature — any nonce that is empty, longer than 64 characters, or contains a character outside ASCII alphanumeric plus - (lines 348–353). A caller can therefore produce a correctly-signed request that every verifier rejects, and the signing call gives no signal anything is wrong.

The rejected shapes are all decidable at sign time from sign_request's own inputs: the nonce rule depends only on the nonce: &str argument itself. (The other verify_signed checks are correctly verify-only: the time window is relative to the server's clock, and replay is server state — neither is asked to move.)

The rejection is also misattributed when it happens: the nonce failure returns the generic refused() error, "signature does not verify", so a client debugging a rejected request is pointed at its key/signature, not at the malformed nonce it chose.

This is the same construction-vs-receipt asymmetry as #6422 (sign_authorisation never calls validate), #6424 (sign_genesis/sign_claim never check the signer is a player), and #6434 (sign_header/sign_footer never check version/roster/signer/commitment), in a module none of them covers. The in-tree precedent for the fix shape is #5623: a known kind is signed only when receipt would accept it, so signing fails with the receipt refusal instead of producing a dead-on-arrival object.

Evidence (verified this run, laptop @ origin/main 9e20032)

Probe: laptop worktree ~/git/fleet/probe-dir-auth-wt, test pkgs/id/tests/probe_dir_auth_sign.rs against the real id crate (test binary run directly after the build: 1 passed). Controls verify Ok through verify_signed with a fresh ReplayGuard: nonce "n1", "abc-DEF-123", and a 64-character nonce. Against those controls, sign_request returns a Signed (it has no error channel) and verify_signed rejects every one of:

  • "" — empty nonce
  • a 65-character nonce — one over the cap
  • "has space" — space
  • "under_score" — underscore
  • "plus+sign" — plus
  • "dot.name" — dot
  • "unié" — non-ASCII

Grep at origin/main: the nonce domain rule exists only at directory_auth.rs:348-353, inside verify_signed; sign_request at :304 and its call sites contain no nonce check. Dedup: gh search issues for "sign_request", "directory_auth" and "signed request nonce" returned no filing covering sign-time nonce validation (#6177 is the pending-codes slot in the same file, a different subject).

Why it matters

sign_request is the client helper for the signed-request authentication that world_hub / world_ws / world_session verify (verify_signed call sites in world_hub.rs:473, web/world_ws.rs:465, world_session/mod.rs:1207). A client that derives its nonce from anything other than a strict alphanumeric generator — a UUID with dots is fine, but a base64 nonce (+, /, =), a timestamp with separators, or an over-long random string — produces requests that can never authenticate, with the server reporting "signature does not verify". Failing at sign time, naming the nonce rule, makes the error local and actionable, exactly as the sibling fixes for #6422/#6424/#6434 propose.

Acceptance criteria

  • sign_request (or a nonce-validating constructor/helper it uses) refuses a nonce that is empty, longer than 64 characters, or contains a character outside ASCII alphanumeric plus -, with an error naming the nonce rule — before producing a signature. The exact API shape (fallible sign_request vs a validated nonce type) is triage's call, since the current signature returns Signed infallibly.
  • Well-formed nonces sign and verify exactly as before: existing directory_auth, world_ws, and world_session tests stay green.
  • New tests pin each refusal class above (empty / over-long / representative bad characters incl. non-ASCII), with the valid controls (short, alphanumeric+dash, exactly 64 chars) still verifying.
  • No change to verify_signed's verdicts, the wire format (Signed fields / headers), the replay guard, or the time-window rule.

🤖 Filed by the fleet new-issue-creator (lane B) — verified with a probe against the real crate this run; see the probe path in the evidence section.

Activity

Next
  1. developing-today commented on Nov 6, 2026

    @developing-today
    developing-todayBot
    on Nov 6, 2026 – with developing.today
    Contributor
    More actions

    CODE-1934

  2. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    queue/queuedHas a queued queue task
    status/needs-triageNot yet triaged; needs a first look
    on Nov 6, 2026
  3. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator (lane B, new-issue-creator-code-b)
    • Session / ID: cron new-issue-creator-code-b run 2026-11-05 22:20 CST
    • Found via: filed this run
    • Task: Filed after verifying with a laptop probe against the real id crate (~/git/fleet/probe-dir-auth-wt @ origin/main 9e20032, 1 passed): sign_request signs empty/65-char/space/underscore/plus/dot/non-ASCII nonces infallibly; verify_signed rejects every one. Enqueuing a triage packet to repo-health-code-pilot.
    • Expectation: effort s; done = triage decides the fallible API shape and the sign-time nonce refusal lands with pinning tests, verify_signed verdicts unchanged.
    • Links: probe ~/git/fleet/probe-dir-auth-wt (pkgs/id/tests/probe_dir_auth_sign.rs); siblings id(currency): sign_authorisation never calls validate — a signed authorisation naming another issuer or with rate_den = 0 is dead on arrival, and signing succeeds silently #6422, id(attestation): sign_genesis / sign_claim never check the signer is a player — a non-player's signed genesis or claim is dead on arrival, and signing succeeds silently #6424, id(match_audit): sign_header/sign_footer never check version, roster, signer or seed commitment — signatures verify_integrity always rejects are produced silently #6434
  4. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    agent-note:v1 — task 10889 handed off to the opencode execution lane (lane code-l, repo-worker-code) at 2026-11-06T09:16Z.

    Fresh revalidation: issue #6443 OPEN, no held/user-owned/do-not labels, no PR yet. Triage scope is in the packet: pkgs/id/src/directory_auth.rs sign_request nonce validation against verify_signed's domain, with tests. Parked 20m for the claimant to bind.

  5. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    work/assignedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 6, 2026
  6. 49 remaining items

  7. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 8, 2026
  8. dezren39
    added 2 commits that reference this issue on Nov 8, 2026

    id(directory_auth): refuse out-of-domain nonces in sign_request (#6443)

    912b3a6

    id(directory_auth): property-cover the nonce domain and document the …

    6a6678d
  9. developing-today
    added a commit that references this issue on Nov 9, 2026

    Merge pull request #6539 from developing-today/queue/10889-6443-sign-…

    3bd39e6
  10. developing-today
    closed this as completedin #6539on Nov 9, 2026
  11. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 9, 2026
  12. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    Picked up by repo-worker-code-l — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code-l posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  13. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 11, 2026
  14. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (queue reconciliation)

    • Agent: repo-worker-code, OpenChamber scheduled lane ec118cad-0fd3-4652-91c4-27432f2f2efd
    • Task: 10889; fresh GitHub state confirms issue closed and PR id(directory_auth): refuse out-of-domain nonces in sign_request (#6443) #6539 merged as 3bd39e6. Completed the stale queue claim as already done.
    • Tests: not rerun for this reconciliation.
  15. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (already_done)

    • Agent: repo-worker-code (lane code-d, queue task 14845)
    • State: done — outcome already_done (duplicate packet of task 10889)
    • Evidence (fresh): issue 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' #6443 CLOSED; PR id(directory_auth): refuse out-of-domain nonces in sign_request (#6443) #6539 MERGED (merge commit 3bd39e6). On current main, pkgs/id/src/directory_auth.rs carries nonce_in_domain (1–64 ASCII alphanumerics/-) and sign_request refuses out-of-domain nonces with that rule before signing — the exact validation this packet scoped. Task 10889 was already reconciled as already done on the same evidence.
    • Next: none.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.