Skip to content

id: implement signed transport advertisements + rendezvous fetch/verify client (from #5793 decision record) #8214

Closed

Description

@dezren39

Summary

Implement the rendezvous decision record for UDP-denied clients: doc/2026-11-10_rendezvous_discovery_udp_denied_design.md (PR #8213, from issue #5793 / task 12886, parent #5671).

Scope

  • Advertisement type in pkgs/id: TransportAdvertisement v1 — subject identity fingerprint, transports[] (kind/endpoint/priority/broker identity), issued_at/expires_at (TTL ≤ 24h), strictly increasing sequence, Ed25519 signature over the domain-separated canonical encoding (id-transport-advertisement/v1 || canonical JSON).
  • Sign/serve: server-side minting on transport change and per TTL; the .well-known/id-transport-advertisement HTTPS handler serving the current signed ad byte-for-byte.
  • Fetch/verify/cache client: pinned-identity signature verification, highest-sequence-wins across substrates, last-known-good cache with degraded-past-expiry semantics and background revalidation, fetch order per the record (cache → well-known HTTPS → Workers rendezvous by subject hash → DNS bootstrap hints).
  • Sequence durability: the sequence counter persists beside the identity key and never regresses across restarts.

Acceptance

  • Hostile-substrate test: a substrate serving forged, altered, or replayed (older-sequence) ads fails closed — the client never acts on them (record invariant 2/3).
  • Disagreement test: two substrates returning different valid ads resolve to the highest sequence regardless of fetch order.
  • Expired-ad test: past-expiry ad is used only as flagged-degraded last-known-good, with revalidation attempted.
  • Round-trip test: an ad minted by the server verifies and selects transports in the parent id: design: ID transport fallback for UDP-denied networks v1 #5671 fallback order.

Out of scope

Links

Activity

  1. developing-today commented on Nov 10, 2026

    @developing-today
    Contributor
  2. added this to the ID platform program milestone on Nov 12, 2026
  3. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/highImportant and time-sensitive
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    on Nov 17, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — task 18603 (lane code-e)

  5. added 2 commits that reference this issue on Nov 17, 2026
  6. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: in-progress
    task: 20089 (queue repo-health-code-pilot, worker repo-worker-code, lane code-d)

    Progress on issue #8214 — slices 1+2 landed and merged this shift (2026-11-17); the task parks with the remaining slices as the resume condition.

  7. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · in-progress — slices 1+2 re-verified on current main; parking with slices 3+4 as the resume condition (task 20089)

    • Agent: queue worker (repo-worker-code), lane any-c
    • Session / ID: task 20089

    Re-verified fresh this shift (2026-11-17): lane code-d's landed state is intact on current main — cargo test -p id-core --lib transport_advertisement (run from pkgs/id): 12 passed, 0 failed. PRs #10951/#10952 (slices 1+2) stand merged.

    Integration facts gathered for the resuming lane (so the next session starts at the decision, not the search):

    • The wire format is settled: SignedAdvertisement serializes as flattened serde JSON (advertisement fields + signature hex) — substrates serve/fetch that JSON byte-for-byte.
    • There is no HTTP client stack anywhere in pkgs/id crates (no reqwest/ureq/hyper in any id Cargo.toml). Slice 3's substrate implementations therefore start with a stack decision: add a client dependency where the client's home is decided (the module doc says implementations "live with the client's HTTP stack" — that stack does not exist yet), or bind the Substrate trait to an injected fetch closure owned by the eventual caller. Do not bury a new HTTP dependency inside id-core without recording the choice on this issue.
    • Slice 4's server home is pkgs/id/crates/id-web (axum; routes under src/routes/, e.g. file_handlers.rs); the identity/signing material the minter needs already lives in the id server's signed-event machinery — locate the identity key beside which the SequenceFile must persist before writing the minter.
    • Slice 3 remainder per code-d's note: well-known fetch (https://<host>/.well-known/id-transport-advertisement?subject=<fp>), Workers rendezvous fetch by H(subject) against its blob interface, DNS _id.<host> TXT bootstrap hints, background revalidation on degraded selections. Slice 4: minting on transport change + per TTL, .well-known handler serving the current signed ad byte-for-byte.

    Resume condition: a session with a full implementation budget takes slice 3 (starting with the HTTP-stack decision above) or slice 4; the four acceptance tests on the issue are the oracle — the hostile/disagreement/expired legs are already covered at the resolve()/cache level by slices 1+2 tests, so remaining test work is at the substrate/handler level plus the server round-trip.

  8. 7 remaining items

  9. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — slice 4 landed; parking with slice 3 as the resume condition (lane any-f, task 20089)

    State: in-progress — slices 1, 2 and 4 are now merged; slice 3 remains.

    • Slice 4 — PR feat(id): transport advertisement minter + .well-known serving (#8214 slice 4) #11007 MERGED (ad1c299): AdMinter in id-core (mint on transport change / per TTL per Decision 3, served bytes captured at mint time for byte-for-byte parity, TTL clamped to 24h, 1h recommended const); the .well-known/id-transport-advertisement handler in id-web (new transport_ad.rs; serves the minter's current bytes verbatim, subject mismatch or no minter = 404; AppState.transport_ad plumbed through web_routers_with_surface like transfer_endpoint); id serve wiring in id-cli (minter from the node keypair, SequenceFile at .transport-ad-sequence beside KEY_FILE, first mint over the endpoint's live transports — UDP addrs priority 10, home relay priority 20 — plus a 30s watcher that re-mints on address-set change).
    • Tests (oracle: the id: design: rendezvous & discovery for UDP-denied clients (from #5671) #5793 record): 5 new minter tests (verify + byte stability, refresh only on change/expiry, expired re-mint, restart monotonicity invariant 8, TTL clamp) and 2 new handler tests (byte-for-byte serve + verify, mismatch/absent 404). Full suites green: id-core 470, id-web 698, id-cli 686. Codex review did not run (usage limits, zero findings; disposition note on PR feat(id): transport advertisement minter + .well-known serving (#8214 slice 4) #11007).
    • REMAINING (resume here): slice 3 — fetch-side HTTPS substrates: well-known fetch (https:///.well-known/id-transport-advertisement?subject=), Workers rendezvous fetch by H(subject), DNS _id. TXT bootstrap hints, background revalidation on degraded selections. Start from lane any-c's HTTP-stack decision recorded on this issue: there is no HTTP client stack in pkgs/id crates yet; either add a client dependency where the client's home is decided, or bind the Substrate trait to an injected fetch closure — record the choice on this issue before burying a dependency in id-core.
    • Worktree: ~/git/fleet/queue-20089-8214-wellknown (branch queue/20089-8214-wellknown-minter, merged; safe to remove).
  10. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 17, 2026
  11. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · park hand-off confirmed — task 20089 (lane code-a)

  12. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — picked up, resuming at slice 3 (lane any-j, task 20089)

    State: claimed — resuming from the parked checkpoint, not restarting. Re-verified fresh this shift: issue #8214 OPEN with no hard-stop labels; PR #10951 MERGED 2026-11-17T04:03Z, PR #10952 MERGED 2026-11-17T04:06Z, PR #11007 MERGED 2026-11-17T06:05Z — slices 1, 2 and 4 stand merged. Slice 3 is the only remainder.

    HTTP-stack decision (recorded before implementation, per lane any-c's note): bind the Substrate trait to an injected fetch closure. No HTTP client dependency is added to id-core: a new FetchBytes seam (implemented for any Fn(&str) -> Option<Vec> closure) carries the actual HTTPS GET, owned by the eventual caller's stack. On top of that seam, id-core gains the well-known substrate (URL per Decision 2.2), the Workers rendezvous substrate (fetch by H(subject); H defined here as the lowercase hex SHA-256 of the subject fingerprint string, matching the record's privacy purpose — the Workers component, out of scope here, must key its blobs by the same H), DNS _id. TXT bootstrap-hint parsing (hints name hosts only; DNS never carries or vouches for an ad, per Decision 2.4), and a revalidate entry point for background revalidation of degraded selections (Decision 3). Verification stays where slices 1+2 put it: substrates return the opaque signed object and resolve()/AdCache verify against the pinned subject, so a hostile substrate still fails closed.

    Next: implement slice 3 in id-core with substrate-level tests naming the record as oracle, open the PR, and merge under the standing criteria.

  13. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 17, 2026
  14. added a commit that references this issue on Nov 17, 2026
  15. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — slice 3 landed; #8214 complete (lane any-j, task 20089)

    State: done — all four slices are now merged, and the issue's acceptance scope is fully implemented.

    Closing this issue as complete. Worktree ~/git/fleet/queue-20089-8214-fetch (branch queue/20089-8214-fetch-substrates, merged) is safe to remove.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

effort/lLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)kind/enhancementpriority/highImportant and time-sensitivestatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions