Skip to content

Signature ledger: nonce-arm identity keying is unpinned, and the ledger-full 429 carries no Retry-After #259

Open

Description

@beardthelion

Two small follow-ups from the #253 phase-1 work.

The nonce arm's identity keying is not covered by a test. ledger_key's nonce branch hashes the resolved public key rather than the wire DID, so two multibase spellings of one key cannot reuse a nonce. That is asserted in a doc comment, but reverting that one line to the wire DID leaves the whole suite green: the tests that exercise re-spelling either sign without a nonce or drive only the per-identity cap. The property does hold (the cap and single-use are both tested), the specific line just is not pinned. A test that signs one nonce under two spellings and asserts the second is a 409 would close it.

The ledger-full 429 has no Retry-After. ledger_rejection sets X-Gitlawb-Error and a message saying to retry shortly, but nothing tells the caller when. The node can compute it: the oldest live row's expires_at for that identity is exactly when a slot frees. gl now turns this into a hard error, so the user is told to wait with no idea how long. Emitting Retry-After would also let a client back off correctly instead of guessing.

Activity

  1. added
    kind:feature
    sev:low
    subsystem:attestation
    subsystem:identity
    on Jul 27, 2026
  2. added
    crate:node
    on Sep 5, 2026
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

    crate:nodekind:featuresev:lowsubsystem:attestationsubsystem:identity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions