Repository navigation
Portable Linux node installer shared by managed runtime modes (OSS-379) - #529
Merged
Merged
Conversation
…S-379) One guest-side installer for host-native, QCOW2 VM and unprivileged LXC modes; no provider-specific integration and no fork of the shared ADR 0019 contract. - internal/nodeinstall: first-boot identity, scoped secret-free enrollment bundle using the generated CreateEnrollmentRequest/ClaimEnrollmentRequest, challenge-bound claim with replay refusal, artifact integrity/upgrade/ rollback with journal recovery, and persistent volume import/backup/recovery. - cmd/carbon-node-installer + scripts/install-node.sh: dry-run-by-default CLI over caller-owned directories; no global host config, service or socket use. - docs + knowledge concept; offline Go (9) and Python (5) fixtures. Verification: go test/vet touched and full suite, 5/5 Python fixtures, tree-sitter-bash syntax, gofmt, knowledge-lint 38/38. No live host or release.
…SS-379) Post-merge alignment with native-daemon PR527 findings: - internal/nodeinstall/daemon.go: in-memory disposable daemon renderer with one source of options (config.json only; unit carries --config-file), per-user rootless launcher and explicit root rootful service with a non-empty capability bound. Fail-closed spec validation keeps all paths caller-owned. - DaemonRenderer/SetDaemonRenderer seam lets the native lane's canonical renderer replace the local one without changing callers, CLI or fixtures. - render-daemon CLI verb (read-only) plus 4 Go and 1 Python offline fixture. CI Backend Lint & Vet (run 44268893350) errcheck findings fixed explicitly: deferred closes wrapped, intentional error-path cleanup ignores made explicit, and test writeJSON errors asserted. Verification: pinned golangci-lint v2.13.2 under Go 1.26.11 new-issues=0, go vet ./... exit 0, go test ./... exit 0, 6/6 Python fixtures, knowledge-lint 38/38, gofmt clean. No live host, release or registry write.
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
One portable, mode-agnostic guest installer shared by all managed Carbon Panel runtime modes (host-native private daemon, QCOW2 VM, unprivileged LXC). No provider-specific integration; this is also the supported fallback wherever an image format is unqualified. The shared ADR 0019 enrollment/control contract (PR516/517/518) is consumed, not forked — no proto, generated code, DB migration or enrollment-server file is touched.
What it does
CSR_PRE+ approved SPKI/fingerprint + salt/digest, filling the generatedCreateEnrollmentRequest/ClaimEnrollmentRequest.Sstays in a0600state file and appears in exactly one claim; a fresh challenge-bound signature over the exact ADR context is required and replay is refused.S, private key and raw key bytes.Exported interface for sibling lanes
internal/nodeinstall(functions + sentinel refusal errors).scripts/install-node.sh <verb> [flags] [--apply]overcmd/carbon-node-installer.Verification
go test ./...— full suite green.go vet+gofmt— clean on touched packages.python scripts/test_node_installer_fixture.py— 5/5 offline end-to-end fixtures; wrapper parsed with tree-sitter-bash.go run ./cmd/knowledge-lint -root .— clean,38/38queries, 65 concepts.Scope
OSS-379 artifact lane. No merge, release or registry push. Coordinates with other mode lanes only through exported interfaces.