Repository navigation
feat(node-runtime): host-native Linux private daemon mode (OSS-376) - #527
Merged
Merged
Conversation
Add the mode-specific host-native implementation that consumes the shared ADR0019 node-control contract without forking it. - Compatibility gates select rootless only when userns, subuid/subgid, delegated cgroup v2, a qualified storage driver and a private 0700 runtime dir are present; hardened dedicated rootful is the explicit fallback and an unqualified host fails closed with precise refusal codes. - Private socket, data/exec roots, containerd namespace and bridge/port range are enforced by named refusals; rendered unit/config never contain the host socket, a public raw API listener or blanket privileges. - Live enrollment boundary implements the approved scheme against shared proto types: node-generated secret, REQUIRED approved key, CSR_PRE material, challenge-bound fresh SIG_CLAIM, single-use atomic consume, TLS topology support/refusal, signed public cert and three non-crossing auth domains. - Disposable temp-dir fixtures with synthetic keys; no live host, daemon, global config change or production rollout. - cmd/carbon-node bounded preflight/doctor runtime caller; mode doc, gate matrix and knowledge concept included. Verification: go build ./..., vet + tests on touched and adjacent packages, knowledge-lint 65 concepts/38 queries all green.
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
Implements the HOST-NATIVE LINUX PRIVATE DAEMON deployment mode (OSS-376, parent OSS-368). This is a mode-specific lane: it consumes the shared enrollment/control contract (ADR 0019,
node_control.proto, PR516/517/518) and does not fork it. No proto field, RPC, shared DB column or shared auth middleware is changed.What is included
internal/noderuntime/native: compatibility gates selecting rootless only when user namespaces, subuid/subgid, delegated cgroup v2 controllers, a qualified storage driver and a private 0700 runtime directory are all present. Hardened dedicated rootful is the explicit compatibility path; an unqualified host fails closed with precise refusal codes. A preinstalled/shared Docker engine is never a fallback.CSR_PREregistration material, challenge-bound freshSIG_CLAIM, single-use atomic consume, TLS topology support/refusal, signed public X.509 client certificate, three non-crossing authorization domains, no secret in read responses or fixtures.cmd/carbon-node: bounded preflight/doctor runtime caller reading injected facts; it never probes or changes a live host, installs a daemon, writes a host unit or mounts a real socket.Evidence (fixture-only)
go build ./...clean;go vetandgo test -count=1on./internal/noderuntime/...,./cmd/carbon-node, plus adjacent./internal/rpcand./internal/dball pass.go run ./cmd/knowledge-lint -root . -fixthen plain lint: 65 concepts / 38 queries pass, indexes current.Limits
All keys/secrets are synthetic or ephemeral and private files live in temp directories. No fixture starts a daemon, probes a real host, changes host configuration or writes a real credential. These fixtures prove refusals, state transitions and contract shape only — not live-host, install, gameplay or deployment success. No production enrollment RPC handler is mounted. No merge, release or deployment is requested.
Head: 58ec5f7