Repository navigation
Conversation
scotwells
force-pushed
the
proto/site-delivery-declaration
branch
2 times, most recently
from
November 27, 2026 22:35
666ac4c to
d2e9ba1
Compare
scotwells
force-pushed
the
proto/site-delivery-declaration
branch
8 times, most recently
from
November 28, 2026 02:43
6eda2ce to
a56c11b
Compare
3 tasks done
scotwells
force-pushed
the
proto/virtual-media-delivery
branch
from
November 29, 2026 00:13
8ac1862 to
a841421
Compare
scotwells
force-pushed
the
proto/site-delivery-declaration
branch
from
November 29, 2026 00:24
a56c11b to
4327b32
Compare
scotwells
force-pushed
the
proto/virtual-media-delivery
branch
from
November 29, 2026 01:20
a841421 to
1c2ee99
Compare
scotwells
force-pushed
the
proto/site-delivery-declaration
branch
from
November 29, 2026 01:20
4327b32 to
2cbf76f
Compare
scotwells
force-pushed
the
proto/virtual-media-delivery
branch
from
November 29, 2026 02:04
1c2ee99 to
6865ae1
Compare
scotwells
force-pushed
the
proto/site-delivery-declaration
branch
from
November 29, 2026 02:04
2cbf76f to
6b566f9
Compare
4 tasks done
scotwells
force-pushed
the
proto/virtual-media-delivery
branch
from
November 29, 2026 02:15
6865ae1 to
b1fed7b
Compare
scotwells
force-pushed
the
proto/site-delivery-declaration
branch
from
November 29, 2026 02:15
6b566f9 to
1226af9
Compare
scotwells
force-pushed
the
proto/site-delivery-declaration
branch
from
November 29, 2026 02:48
1226af9 to
c3fba11
Compare
scotwells
force-pushed
the
proto/site-delivery-declaration
branch
2 times, most recently
from
November 29, 2026 03:28
f385b61 to
b4bdd77
Compare
ecv
approved these changes
Nov 29, 2026
ecv
left a comment
Contributor
There was a problem hiding this comment.
Approve.
The site's delivery declaration now reaches the coordinator only from the site's own report, and every choice that follows (method, media service, windows) is taken from it and re-checked at admission, so a tenant cannot widen or redirect it. I ran go test ./internal/coordination/ and the custody suite with envtest at b4bdd77 and mutated the guards.
- The default is safe: no report, a stale one (
MaxAge), an unreadable one or an invalid one (ParseOffered, strict,DisallowUnknownFields, https IPv4 host only, no path or credentials) is "not known", andcheckDelivery,selectDeliveryand the wipe path wait withRetryinstead of deciding. Removing the staleness check failsinternal/coordination; looseningParseOffered's path check failsTestParseOffered. - Admission compares the recorded delivery input with the declared offer, so a media service or window an operation records that the site does not offer is refused; dropping that compare fails
TestDeliveryMethodAdmission(confirmed at #229's head, anddelivery.gois the same check here). - The declaration is read from a read-only ConfigMap mount and served only behind the site API's bearer token; the new
/v1/delivery-methodsis covered by an unauthenticated 401 test. - The DHCP feed now starts only where the declaration includes network boot (
feedEnrollment), so a media-only site opens no DHCP surface.
Follow-ups:
- A media-only site, or one that has not reported, cannot wipe:
offersNetworkBootreturnsErrNoWipeMethodorErrDeliveryUnknown, so a release there waits indefinitely. That is the safe side, but name it in the operations docs and consider surfacing it in the allocation's status rather than only an error. - The coordinator now has no copy of the declaration, so a site cell that reports a bad
MediaServicesteers every installation it serves. The trust sits in whoever edits that site's ConfigMap; say so indocs/operations/gitops.md. Sites.DeliveryMethodsinsiteapi.Clientignores its device argument and returns one declaration for every Device the simulator serves; fine for the simulator, but add a guard test so a real client does not inherit it.
scotwells
force-pushed
the
proto/virtual-media-delivery
branch
from
November 29, 2026 07:19
c08b5b4 to
e451f8c
Compare
scotwells
force-pushed
the
proto/site-delivery-declaration
branch
from
November 29, 2026 07:19
1130a97 to
c3641c1
Compare
scotwells
force-pushed
the
proto/site-delivery-declaration
branch
from
November 29, 2026 07:33
c3641c1 to
eef6e4b
Compare
Each site now reports its boot delivery declaration, and the coordinator and the Metal provider read it there instead of from the coordinator's own site configuration, per #227. - The cell observer publishes the declaration on every report handoff; the hub returns it only from a fresh report of this cell. - The simulator's site API serves its declaration (network boot). - Admission leaves an operation Pending while a serving site has not reported a current, valid declaration, and the allocator creates no installation until it has. - A declaration is a JSON list of offers, parsed strictly: each method once, network boot with no media settings, virtual media with DataNetwork addresses and an https media service. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The site's fleet-site-delivery ConfigMap is its delivery declaration, from the environment's FLEET_SITE_DELIVERY_METHODS. The observer mounts it read only and reads it on every pass, so a change is a source revision with no coordinator restart. The virtual media suite adds virtual media as revision 3 and waits until the coordinator reads it from the cell's report. Dispatch moves to revision 4. Network boot only is the default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Karmada aggregates handoff status through Lua, where an empty list and an empty object are the same table, so an empty declaration could come back as an object or not at all. The observation now carries the declaration's JSON as a string, and the hub parses it again, strictly. - The observer reads the declaration once per pass and reports an unreadable one once, not once per Device. - A declaration of null, or a media service with a user, query or fragment, is refused. - The site's static fence report carries no declaration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Flux's variable substitution dropped the quotes around the declaration's JSON, so the ConfigMap's data held a YAML list and the services layer failed its dry run. The environment now gives the declaration base64 encoded, as the ConfigMap's binaryData; the mounted file is the JSON. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The report address tests from the base read the site's declaration the way the coordinator used to. They now read it from the site, as the coordinator and the Metal provider do here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An active operation records its kind and name, never its object UID, so the declaration test checks the admitted installation by name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The release wipe guard reads the serving sites' reported declarations, as installation selection does. A release makes no wipe, and claims no boot address for one, while a serving site has not reported its declaration or does not offer network boot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… boot The reservation feed now reads the site enrollment's delivery declaration and refuses to start unless it offers network boot, as well as requiring synced DHCP. A site that declares only virtual media, or declares nothing, starts no feed. The feed component mounts the fleet-site-delivery ConfigMap read-only, and the DHCP render check requires it. The network boot render check also fails if any packaged root declares delivery methods: the ConfigMap carries only the environment's substitution, so a site offers nothing until its environment declares it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A wipe or commissioning whose serving site had no current declaration was refused for good, as though the site offered no network boot. It now waits, as an installation does, and is admitted once the site reports a declaration that offers network boot. The simulator says why its declaration is network boot only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The media suite publishes its revisions after the commissioning's, so its enrollment and dispatch revisions no longer have fixed numbers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The customer power test still set the declaration on its sites and allocator, which now read it from the site. Its site serves network boot only, as the other simulated sites do, and its allocator reads that from the site. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scotwells
force-pushed
the
proto/site-delivery-declaration
branch
from
November 29, 2026 07:56
eef6e4b to
42123cd
Compare
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.
Each site now declares its boot delivery methods in its own enrollment, and the coordinator and the Metal provider read that declaration only from a fresh report from the site, keeping no copy. While any serving site has no current declaration, admission leaves installations, wipes and commissionings waiting and the Metal provider creates nothing. A declaration is a strict list, and one that is empty, or that the site cannot read, offers nothing. Stacked on #229.
Related to #227
How it stays inactive
Network boot runs only where a site's enrollment selects it. No packaged configuration declares any method, so a site offers nothing until its environment declares one, and a CI check fails if any configuration root declares methods. The DHCP reservation feed starts only for a site whose enrollment both synchronizes DHCP and declares network boot, so a site that declares only virtual media, or nothing, starts no feed, claims no boot address and attaches no boot NIC. The lab declares network boot for its own runs, and its virtual media suite adds virtual media to the enrollment mid-run.
Decisions for a person
Test plan
gh pr checksentry green on the head, and every acceptance shard green, with the Redfish and virtual media shards green twice in a row🤖 Generated with Claude Code