Repository navigation
feat(custody): Let customers pass bootstrap data through a sealed store - #199
Merged
Merged
Conversation
scotwells
force-pushed
the
feat/machine-image-catalog
branch
from
November 25, 2026 17:56
8bd1c02 to
1cbd3eb
Compare
scotwells
force-pushed
the
feat/sealed-bootstrap
branch
from
November 25, 2026 17:56
7ed5a3f to
203d45b
Compare
scotwells
force-pushed
the
feat/sealed-bootstrap
branch
from
November 25, 2026 22:10
203d45b to
144c0ce
Compare
scotwells
force-pushed
the
feat/machine-image-catalog
branch
from
November 26, 2026 00:55
9e6166d to
5b0555d
Compare
scotwells
force-pushed
the
feat/sealed-bootstrap
branch
from
November 26, 2026 00:55
144c0ce to
8ffad90
Compare
Installs refused bootstrap data because nothing could hold it. The Fleet provider now reads a customer's bootstrap Secret, seals it with a random salt into an immutable SealedPayload in the provider project, and creates a DeviceInstallation that carries only the payload's name and salted digest. A retry after admission returns the operation and seals nothing new. The coordinator checks the payload at admission and fails the operation with BootstrapUnavailable, sending nothing, if it is missing or altered. Each pass it deletes payloads whose operation ended, that their operation does not name, or that wait for an operation under an allocation that is no longer Active. The courier delivers the payload beside the assignment, the site takes the reference from the admitted inputs, checks the payload again before anything is sent, and deletes it when the operation ends or a newer fence passes it. Install evidence must name the digest of the data handed to the server. Only the coordinator role reads the sealed store, and a test walks every Milo role the repository ships to prove it. The simulator site carries bootstrap data end to end. Federation and the local VM and Redfish sites refuse it until the lab increment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rrive A payload whose worker never ran stayed on the site disk after a recovery raised the fence. The site now removes every payload below a Device's fence whenever it raises one, and forgetting an answered result removes its payload. Bootstrap data must be UTF-8 and fit in 96 KiB once encoded, so a site always receives exactly what the customer stored. Admission refuses bootstrap data for a Device whose sites cannot receive payloads, so a federated install fails at once instead of holding the server until its deadline. Add tests for the courier, the site API payload path, the hub refusal, recovery pruning, and the new limits, and correct the status page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scotwells
force-pushed
the
feat/machine-image-catalog
branch
from
November 26, 2026 01:22
5b0555d to
00111b7
Compare
scotwells
force-pushed
the
feat/sealed-bootstrap
branch
from
November 26, 2026 01:22
8ffad90 to
82aaca1
Compare
scotwells
marked this pull request as ready for review
November 29, 2026 19:28
ecv
approved these changes
Nov 29, 2026
ecv
left a comment
Contributor
There was a problem hiding this comment.
Approve.
The sealed store is sound. RBAC, digest binding, wiping and size limits are tested, and every guard but one fails a test when removed. The head now merges the moved feat/machine-image-catalog with no hand-resolved conflicts.
- Read access: the coordinator is the only role with get/list/watch/delete on
sealedpayloads, the provider role has create only, and nothing inconfig/orhack/grants a wildcard.TestNoStaffRoleReadsTheSealedStorewalks every shipped Milo role, resolving inheritance. The CRD is immutable, has no status, and names the payload by operation plus salted digest, so a retry cannot put new contents under an old name. - Tenancy: admission and the courier read the payload with a namespaced
Get, so another project's payload is never found.Verifybinds the payload name, operation and digest, and rechecks the salted hash. One field is not bound:spec.allocationNameis read only by the sweep, and neitherVerifynor the courier compares it. The operation name derives from the allocation, so the reach is small and stays inside one project, but add the comparison and a test. - The production check that makes reads safe sits outside this PR:
sealed.Readsays its caller "must act for the Installation's creator", and the only callers today are the standalone and multiplane fixtures, which read with their own identity. The real provider caller must not read with a broad identity. - Dormant on federation:
Hub.DeliverreturnsErrBootstrapUnsupported,Hubhas noCarriesPayloads, and admission refuses withBootstrapUnsupported. The--synthetic-stagingpath and the standalone smoke usesiteapi.Client, which does carry payloads to whatever provider URL is configured; that path is marked non-production but not gated in code. - No payload content reaches an error, Event, status field or evidence record I could find; evidence carries only the salted digest.
Follow-ups:
- No test fails if the admission-time
PayloadCarrierscheck is removed.Hub.Deliverstill refuses, but the operation then fails at delivery instead of at admission, which is the case the check exists for. SealedPayloadholds plaintext in the provider project's etcd (a CRD, not a Secret, so no encryption at rest), and the PR defers that. Track encryption at rest and an audit policy that omits request bodies before real tenants use this.- A payload whose operation was never created (a crash between the two writes) lingers until release while the allocation stays Active. Bound the sweep by age.
ecv
approved these changes
Nov 29, 2026
ecv
left a comment
Contributor
There was a problem hiding this comment.
Approve.
The delta since my last review is a merge of the updated stack base, which now carries the merged cleaning policy, drive discovery, power UI and multi-plane changes. The hand resolutions keep both sides: the catalog and cleaning imports and fixtures, both CRDs and protected resources, and the installation-requester role holding both cleaningpolicies get and sealedpayloads create. Earlier findings stand.
Base automatically changed from
feat/machine-image-catalog
to
feat/manual-inventory-records
November 29, 2026 21:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fleet admits catalog-selected images with optional simulator bootstrap data. The requester creates a sealed payload; custody verifies its salted digest before advancing the fence. Operations and evidence retain references or digests rather than plaintext. The coordinator alone reads the sealed store. Site-declared delivery methods, boot-address claims, commissioning and capacity projection remain in effect.
The branch integrates #192 through
6fff2486. Ordinary federation refuses customer bootstrap. Milo encryption at rest, audit-body omission and creator-scoped source Secret authorization remain prerequisites for production.Focused Go and envtest admission, NSO release and negative authorization tests, standalone and synthetic-staging renders, the offline harness and documentation links passed locally. No live multi-plane acceptance or hardware operations were run.