Repository navigation
fix(enroll): qualify node-installer integration with shared boundary (OSS-385) - #551
Merged
Merged
Conversation
…(OSS-385) The node-installer signed SIG_CLAIM with a mode-local encoder using short capability names, while the controller verifies proto enum names through the single shared ClaimContextRaw encoder. Real installer claims were therefore refused at the shared boundary: this was an integration defect, not just a duplication concern. - nodeinstall.ClaimContext now normalises capability names to proto enum names and delegates to enroll.ClaimContextRaw; there is no second encoder/authority. - Add an owned integration fixture at the RPC/controller seam that drives real installer-generated proto messages through the shared Boundary and proves: byte-identical single encoder, canonical NUL/server-nonce context, Ed25519-only, approved-key binding, atomic consume + issuance-failure rollback/retry, three non-crossing domains, digest-only secrets, and that a divergent node-local encoding cannot bypass the boundary. - Update governing knowledge concepts with the single-encoder rule and the explicit no-live-trust-boundary/no-deployment scope. No production RPC is mounted; no live host, credential, trust boundary or deployment is touched.
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
OSS-385 enrollment integration qualification. The shared
internal/noderuntime/enrollboundary and its fixture lifecycle test (PR543) were already merged; this PR proves the boundary is actually the single implementation used by the node agent/modes at the real RPC/controller seam, and fixes the integration defect that prevented that proof.Root cause found and fixed
internal/nodeinstall.ClaimContextwas a mode-local encoder that signed the short bundle capability names (ROOTLESS,PRIVATE_SOCKET). The shared controller authority verifiesSIG_CLAIMwithenroll.ClaimContextRaw, which uses proto enum names (NODE_CAPABILITY_ROOTLESS, ...). A real claim built by the node-installer was therefore refused by the shared boundary withapproved key mismatch. This was a genuine integration break, not merely a duplication concern.ClaimContextis now a thin normalising adapter over the single sharedClaimContextRawencoder. No node mode has a second encoder or authority.Integration regression fixture (owned, harmless)
internal/rpc/enrollment_integration_test.gowires the real node-mode claim producer (nodeinstall.BuildClaim) to the real controller boundary (enroll.Boundary) using the shared generated proto messages, without mounting a production RPC. It proves:ClaimContextRaw; canonical NUL framing, server-stored nonce, no JSON;Runneralso enters only through the shared boundary;Governing knowledge concepts were updated in the same commit.
Verification (pinned Go 1.26.11)
go build ./...— passgo vet ./...— passgo test ./...— pass (full suite)golangci-lint run --new-from-rev=9e81679b ./...— 0 issuesgo run ./cmd/knowledge-lint -root . -fixthen without-fix— 40/40 queries pass, indexes currentpython scripts/test_node_installer_fixture.py— 6/6 offline fixtures passScope limits
No production RPC handler is mounted. No live host, credential, trust boundary, hypervisor, deployment or release is touched or claimed. The VM lane's Python golden-conformant encoder and live controller trust remain outside this integration; no production enrollment success is asserted.
Exact head:
13b70ae3cc0cef24d53ab57e26f4c0cce35cd231