Skip to content

docs: Propose an OS image catalog and sealed bootstrap data - #184

Merged
scotwells merged 14 commits into
mainfrom
docs/machine-images-bootstrap
Nov 28, 2026
Merged

scotwells merged 14 commits into
mainfrom
docs/machine-images-bootstrap

Conversation

@scotwells

@scotwells scotwells commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Customers cannot choose an OS image or pass user data and SSH keys to an install today. This proposes a provider-published, digest-pinned image catalog and a sealed bootstrap store that staff cannot read. It fills the gap the Device custody design leaves to Metal.

Decisions for a person

  • Production OS. Proposed: Debian 13 generic cloud image (amd64, UEFI, cloud-init NoCloud). A person must choose and qualify it.
  • Sealed store as a dedicated kind, not a Secret. Milo IAM grants per kind or per object, not per namespace, so any role that reads Secrets in the provider project would read every payload.
  • Encryption at rest for that kind, and the firmware mode source: BMC discovery or staff-recorded inventory.
  • Payload access beyond the custody design. The central boot service holds a rendered payload in memory for one open boot admission of its own site, with a certificate and authorization per site, and cannot read the sealed store. The first-boot service of docs: Propose boot delivery methods behind one install contract #227 may read one sealed payload by name, only for a virtual media fallback fetch that presents that operation's token from the Machine's address.

Test plan

  • Every GitHub check passes on the final head, including the doc link check
  • The diagram renders and is valid SVG

Related to #227

🤖 Generated with Claude Code

scotwells and others added 12 commits November 26, 2026 15:59
A customer chooses an image from a provider-published, immutable,
digest-pinned MachineImage catalog and supplies user data and SSH keys
in a bootstrap Secret. Fleet resolves the image to its digest at
admission and keeps it, checks it against the server's architecture
and firmware mode, and copies the bootstrap data into a sealed
SealedPayload that no staff role can read. Federation delivers the
payload only to the operation's site worker, and the site deletes it
when the operation ends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tie the sealed payload sweep to ended operations and released
allocations, so it never removes a payload admission still needs, and
name payloads from the operation and digest so a crash retry with an
edited Secret leaves one referenced payload. Pin the provider image's
UID and digest in the publication record, require use on both images,
and enforce customer write refusal with the validating webhook. Define
the boot admission that lets the site's boot service serve a payload,
and record that as a change to the custody customer data rule. Salt
the payload digest, keep payload bodies out of audit logs, have
federation send sites the digests to mirror, check firmware mode again
at the worker, and point the machine lifecycle at the catalog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Record that a settling Installation may name a held Installation as its
predecessor, as a change to the machine lifecycle rule, say that every
crash retry writes a new payload because the salt is new, and remove
facts the design states twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Record, beside the boot service amendment, that the site controller
that creates every worker may read site payloads, and why that grants
no new access. Describe the delivered payload as a dedicated kind, not
a Secret, so permission on it reaches nothing else, and state that
federation deletes the delivered copy once the result is answered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
State that the site controller may only get a site payload by name, say
that no site identity can list or watch payloads, and correct the
acceptance test that still named a payload Secret and only the worker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fleet does not own the guest OS, so success must not depend on the
installed system printing anything. The installer reads the payload back
from the target disk and reports its salted digest; the worker requires
it before success.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A published MachineImage names its publisher with publisherRef, and a
publication record names its consumer with consumerRef. Both are typed
Milo Project or standalone Namespace references, and Fleet refuses any
other kind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Success still never depends on the installed OS, except under virtual
media delivery proposed in #227. There, success also depends on one
first-boot report from the provider-built image's first-boot step,
which runs before the customer's bootstrap data and is accepted once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@scotwells
scotwells force-pushed the docs/machine-images-bootstrap branch from 0e05f8e to 1274f77 Compare November 26, 2026 22:00
@scotwells
scotwells marked this pull request as ready for review November 28, 2026 01:58
@scotwells
scotwells requested a review from a team as a code owner November 28, 2026 01:58

@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: a crash after the DeviceInstallation is created can refuse an install that is already running.

  • Step 4, the short-circuit for an existing DeviceInstallation, runs after the predecessor, entitlement and compatibility checks. Re-evaluation can then set ImageWithdrawn on a live install, which contradicts "Admission is final".
  • Fix: check for the DeviceInstallation first.
  • A payload written before the operation is created, whose Installation is then deleted, survives until the allocation leaves Active, past the "no copy remains" guarantee. Give it a deadline-based cleanup too.

Check for an existing DeviceInstallation first, so re-evaluation after
a crash never refuses an install that is already running.

Delete a sealed payload whose operation was never created 10 minutes
after it was written, and never create the operation later than that.

Run the boot service centrally with a certificate and authorization
per site, and let the first-boot service read a payload only for one
virtual media fallback fetch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scotwells added a commit that referenced this pull request Nov 28, 2026
List the first-boot service as a scoped reader of sealed payloads among
the changes to #184, state that both proposals run the boot service
centrally with per-site certificates, and drop the stale text saying
#184 does not yet allow the first-boot report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The site worker still receives and checks the sealed payload, then
sends the boot admission and the rendered payload to the central boot
service under its site's identity. The boot service holds them in
memory for an open admission of its own site only and has no access to
the sealed store. The no-copy and site-identity tests now cover it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@scotwells

Copy link
Copy Markdown
Contributor Author

@kevwilliams thanks, both points from your hold are addressed at 449e143, along with the two from your #227 review that touch this doc.

  • The existing-DeviceInstallation check is now the first admission step, so re-evaluation after a crash stops there and never refuses an install that is already running. Fleet creates the operation within 10 minutes of the sealed write, or writes a new sealed copy first.
  • A payload whose operation was never created is deleted 10 minutes after it was written, even while the allocation is still Active. If one is gone when the operation arrives anyway, the coordinator refuses it with BootstrapUnavailable and nothing is sent.
  • The boot service runs centrally with a certificate and authorization per site. The site worker hands it the rendered payload with each boot admission, so it has no access to the sealed store.
  • The first-boot service from docs: Propose boot delivery methods behind one install contract #227 can read one sealed payload by name, only for a fallback fetch with that operation's token from the Machine's address, while the first-boot phase is open.

Each change has a matching acceptance test.

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

The existing-install check now runs first, orphaned payloads expire after 10 minutes, and the first-boot reader is scoped by token, address and phase.

@scotwells
scotwells merged commit 4323342 into main Nov 28, 2026
6 checks passed
@scotwells
scotwells deleted the docs/machine-images-bootstrap branch November 28, 2026 02:35
scotwells added a commit that referenced this pull request Nov 28, 2026
List the first-boot service as a scoped reader of sealed payloads among
the changes to #184, state that both proposals run the boot service
centrally with per-site certificates, and drop the stale text saying
#184 does not yet allow the first-boot report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scotwells added a commit that referenced this pull request Nov 28, 2026
The merged images proposal allows the first-boot report and the
first-boot service as a payload reader. The boot medium requirement and
the fallback delivery remain this proposal's additions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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