Skip to content

feat(node-lxc): unprivileged LXC rootfs artifact lane (OSS-378) - #528

Merged
athNdev merged 3 commits into
mainfrom
codex/node-lxc
Nov 18, 2026
Merged

athNdev merged 3 commits into
mainfrom
codex/node-lxc

Conversation

@athNdev

@athNdev athNdev commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

What

Adds a separate, offline-qualified artifact lane for an unprivileged LXC / Proxmox rootfs template (OSS-378, under OSS-368). The lane reuses the shared ADR0019 enrollment/control contract from PR 516/517/518 and does not fork it: no new RPC, credential type, TLS stack or product release.

Exact head: 084fc06fe40510909efebf1917700ebca2b3bc34 (branch codex/node-lxc, rebased onto main 14a348b8, force-with-lease pushed).

Why separate from VM mode

An unprivileged LXC guest shares the host kernel, so its isolation boundary and host prerequisites differ from the dedicated VM mode. docs/node-lxc-mode.md documents those differences and ADR 0036 records the decision. A read-only nested-runtime capability gate refuses unsupported hosts with distinct reason codes; it never changes global host configuration or provisions a host.

Included

  • packaging/node-lxc/ CLI with build, verify, capability gate, first-boot identity, volume import/backup/restore and staged upgrade/rollback.
  • Pinned provenance and platform/version matrix; SHA256SUMS; operator RSA/SHA-256 detached signature; CycloneDX 1.5 SBOM binding the payload digest; fail-closed verification; secret-material guard.
  • Unique Ed25519 first-boot identity and digest-only, ADR0019-shaped enrollment bundle. Private key and enrollment secret exist only on the persistent volume (mode 0600), never in the template or metadata.
  • Persistent volume and world-data import/backup/recovery with checksum/signature verification, path-traversal refusal and data-preserving overwrite refusals. Two-slot upgrade/rollback that activates only verified artifacts.
  • ADR 0036, mode docs, knowledge concept and 10 offline fixture scenarios.

Verification evidence

  • python -m unittest discover -s packaging/node-lxc/tests -p 'test_*.py' -v: 11/11 OK (signed build/verify; unsigned, tampered, wrong-key, secret-material, provenance-digest and platform refusals; supported + 7 unsupported capability snapshots; unique first-boot identity with verified CSR_PRE signature and no secret in metadata; volume import/backup/restore with tamper refusal; staged upgrade/rollback with state preserved on refusal; LF vs CRLF portability regression).
  • go run ./cmd/knowledge-lint -root . -fix then plain lint: OK: 70 concept(s), indexes current, 38/38 queries pass.
  • git diff --check clean; Python modules compile.
  • Full PR CI: 12/12 green including Go Race Detector; mergeable=MERGEABLE, mergeStateStatus=CLEAN.

Rebase maintenance resolved one conflict in knowledge/repo-map.md (kept both main's node-VM packaging row and this lane's packaging/node-lxc row); generated architecture index regenerated by knowledge-lint. knowledge/decisions/adrs.md remains orchestrator-owned and untouched. ADR0036, the capability gate, digest-only enrollment, signing/SBOM, volume backup/restore and two-slot rollback are intact.

Limits (explicitly not claimed)

Offline, disposable fixture qualification only. No live host provisioning, no global host config change, no image import/boot, no effective kernel-enforcement evidence, no gameplay compatibility claim. Upstream pins are synthetic fixture values; live import/boot qualification (M5) is a later milestone. No merge, registry push or release is requested here.

Add a separate OSS-378 artifact lane for an unprivileged LXC/Proxmox rootfs
template that reuses the shared ADR0019 control contract without forking it.

- Read-only nested-runtime capability gate refuses unsupported hosts with
  distinct reason codes; no global host config or live provisioning.
- Reproducible build with pinned provenance/platform matrix, SHA256SUMS,
  operator RSA/SHA-256 signature, CycloneDX SBOM and secret guard.
- Ed25519 first-boot identity with digest-only scoped enrollment material;
  private key and enrollment secret stay on the persistent volume.
- Persistent volume import/backup/restore and staged upgrade/rollback with
  data-preserving refusals.
- Offline fixture suite (10 scenarios) plus mode docs, ADR0034 and knowledge
  concept. No merge, registry push or release.
ADR 0034 is centrally allocated/merged as the MCP server distribution ADR.
Rename this lane's ADR to 0036-node-lxc-template.md and update its title,
self references, mode docs, knowledge concept source link and lane README.
knowledge/decisions/adrs.md remains orchestrator-owned and untouched.

Re-verified: 10/10 offline fixtures OK, py_compile clean, knowledge-lint
-fix then final lint clean (65 concepts, 38/38 queries).
…ings

Rebasing onto current main checked the fixture tree out with CRLF on Windows,
which changed the pinned digest. Normalize CRLF to LF for both content and
recorded size in canonical_files, SHA256SUMS and the detached signature so a
Linux LF checkout and a Windows CRLF checkout produce identical artifacts.

Adds a regression fixture (LF vs CRLF trees build and verify against the same
pin). Re-verified after rebase: 11/11 fixtures, py_compile, diff --check and
knowledge-lint -fix + final (70 concepts, 38/38 queries).
@athNdev
athNdev merged commit d9760d6 into main Nov 18, 2026
12 checks passed
@athNdev
athNdev deleted the codex/node-lxc branch November 18, 2026 09:11
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