GeezerVison is showing github.com — fleet transport: accept-side NodeId allowlist and per-ALPN authorization · Issue #14720 · developing-today/code
fleet transport: accept-side NodeId allowlist and per-ALPN authorization #14720DescriptionWork item 2c from the fleet transport & pooling design (#13752).
Design §2.2: iroh authenticates the peer NodeId in the handshake; authorization is the application's. The accepting endpoint decides which NodeIds may connect, per protocol (ALPN), from registry enrollment (1a).
Acceptance
- Accept-side allowlist derived from registry enrollment, enforced per ALPN.
- Refusals logged with NodeId and ALPN; tests for allowed, unknown and revoked NodeIds.
Depends on 1a and the 2a endpoint.
Design record: doc/2026-11-23T21-10-36Z_design_fleet-transport-pooling/2026-11-23T21-10-36Z_design_fleet-transport-pooling.md (merged via #13757). Design issue #13752; slicing issue #14218; tracking #14158.
Remote builds and tests only: dispatch with fleet queue dispatch (runbook pkgs/fleet/doc/agents/remote-build-and-test.md).
Generated by Claude Code
Acceptance criteria
- Accept-side NodeId allowlist is derived from registry enrollment and enforced per ALPN at the accepting endpoint (iroh handshake authentication alone is not treated as authorization).
- Refusals are logged with NodeId and ALPN.
- Tests cover allowed, unknown, and revoked NodeIds.
Activitydeveloping-today commented on Nov 25, 2026 developing-today-fleet commented on Nov 25, 2026 Intake review
Related: design #13752, slicing #14218, tracking #14158, design record merged via #13757.
Notes: Verified still live at intake (2026-11-25T03:5xZ): filed 2026-11-25 in the current design-slice series, no merged PR or duplicate issue resolves it. The issue body carried acceptance bullets but no ## Acceptance criteria section; that section is now appended (original body preserved verbatim above it), restating the body's own acceptance/done-check as checkable criteria. Labels normalized by the fleet monitor.
Risks: Sequencing risk: this slice sits in the #13752 dependency chain — starting it before its named dependencies land risks rework against a moving registry/pool API.
Suggested approach: Depends on 1a (#14714) and the 2a endpoint (#14718). Follow the design record's section cited in the body; remote builds/tests only via fleet queue dispatch per the runbook named in the body. The body's own Acceptance bullets are restated verbatim in substance in the appended criteria section.
dezren39 commented on Nov 25, 2026
🤖 Agent note · xaltha hourly work-loop 2026-11-24 ~22:52 CST — dependency-blocked, releasing
dezren39 commented on Nov 25, 2026
🤖 Agent note · xaltha hourly work-loop 2026-11-25 ~11:58 CST — slice landed, PR open
- Dependency state changed since the 2026-11-24 release note: 1a registry schema (fleet transport: registry schema — transport offers + identity bindings on the #2179 host record #14714) is now CLOSED — PR feat(fleet): registry transport offers + github-backup deploy tests skip without node #14830 merged 2026-11-25T06:44Z — so the allowlist source exists. 2a endpoint (fleet transport: iroh pilot — one non-Muse seat class to one host, measured against the #10356 baseline #14718) is still OPEN with no PR; this slice lands the part that does not depend on it, per the feature-slice rule.
- PR feat(fleet): accept-side NodeId allowlist, per-ALPN authorization (#14720 slice) #15171 (branch
xaltha/14720-nodeid-allowlist, commit c201544): new std-only crate pkgs/fleet/crates/fleet-transport (mirroring sibling 3a's fleet-pool shape). Allowlist::from_enrollments derives the table from registry enrollment bindings (the fleet transport: registry schema — transport offers + identity bindings on the #2179 host record #14714 enrollment projection + the §2.4 NodeId binding); authorize(node_id, alpn) enforces per ALPN for active bindings only; every refusal is logged with NodeId + ALPN and a distinct reason (unknown-node-id / revoked-node-id / alpn-not-enrolled).
- Tests cover all three acceptance-named cases — allowed, unknown, revoked NodeIds — plus per-ALPN refusal, build errors, and a proptest model oracle.
- Verification (remote only):
fleet queue dispatch still blocked by TLS defect fleet: repo-queue dispatch fails with TLS UnknownIssuer behind the egress proxy (Rust TLS ignores SSL_CERT_FILE) #13185 (UnknownIssuer, observed on this branch); fallback fleet-command.yml run 45668578451 — cd pkgs/fleet && cargo test -p fleet-transport — completed success. Run metadata/conclusion only; no CI logs read.
- Remaining on this issue: wiring
authorize() into the accepting endpoint's accept loop and emitting the refusal log — that lands with the 2a endpoint (fleet transport: iroh pilot — one non-Muse seat class to one host, measured against the #10356 baseline #14718), which this crate is the enforcement point for. Next slice, in feature-slice form: after that PR, a connection from a revoked NodeId to the pilot endpoint is refused in the endpoint's log with its NodeId and ALPN.
dezren39 commented on Nov 26, 2026
🤖 Agent note · Archer queue lane SF 2026-11-26 ~06:50 CST — triage of queue task 23893
Premise + ownership: Issue OPEN, premise still valid, no assignee, no held/user label, no Drew-decision gate. All comments read. Prior lanes: released 2026-11-24 as dependency-blocked, then a first slice landed as PR #15171 on 2026-11-25 after dependency 1a (#14714, PR #14830) merged.
Verified state today:
- fleet transport: registry schema — transport offers + identity bindings on the #2179 host record #14714 (registry enrollment, the allowlist source): CLOSED / merged.
- fleet transport: iroh pilot — one non-Muse seat class to one host, measured against the #10356 baseline #14718 (2a iroh pilot endpoint, the enforcement point): still OPEN, no PR — endpoint wiring for this issue remains blocked on it.
- PR feat(fleet): accept-side NodeId allowlist, per-ALPN authorization (#14720 slice) #15171 (allowlist slice, branch
xaltha/14720-nodeid-allowlist @ c201544): OPEN, not merged. Its remote verification independently re-checked today: fleet-command run 45668578451 — cargo test -p fleet-transport — conclusion success. Tests cover allowed, unknown and revoked NodeIds, per-ALPN refusal, and refusal logging with NodeId + ALPN, matching this issue's acceptance bullets for the decision layer.
- New blocker — crate-name collision: PR feat(fleet): accept-side NodeId allowlist, per-ALPN authorization (#14720 slice) #15171 is now merge-conflicted (
mergeable=false, dirty, 558 commits behind main). Root cause found: main landed a different crate at the same path/name today, 2026-11-26T11:40Z — commit f152fa5 "feat(fleet): add transport routing core" creating pkgs/fleet/crates/fleet-transport (routing core, S2 of design: transport adapter contract — declarations, levels, asymmetric routing (multi-transport head) #13929), with no allowlist/NodeId content. The PR's allowlist crate cannot merge as-is without colliding with / overwriting that routing core.
Triage verdict: Not a small fix. The allowlist slice needs rework — re-home Allowlist/authorize as a module inside main's existing fleet-transport crate (or a distinctly named crate), rebase, and re-verify via fleet-command / repo CI on the pushed branch (Actions exec TLS UnknownIssuer defect #15575/#13185 route noted; fleet-command fallback is the proven route). Endpoint accept-loop wiring remains a further slice gated on #14718.
Disposition: Queue task 23893 parked with that rework as its ready condition (not a person). This issue stays open; PR #15171 stays open as the source of the tested allowlist code until the rework supersedes it. dezren39 commented on Nov 26, 2026 Lane agent-next-24-local — resumed task 23893 and completed the re-home as PR #15595, merged at faad106a849a6bb88a781f2ffe4e3ed828106471.
The allowlist now lives in the existing fleet-transport crate. It derives per-ALPN decisions from enrollment bindings, distinguishes unknown/revoked/wrong-ALPN refusals, records NodeId and ALPN for every refusal, and includes the acceptance tests plus a model-oracle property test. Refreshed-branch remote verification: dezren39/fleet#45865447805, terminal success — 6 routing-core tests and 8 allowlist tests passed.
#14720 remains open because the real accept-loop wiring and endpoint log are not present until #14718 lands. That next slice is task 24303, dependency-blocked on #14718. PR #15171 is closed as superseded by this re-home. dezren39 commented on Nov 26, 2026 Correction after merge: GitHub closed #14720 along with PR #15595, but the acceptance text still includes enforcement and refusal logging at the real accepting endpoint. That endpoint is tracked by open issue #14718, so #14720 has been reopened for task #24303, which is dependency-blocked on #14718. The merged allowlist decision layer and its tests are complete; endpoint wiring is not.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|