GeezerVison is showing github.com — feat(fleet): accept-side NodeId allowlist, per-ALPN authorization (#14720 slice) by dezren39 · Pull Request #15171 · developing-today/code
Conversation
dezren39
commented
Nov 25, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
First slice of #14720 (work item 2c, fleet transport & pooling design #13752 §2.2): the accept-side authorization layer, as a new std-only crate pkgs/fleet/crates/fleet-transport, mirroring the shape sibling work item 3a used for fleet-pool (#14721).
Design §2.2: iroh's handshake authenticates the peer NodeId; authorization is the application's. This PR is that application layer, landed ahead of the 2a pilot endpoint (#14718, still open, no PR) so the endpoint's accept loop wires into a tested decision instead of inventing one:
Allowlist::from_enrollments derives the allowlist from registry enrollment bindings — the accept-side projection of the machine registry's enrollment map (landed by 1a, fleet transport: registry schema — transport offers + identity bindings on the #2179 host record #14714 / PR feat(fleet): registry transport offers + github-backup deploy tests skip without node #14830) plus the NodeId↔identity binding design §2.4 requires. Build rejects the shapes the registry validator rejects: duplicate bindings for one NodeId, bindings listing no ALPN, empty NodeIds.
authorize(node_id, alpn) enforces per ALPN: allowed only for an active binding enrolled for that exact ALPN. Handshake authentication alone is never treated as authorization.
- Every refusal is logged with NodeId and ALPN, with the reason kept distinct —
unknown-node-id vs revoked-node-id vs alpn-not-enrolled — because a revoked identity and a stranger need different operator responses. Revoked bindings stay in the table for exactly that reason.
Evidence
Merge Danger
Refs #14720
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-25T17:48:37Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": "/home/hatch",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/hatch",
"repo": "developing-today/code",
"branch": "main",
"sha": "bbfc8aa3a3b4f3e3d399b7e76beb6962c0daa5b9"
},
"auth_subject": "xaltha",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…#14720)
New std-only crate fleet-transport: the application authorization
layer design #13752 §2.2 requires over iroh's handshake
authentication. Allowlist::from_enrollments derives the table from
registry enrollment bindings (#14714 enrollment + the §2.4 NodeId
binding); authorize() decides per (NodeId, ALPN) — allowed only for
an active binding enrolled for that ALPN — and every refusal is
logged with NodeId, ALPN and reason (unknown / revoked /
alpn-not-enrolled, kept distinct). Tests cover allowed, unknown and
revoked NodeIds plus a proptest model oracle.
Slice of #14720: the decision layer the 2a endpoint (#14718) wires
into its accept loop; the endpoint itself is not in this PR.
Warning
Review limit reached
You'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 7 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
48f3b481-74f9-4dbd-a775-6b13b0bd534e
Commits
-
Reviewing files that changed from the base of the PR and between 2eb6892 and c201544.
Files ignored due to path filters: 1
-
pkgs/fleet/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 4
-
pkgs/fleet/Cargo.toml
pkgs/fleet/crates/fleet-transport/Cargo.toml
pkgs/fleet/crates/fleet-transport/src/lib.rs
pkgs/fleet/crates/fleet-transport/tests/auth.rs
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
🤖 Agent note · Archer queue lane SF triage 2026-11-26 — merge blocker found
This PR's verification stands (fleet-command run 45668578451, cargo test -p fleet-transport, success), but it is now merge-conflicted with main and cannot merge as-is: main landed a different crate at the same path/name today (f152fa5, "feat(fleet): add transport routing core", S2 of #13929) at pkgs/fleet/crates/fleet-transport, containing no allowlist code.
Needed rework: re-home this PR's Allowlist/authorize logic as a module in main's existing fleet-transport crate (or a distinctly named crate), rebase onto current main, and re-verify. Full triage recorded on #14720. Leaving this PR open as the source of the tested allowlist code until the rework supersedes it.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dezren39
added a commit
that referenced
this pull request
Nov 26, 2026
)
Re-homes PR #15171's tested accept-side allowlist as src/allowlist.rs
module inside main's existing fleet-transport routing-core crate
(f152fa5), re-exported at the crate root so the original API and
tests/auth.rs carry over verbatim. Supersedes #15171, whose standalone
crate collided with the routing core at the same path/name.
Refs #14720
|
Salvage note — closing this PR as superseded by #15595. Current main introduced the routing-core crate at the same pkgs/fleet/crates/fleet-transport path, so this standalone-crate version cannot merge without colliding. The unique tested allowlist code and acceptance tests are preserved in #15595's rehome (src/allowlist.rs, crate-root exports, and tests/auth.rs); no unique behavior remains to port from this PR. The existing verification run 45668578451 passed on the original crate. Task 23893 is actively rehoming the code; #14720 remains open for that verification and later endpoint integration with #14718.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Closed as superseded.
Successor: 15595
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dezren39
added a commit
that referenced
this pull request
Nov 26, 2026
…t-rehome
feat(fleet): re-home NodeId allowlist into fleet-transport crate (#14720 rework of #15171)
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|