Repository navigation
Conversation
Nothing but convention stopped another identity from writing a Machine's status.power. In Milo, a status write is authorized with the Machine's update and patch permissions, which the consumer roles hold, and the manager's other status writers share the projector's identity, so RBAC cannot hold the field to one writer. Add a fail-closed webhook, served by fleet-registration, that admits a change to status.power only from the identity named by its new --machine-power-writer flag; unset, every power change is refused. Only status writes that change power are routed. config/milo installs it, and config/standalone enforces the same rule with a ValidatingAdmissionPolicy admitting only the smoke runner, which runs the projector there. A render check over every root fails when another Kubernetes role gains Machine status writes or another Milo role gains a Machine status, update or patch permission. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nder check Name the webhook under the Machine's own API group, and add it and its writer flag to the registration rollout contract. The render check now reads roles held in JSON strings and treats an aggregated ClusterRole as a Machine status writer. Move the writer audit into the device custody guide and drop deployment state from it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scotwells
force-pushed
the
fix/machine-power-status-writer
branch
from
November 26, 2026 03:47
124982e to
0b4c1d7
Compare
Base automatically changed from
feat/device-custody-cutover
to
feat/manual-inventory-records
November 28, 2026 14:54
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.
Summary
Follow-up to #182: nothing but convention kept identities other than the power projector from writing a Machine's observed power. RBAC can't close this, because Milo authorizes a status write with the Machine's own update and patch permissions, which the consumer roles hold. This change adds admission that refuses a power change from anyone but the projector's identity: a fail-closed webhook in the Milo root, named by a new registration flag, and an admission policy with the same rule in standalone. A render check over every root fails if another role gains Machine status access.
Related to #182
Decisions for a person
Test plan
🤖 Generated with Claude Code