Skip to content

docs: propose PXE installation architecture - #59

Open
scotwells wants to merge 6 commits into
mainfrom
codex/pxe-installation-enhancement
Open

scotwells wants to merge 6 commits into
mainfrom
codex/pxe-installation-enhancement

Conversation

@scotwells

@scotwells scotwells commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Align the PXE installation proposal and machine-lifecycle examples with the implementation audited at fd0f33f7a740871850b97abc190e28f6f71a3477, while retaining explicitly labeled future contracts. Documentation only; no runtime or infrastructure changes.

  • Separate the current image-based Installation API (machineRef, expectedPredecessor, imageRef, optional bootstrapConfigRef) from proposed source unions, CustomerRedfish execution, callbacks and assurance fields.
  • Map MachineAllocation, DeviceCustody, DeviceInstallation and DeviceWipe to retained authority, per-Device journals/fences and validated federation results. Preserve conservative unknown-outcome and cleanup gates.
  • Specify centrally hosted DHCP and boot files through site-router relays, with no physical-site provisioning appliance. Logical site ownership is separate from physical hosting.
  • Clarify Flux ownership of shared services and durable state versus kro-created per-operation workers. Local acceptance is not production placement or hardware qualification.
  • Distinguish actual Pxe/iPXE execution from future, unqualified UEFI HTTP loader and boot-URL support.
  • Update all three PXE diagrams and the associated lifecycle design/examples. Companion boot-network proposal: docs: propose boot network reservations #87.

Validation and review

  • Exact reviewed integration patch applied to prior PR head 9722b295fc96ef49312f253d18c5dad68ffc82ec.
  • bash hack/validate-doc-links.sh and git diff --check passed before commit.
  • Agent validation covered YAML examples, local links/anchors, pinned source targets, SVG XML/reference checks and rendered diagrams.
  • Independent adversarial agents approved documentation patch SHA256 b9cd22ed675028ac3357d3baae839e833ccf377e3c215d12fd92491c7453be29.

Remaining work

Merged main at a8a21e5a7d358a108db7b49894d8f9aa199f20d5 and resolved the architecture-index conflict, retaining both the proposed provider API row and main's updated physical-inventory implementation status. The PXE enhancement files remain unchanged from the reviewed update. Documentation-link and staged whitespace validation passed again. The earlier artifact approvals do not constitute a fresh approval of the merge resolution. Future API contracts, firmware/OS qualification and deployment acceptance remain distinct work. Agent sign-off is documentation-only, not human reviewer approval or production/hardware qualification. No merge is requested by this update.

ecv
ecv previously approved these changes Nov 18, 2026

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

Checked at bc21d50 against fleet main cff13d2 (includes #77): merges clean, relative links, anchors and SVG references all resolve, and the three new SVGs plus the updated public-resources.svg use the same names and flows as the text. Current-state claims ("six alpha CRDs", flat imageRef/expectedPredecessor Installation, no coordination CRD or cell controller packaged) match main, and everything new is labelled proposed. Nothing contradicts #77 (its per-project runtime, global asset records and "departing project does not release custody" fit the retained-cleanup rule here). The delegated-PXE trust model is sound: no BMC credentials or DHCP for the customer, session bound to an admitted Installation, and a stop/fence proof required after the "closure and callbacks prove nothing" statement.

Follow-ups:

  • MachineManagementSession, CustomerRedfish and the Redfish step set are used as defined types but exist nowhere in main or in this PR; they come from open #41, which is cited only as a pinned review commit, not linked at the use site (pxe-installation/README.md "Shared BMC and installation execution"). Link it there, and say which PR owns the session schema.
  • This PR rewrites the same machine-lifecycle docs that open #58, #51 and #62 also edit, and states it replaces their provider-class policy and status-path decisions. Land or rebase those in an agreed order, or the next merge conflicts on machine-lifecycle/README.md and api-examples.md.
  • Open #80 (real OS over firmware PXE) and #82 (Redfish executor) already implement parts of this flow. The proposal should name how their steps map onto OneTimePXE/Reset/LocalDisk and the one fencing domain.
  • "Independent stop/fence evidence" has no concrete form for a customer installer running in RAM. State what proves it (BMC power-off or reset verified via the allocation-fenced gateway, plus PXE revoked) and that session closure only triggers it. Now it is only listed in Open questions as "minimum delegated completion evidence".
  • Boot identity beyond MAC is deferred to an open question, but the "only the allocated machine can use a boot session" acceptance test depends on it; a spoofed MAC on the provisioning network could pull another tenant's boot session. Make it a precondition for hardware effects, not just a recorded decision.
  • Isolation of the Redfish gateway is unspecified: the doc does not say it filters or redacts BMC responses (serials, network config, credentials in OEM data) or confines customer sessions to the one allocated BMC at the network layer. Add both as requirements and a cross-tenant acceptance test (session A to machine B's BMC).
  • The delegatedPXE.correlation block in the README example is absent from api-examples.md and the described schema; align or drop it.
  • Acceptance tests mostly map to stated requirements; add one for admission-time redirect or SSRF rejection of the customer endpoint, which is a stated security boundary with no scenario.

@scotwells
scotwells force-pushed the codex/pxe-installation-enhancement branch from bc21d50 to 9722b29 Compare November 19, 2026 22:02

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

Hold: the merged machine-images, boot-delivery and device-operations proposals now contradict this doc.

  • It runs a boot service at each location, fences per allocation, and marks Ready on fence evidence. Main runs the boot service centrally with a per-site identity, fences through Device custody, and proves success by a salted digest read back, with OutcomeUnknown otherwise.
  • Still unique: delegated customer PXE, the CustomerRedfish driver and delegated assurance, which boot-delivery links to here. Narrow this PR to those, on top of #227, and drop the managed-image path.
  • Resolve the docs/architecture/README.md conflict.

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

Hold: the target contract still serializes on a per-allocation fencing domain, which merged Device custody replaced.

  • Central boot, the implementation baseline and the conflict fix land, but L410-411 keeps "one durable per-allocation serialization and fencing domain" while the baseline (L80) and device-operations serialize per Device through DeviceCustody. Attach provisioning sessions to the custody admission instead.
  • MachineOffering (L183, L201, L343) does not exist on main, where capacity-supply selects MachineClass by label. Mark it proposed-new or reconcile it with capacity-supply.

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.

3 participants