Skip to content

Route enrolled physical Devices through the provider custody coordinator - #262

Merged
scotwells merged 1 commit into
feat/manual-inventory-recordsfrom
t3/physical-site-routing
Nov 30, 2026
Merged

scotwells merged 1 commit into
feat/manual-inventory-recordsfrom
t3/physical-site-routing

Conversation

@scotwells

Copy link
Copy Markdown
Contributor

Add opt-in fleet-manager --physical-site-config for a provider-owned Karmada member. Keep one custody writer whether synthetic staging is off or alongside the physical site. The new route uses the existing courier, Karmada report/assignment transport, observer and dispatcher; no fixture discovery or synthetic allocation is enabled for physical Devices.

Pin the Device incarnation, reject overlapping enrollment, restrict the fixture allocator and reject results from a site not serving the Device. Document management and member deployment contracts and the reflected fence checkpoint. No live deployment or hardware access.

Validation: go test ./..., focused routing/transport/allocation tests, hack/validate-doc-links.sh, git diff --check.

@scotwells
scotwells requested a review from a team as a code owner November 30, 2026 20:28
@scotwells
scotwells requested a review from ecv November 30, 2026 20:29

@ecv ecv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve.

No security finding. The physical route is off by default, the docs use invented identifiers, and the diff carries no credentials, only mount paths.

  • Custody still decides delivery. Deliver acts only on custody's ActiveOperation with a matching fence and a phase that hasn't ended, so nothing custody hasn't released gets delivered, and no path skips a wipe.
  • The route is bound to one provider project and namespace, and enrolled Devices are pinned by name and UID in Serving, Deliver and Collect. A recreated Device isn't served, and a result from outside the enrollment is rejected.
  • Customer allocation stays off for physical Devices. The allocator is nil without --synthetic-staging, and with it AllowsDevice limits allocation and resume to the fixture enrollment.
  • The head builds and vets, and go test passes on cmd/fleet-manager and internal/delivery.

@ecv

ecv commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Follow-ups: #263 #264

@scotwells
scotwells merged commit ba7bca8 into feat/manual-inventory-records Nov 30, 2026
17 checks passed
@scotwells
scotwells deleted the t3/physical-site-routing branch November 30, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants