Repository navigation
fix(node-runtime): make host-native daemon rendering deployable (OSS-376) - #535
Merged
Merged
Conversation
…376) Post-merge quality fix for PR527; new branch from current main, does not rework the merged branch. - One source of daemon options: exported DaemonOptions canonical renderer plus DaemonSpec.BuildManifest for the OSS-379 installer. Rendering refuses duplicate JSON keys, extra CLI flags and CLI/config conflicts. Removes the invalid bridge=none + bip combination that dockerd rejects. - Rootless now renders a SUPPORTED per-user systemd unit with dockerd-rootless.sh and XDG_RUNTIME_DIR (no direct system dockerd, no User=, WantedBy=default.target). - Rootful now renders an explicit compatible service: runs as root (no User=) with the capability set dockerd needs, NoNewPrivileges=no, ProtectSystem=full, cgroup delegation; refuses an empty CapabilityBoundingSet or non-root User=. - LogDriver is a renderer input (journald default; json-file only for disposable fixtures without journald). - Docs, mode gate matrix and knowledge concept updated. Shared ADR0019 enrollment contract, proto, DB and compatibility gates untouched. Verification: go build/vet/test (pinned Go 1.26.11), golangci-lint v2.13.2 0 new issues, knowledge-lint 69 concepts/38 queries. Disposable pinned docker:29.3.0-dind boot validated the rendered config: dockerd starts, private socket exists, trivial container runs, game ports reachable on private bridge, memory/pids limits apply, data survives daemon restart; both units pass systemd-analyze verify. Evidence in external node-native-boot-evidence.md.
…OSS-376) Maintenance on PR535 after rebase onto current main 0b80e9b (includes e9b6051). One conflict in the host-native knowledge concept was resolved semantically: kept the shared-enrollment paragraph from main, kept this lane's daemon-renderer paragraph, and added the qualification-limit statement. - State precisely that the real dockerd evidence is a privileged disposable nested ROOTFUL config boot with json-file override plus systemd-analyze syntax checks. - State explicitly that the shipped ROOTLESS per-user unit boot and the shipped ROOTFUL unit boot on a clean Linux systemd host are NOT verified; no deployability claim is made. - No proto, ADR0019, enrollment, daemon renderer or compatibility gate change.
…model (OSS-376) Review fixes on PR535 after rebase: - Replace stale DedicatedUIDAvailable gate with RootfulServiceQualified: an explicit operator opt-in for a root-managed systemd service. Rootful runs as root with no User= override and the capability set dockerd needs; a dedicated non-login UID is neither required nor permitted (DAEMON_ROOTFUL_NO_USER). Refusal code/remedy and docs reconciled; fail-closed preserved. - RenderUnit() no longer takes an ignored configPath parameter; the config path comes from DaemonSpec.ConfigPath (the single source). - Docs state the honest qualification limit: the dind evidence is a privileged nested rootful config boot with json-file override, not proof the shipped rootless user unit or rootful unit boots on a clean systemd host.
athNdev
force-pushed
the
codex/node-native-daemon-fix
branch
from
November 18, 2026 09:54
65f6b46 to
dbd9fcd
Compare
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
Post-merge quality fix for PR527 (OSS-376 host-native Linux private daemon). New branch from current main (
14a348b8); the merged PR branch is untouched. Addresses all three parent findings, with a real disposable dockerd boot.Fixes
DaemonOptionscanonical renderer andDaemonSpec.BuildManifest()for the OSS-379 installer lane.ExecStartnow passes only--config-fileon both modes.CheckOptionParityfails on duplicate JSON keys, extra CLI flags, or a config key repeated on the command line. Also removes the merged config's invalidbridge: none+bippair, which dockerd rejects (-b & --bip, mutually exclusive).dockerd-rootless.shin a systemd--userunit (WantedBy=default.target,XDG_RUNTIME_DIRin the environment, noUser=, nomulti-user.target). Direct system dockerd rendering is refused.User=) with the capability set dockerd requires (CAP_SYS_ADMIN,CAP_NET_ADMIN,CAP_NET_RAW,CAP_SYS_RESOURCE, file-ownership caps),NoNewPrivileges=no,ProtectSystem=full, cgroup delegation. Empty capability set / non-rootUser=is refused.The shared ADR 0019 enrollment contract, proto, DB columns, auth middleware and compatibility gates are unchanged.
Disposable boot evidence (no host install, no shared daemon change)
Pinned
docker:29.3.0-dindcontainer booted with the exact daemon.json rendered by the production renderer. Precisely: this is a PRIVILEGED nested ROOTFUL config boot with ajson-filelog-driver override (the disposable container has no journald):dockerdstarted; private socket/run/carbon-node/docker.sockexists; private bridge10.231.0.1/24.NESTED_OK.30123->8080/tcpand on the private bridge at10.231.0.2:8080(OPEN/OPEN).MEM=67108864 PIDS=12.persist-markerand container definitions remained; socket and limits re-applied. Running processes did not survive the full container restart (honest limit; no live-restore claim).systemd-analyze verify— syntax only, not a boot.Exact output: external audit file
security-runtime-plans/node-native-boot-evidence.md.Qualification limits — do not overclaim deployability
The boot evidence does not prove the shipped units boot on a clean Linux systemd host:
dockerd-rootless.shundersystemd --user) is NOT yet boot-verified.dockerd --config-file=...with the capability set) is NOT yet boot-verified; the dind fixture booted the config directly, not via that unit.Both remain future owned-clean-systemd-fixture work. No live host, release or deployment claim is made.
Verification
go build ./...,go vet,go test -count=1on touched packages +internal/rpc+internal/db(pinned Go 1.26.11): all green.golangci-lint v2.13.2with pinned toolchain: 0 issues.knowledge-lint -fixthen plain lint: 69 concepts / 38 queries pass.Maintenance update (rebased + review fixes)
0b80e9b4(includese9b60513). One conflict inknowledge/architecture/host-native-runtime.mdwas resolved semantically:kept the shared-enrollment paragraph from main, kept this lane's daemon
renderer paragraph, and added the qualification-limit statement.
DedicatedUIDAvailablerootful gate withRootfulServiceQualified(explicit root-managed service; runs as root, noUser=, capability set required; fail-closed preserved).RenderUnit()nolonger takes an ignored
configPathparameter.dbd9fcd072b3181e3bcf127d4e79f84c432a7e10(PR head OIDverified). All 12 CI checks green on this head; the first Backend Test Suite
run failed only on an unrelated flaky
internal/playerskin TestPositiveTTLExpiry(passes locally twice) and passed on rerun with no source change.
No merge, release, deployment, registry write, live host or global host config change.