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 — feat(fleet): accept-side NodeId allowlist, per-ALPN authorization (#14720 slice) by dezren39 · Pull Request #15171 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 25, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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

  • Tests (crates/fleet-transport/tests/auth.rs, oracle: a hand-rolled binding-table model): allowed NodeId on its enrolled ALPN; unknown NodeId refused + logged with NodeId and ALPN; revoked NodeId refused as revoked (not unknown); enrolled NodeId on an unenrolled ALPN refused; duplicate/no-ALPN enrollment build errors; refusal-log draining; one proptest matching decisions and refusal-log length against the model over arbitrary query sequences.
  • Verification: remote dispatch only. fleet queue dispatch is blocked by TLS defect fleet: repo-queue dispatch fails with TLS UnknownIssuer behind the egress proxy (Rust TLS ignores SSL_CERT_FILE) #13185 (invalid peer certificate: UnknownIssuer, observed again on this branch), so verification runs through the fleet-command.yml fallback: run https://github.com/developing-today/fleet/actions/runs/45668578451 — cd pkgs/fleet && cargo test -p fleet-transport against xaltha/14720-nodeid-allowlist @ c201544. Result recorded on fleet transport: accept-side NodeId allowlist and per-ALPN authorization #14720 when the run concludes.
  • Not built locally (sandbox cargo 1.97 cannot parse this workspace, which pins 1.99.1 — pre-existing). The Cargo.lock entry for the new crate was added by hand mirroring fleet-pool's (sole dev-dependency proptest); the remote run is the first real compile.

Merge Danger

  • Low. One new crate + two lines in the workspace Cargo.toml + one Cargo.lock entry. Nothing existing depends on fleet-transport yet, and no existing behavior changes. Revert is the whole PR.
  • Remaining on fleet transport: accept-side NodeId allowlist and per-ALPN authorization #14720 after this slice: 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. This PR does not close fleet transport: accept-side NodeId allowlist and per-ALPN authorization #14720.

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.

All reactions
@dezren39
feat(fleet): accept-side NodeId allowlist with per-ALPN authorization (…
c201544
…#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.
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 25, 2026
fleet transport: accept-side NodeId allowlist and per-ALPN authorization #14720
Open
3 tasks
@dezren39

dezren39 commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

🤖 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.

All reactions

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
@dezren39
feat(fleet): re-home NodeId allowlist into fleet-transport crate (#14720
5347212
)

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
@dezren39 dezren39 mentioned this pull request Nov 26, 2026
feat(fleet): re-home NodeId allowlist into fleet-transport crate (#14720 rework of #15171) #15595
Merged
@dezren39

dezren39 commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39

dezren39 commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

Closed as superseded.
Successor: 15595

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 closed this Nov 26, 2026
dezren39 added a commit that referenced this pull request Nov 26, 2026
@dezren39
Merge pull request #15595 from developing-today/archer/14720-allowlis…
faad106
…t-rehome

feat(fleet): re-home NodeId allowlist into fleet-transport crate (#14720 rework of #15171)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

fleet transport: accept-side NodeId allowlist and per-ALPN authorization

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
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.