Repository navigation
feat: Record what each server's BMC reports on its inventory record - #165
Conversation
|
Where things are, for review:
|
Add PinnedTLSConfig and NewPinnedClient, which verify a BMC by the SHA-256 of its leaf SubjectPublicKeyInfo instead of the system trust store, through the existing transport guard. Add Probe, an anonymous handshake and service root GET that records the presented key, and Client.Inventory, a GET-only lenient read of Managers, Systems and their EthernetInterfaces. The executor's behavior is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Device status now holds retained BMC observations (TLS key, service root, inventory) and Reachable, Authenticated, Discovered, IdentityMatched and PublicKeyUnique conditions. Spec identity stays authoritative and immutable. The Device ProtectedResource declares updateStatus and the status subresource, and the new inventory-discoverer role grants Device reads and status writes only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add fleet-bmc-discovery, a single-replica controller that reads Devices from one Milo project and credential Secrets from its own namespace, probes each BMC anonymously, sends the credential only when the observed key equals the approved pin, and writes only Device status. It retains earlier observations on failure, backs off per Device, spaces contacts per endpoint, reports shared TLS keys, and has a --once mode that prints the statuses without writing. Ship config/base/bmc-discovery, a synthetic credential Secret and sidecar snippet, the binary in the fleet image, the base in the published bundle, and docs/operations/bmc-discovery.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4da782f to
f96c790
Compare
|
Second review pass on head f96c790 found two agreeing verdicts. pr-rereviewer: VERDICT merge. It confirmed all four first-pass fixes landed. pr-conventions-reviewer: VERDICT merge. The body length warning from the first pass is fixed. Three nits remain and were left as they are: the packaging commit subject is 53 characters against a 50 target, a suggestion to split the packaging commit, and a rewrap of config/README.md line 58. The session applied the first-pass findings before this pass and the reviewers re-checked them against the pushed head. No new commits were added in this phase. The reviewers' RAN lists were not passed to this phase, so they are not repeated here. CI is green on f96c790: validate, standalone-smoke, publish-container-image, both UI plugin image jobs, publish-kustomize-bundle and the CLA check all passed. The overlap with #153, #155 and #86 is a known decision: this lands on the feature branch now and the overlap gets resolved at the next rebase onto main. Auto-merge is enabled with the merge method (merge commit). The base branch has no pull request ruleset, so auto-merge can complete without a human approval here. |
Summary
Inventory records hold only what the inventory source expects, with nothing from the hardware to check them against. This adds a read-only discovery service that records what each server's BMC reports next to the expected facts and flags any disagreement. It sends a BMC password only after an operator approves that BMC's TLS key fingerprint, which the first anonymous contact records. This lands on the staging feature branch first, once CI is green, and its overlap with #153, #155 and #86 is resolved at the next rebase onto main.
Test plan
Resolves #130.
🤖 Generated with Claude Code