Skip to content

Consume canonical daemon renderer in installer CLI (OSS-379) - #544

Merged
athNdev merged 1 commit into
mainfrom
codex/node-installer
Nov 18, 2026
Merged

athNdev merged 1 commit into
mainfrom
codex/node-installer

Conversation

@athNdev

@athNdev athNdev commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to OSS-379 PR539 qualification: main did not wire the installer CLI to the canonical daemon renderer, so render-daemon still used the installer-local option table that emitted the invalid bridge: none together with bip.

What changed

  • cmd/carbon-node-installer explicitly wires SetDaemonRenderer(nodeinstall.CanonicalRenderer{}) at startup.
  • internal/nodeinstall/daemon.go no longer declares any dockerd option: CanonicalRenderer adapts internal/noderuntime/native (DaemonSpec.BuildManifest) and enforces native.CheckOptionParity. The old local config/option code is deleted.
  • Fail-closed ValidateDaemonPaths containment, symlink, world-writable and collision refusals are unchanged.
  • Fixture-only binary overrides remain a targeted ExecStart substitution; they never alter options.

Rendered-config evidence

render-daemon on a representative rootful spec produced config keys:
bip, containerd-namespace, data-root, exec-root, features, hosts, ip6tables, iptables, live-restore, log-driver, log-opts, no-new-privileges, storage-driver, userland-proxy.

  • bridge key: absent
  • bip: 10.231.0.1/24
  • ExecStart=/usr/bin/dockerd --config-file=/srv/carbon-node/state/daemon.json (single option source)

Verification

  • Pinned Go 1.26.11 build, vet, go test ./... -count=1 — all exit 0
  • golangci-lint v2.13.2 new-issues (--new-from-rev) — 0 issues
  • Python offline fixtures — 6/6
  • knowledge-lint — 40/40 queries, 75 concepts; gofmt clean
  • Linux systemd qualification fixture re-run on the corrected head — ALL PASS (start/restart of rendered rootless and rootful units, XDG reset, canonical roots, six temporary-path refusals). Raw log in the external audit folder.

Honest limits

Fixture-only: no-op daemon replaces dockerd in ExecStart; service restart, not a full OS reboot; no live host, engine, storage, network, release or registry write. No merge performed here.

The installer still declared its own daemon.json option table, emitting the
invalid bridge=none together with bip. Wire the shared canonical renderer from
internal/noderuntime/native into render-daemon via SetDaemonRenderer and remove
the installer-local option path entirely.

- CanonicalRenderer adapts native.DaemonSpec/BuildManifest and enforces
  native.CheckOptionParity; config now emits bip only, no bridge key.
- CLI wires the adapter explicitly at startup; fail-closed ValidateDaemonPaths
  containment/refusal rules are unchanged.
- Fixture-only binary overrides are a targeted ExecStart substitution and never
  alter daemon options.
- Go/Python fixtures and the Linux systemd qualification fixture updated for
  canonical output; one-source and option-parity assertions added.

Evidence: rendered config has no bridge key and a single --config-file flag;
qualification fixture re-run ALL PASS on real systemd (start/restart, XDG reset,
canonical roots, six refusals). Pinned Go 1.26.11 build/vet/test, golangci-lint
new-issues 0, Python 6/6, knowledge-lint 40/40, gofmt clean. No merge/release.
@athNdev
athNdev merged commit 62b5dcd into main Nov 18, 2026
12 checks passed
@athNdev
athNdev deleted the codex/node-installer branch November 18, 2026 23:47
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