Repository navigation
Consume canonical daemon renderer in installer CLI (OSS-379) - #544
Merged
Merged
Conversation
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.
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
Follow-up to OSS-379 PR539 qualification: main did not wire the installer CLI to the canonical daemon renderer, so
render-daemonstill used the installer-local option table that emitted the invalidbridge: nonetogether withbip.What changed
cmd/carbon-node-installerexplicitly wiresSetDaemonRenderer(nodeinstall.CanonicalRenderer{})at startup.internal/nodeinstall/daemon.gono longer declares any dockerd option:CanonicalRendereradaptsinternal/noderuntime/native(DaemonSpec.BuildManifest) and enforcesnative.CheckOptionParity. The old local config/option code is deleted.ValidateDaemonPathscontainment, symlink, world-writable and collision refusals are unchanged.ExecStartsubstitution; they never alter options.Rendered-config evidence
render-daemonon 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.bridgekey: absentbip:10.231.0.1/24ExecStart=/usr/bin/dockerd --config-file=/srv/carbon-node/state/daemon.json(single option source)Verification
build,vet,go test ./... -count=1— all exit 0golangci-lintv2.13.2 new-issues (--new-from-rev) — 0 issuesHonest 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.