Skip to content

fix(enroll): qualify node-installer integration with shared boundary (OSS-385) - #551

Merged
athNdev merged 1 commit into
mainfrom
codex/enrollment-integration
Nov 19, 2026
Merged

athNdev merged 1 commit into
mainfrom
codex/enrollment-integration

Conversation

@athNdev

@athNdev athNdev commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Summary

OSS-385 enrollment integration qualification. The shared internal/noderuntime/enroll boundary 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.ClaimContext was a mode-local encoder that signed the short bundle capability names (ROOTLESS, PRIVATE_SOCKET). The shared controller authority verifies SIG_CLAIM with enroll.ClaimContextRaw, which uses proto enum names (NODE_CAPABILITY_ROOTLESS, ...). A real claim built by the node-installer was therefore refused by the shared boundary with approved key mismatch. This was a genuine integration break, not merely a duplication concern.

ClaimContext is now a thin normalising adapter over the single shared ClaimContextRaw encoder. No node mode has a second encoder or authority.

Integration regression fixture (owned, harmless)

internal/rpc/enrollment_integration_test.go wires 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:

  • node-installer context is byte-identical to ClaimContextRaw; canonical NUL framing, server-stored nonce, no JSON;
  • a real installer claim verifies at the shared controller, and a divergent node-local encoding is refused (cannot bypass the boundary);
  • host-native Runner also enters only through the shared boundary;
  • Ed25519-only (P-256 refused at registration), approved-key binding, stale server nonce and wrong digest proof refused;
  • atomic consume, replay refusal, issuance-failure rollback with a later retry succeeding;
  • three non-crossing domains (operator / bootstrap / enrolled-node) and own-object + scope enforcement;
  • digest-only storage: plaintext secret appears in neither snapshot nor any response.

Governing knowledge concepts were updated in the same commit.

Verification (pinned Go 1.26.11)

  • go build ./... — pass
  • go vet ./... — pass
  • go test ./... — pass (full suite)
  • golangci-lint run --new-from-rev=9e81679b ./... — 0 issues
  • go run ./cmd/knowledge-lint -root . -fix then without -fix — 40/40 queries pass, indexes current
  • python scripts/test_node_installer_fixture.py — 6/6 offline fixtures pass
  • Targeted integration tests were red before the encoder fix (real claims refused / contexts diverged) and green after.

Scope 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

…(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.
@athNdev
athNdev merged commit 4f4629d into main Nov 19, 2026
12 checks passed
@athNdev
athNdev deleted the codex/enrollment-integration branch November 19, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant