Repository navigation
OSS-377: reproducible QCOW2/cloud-init node VM artifact (fixtures) - #526
Merged
Merged
Conversation
…tures) OSS-377 artifact lane under OSS-368. Adds packaging/node-vm build definition for a dedicated per-node VM on Proxmox VE and generic KVM/libvirt: - pinned base-image provenance (GPG key + upstream checksum URL, fixture digests that hard-stop apply until verified), supported platform matrix, deterministic NoCloud seed rendering with SOURCE_DATE_EPOCH and --check. - no enrollment input baked into image/seed/metadata: first boot generates a CSPRNG secret + Ed25519 key locally and exports only a digest-only bundle under the SHARED ADR0019 contract; bootstrap scopes limited to challenge + claim. No RPC forked or mounted. - deterministic SHA256SUMS, CycloneDX 1.5 SBOM and environment-supplied detached signing plan (no baked key); packaging only, no publication. - staged upgrade with checksummed undo before promotion, verified rollback, copy-only hash-verified volume import/backup/recovery, world/backup/DB and daemon data-root preservation, UNCERTAIN blocks retry. - isolation + host-prerequisite docs and a fixture-only disposable-VM qualification design. No live VM, host config, registry or release touched. ADR 0034 (central allocation: 0015-0033 taken by other tracks) and a governing architecture concept. Orchestrator-owned ADR index row text is supplied in the final report rather than written here. Verification: py_compile clean; 27 offline unittest fixtures pass; build --check deterministic and fixture-only; integrity --verify green; upgrade planner emits undo manifest; knowledge-lint 65 concepts / 38 queries, indexes current.
PR526 blocking correction: ADR 0034 is centrally allocated and already merged as docs/adr/0034-mcp-server-distribution.md. Rename this lane's ADR to 0035 and update its self references and the governing knowledge concept links. 0036/0037/0038 remain reserved for sibling lanes. No other file, no knowledge/decisions/adrs.md row (orchestrator-owned) and no code behavior changed. Re-verified: knowledge-lint -fix then final (65 concepts, 38/38 queries, indexes current), py_compile clean, 27 offline fixtures pass.
Complete the renumbering: title, allocation note (0034 = MCP distribution, 0036-0038 reserved for siblings) and suggested orchestrator row now use 0035; governing concept sources and Read next links updated to match.
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
OSS-377 (child of OSS-368) artifact lane: a reproducible, secret-free QCOW2 + cloud-init node VM build definition for Proxmox VE and generic KVM/libvirt. Fixture/design only — no live VM, host config change, provisioning, registry push or release.
The shared enrollment/control contract (ADR 0019, PRs 516/517/518) is consumed, not forked. No node-control RPC is defined, mounted or changed here.
What is included
packaging/node-vm/config/— pinned build config, scoped enrollment policy (digest-only, no baked secrets, bootstrap scopes limited toBeginEnrollmentChallenge/ClaimEnrollment), staged upgrade/rollback policy.packaging/node-vm/provenance/base-images.json— pinned Ubuntu 24.04 amd64/arm64 cloud-image URLs, versions, signing-key fingerprint and upstream checksum URL. Digests arefixture-placeholderand are a hard stop for apply until an operator records averifieddigest.packaging/node-vm/MATRIX.md— supported platform/version matrix (design targets, explicitly not live-qualified claims).packaging/node-vm/cloud-init/— deterministic NoCloud seed templates (public metadata only) plus a self-contained first-bootenroll.pythat generates a CSPRNG secret + Ed25519 key locally and exports only a digest-only bundle. The image and seed contain no secret, key, token, approved SPKI or fingerprint.scripts/node_vm_build.py— offline build driver: deterministic seed rendering withSOURCE_DATE_EPOCH, canonical manifest, no-baked-secrets enforcement,--checkdeterminism verification. Never calls qemu-img/xorriso/virt-customize/hypervisor.scripts/node_vm_integrity.py— deterministic SHA256SUMS, CycloneDX 1.5 SBOM and environment-supplied detached signing plan (no embedded key).scripts/node_vm_upgrade.py— staged upgrade (undo manifest + health recheck before promotion), verified rollback, copy-only hash-verified volume import/backup/recovery; world/backup/DB and daemon data-root preserved;UNCERTAINblocks retry.packaging/node-vm/docs/— distinct VM isolation model and host prerequisites.packaging/node-vm/qualification/— disposable owned-VM qualification design and synthetic fixtures with an explicit fixture-vs-live evidence boundary.knowledge/architecture/node-vm-artifact.mdconcept and repo-map update.Honest boundaries
knowledge/decisions/adrs.mdrow remains orchestrator-owned; exact row text is supplied in the final report.Verification (exact head
64928e47987f59af58045892e71db1fd5c49b7c7)python -m py_compileon all four drivers, four test modules and the guest first-boot module — clean.python -m unittest discover -s scripts -p 'test_node_vm_*.py'— 27 tests pass (identity uniqueness, digest-only bundle, secret-leak refusal, baked-secret refusal, deterministic seed/manifest, CycloneDX SBOM, key-free signing plan, staged upgrade/rollback and copy-only volume safety).python scripts/node_vm_build.py --out-dir <tmp>/seed --check— deterministic,fixture_only: true, provenancefixture-placeholder.python scripts/node_vm_integrity.py --out-dir <tmp>/integrity --verify— checksum manifest verifies; SBOM CycloneDX 1.5; signing plan has no baked key.python scripts/node_vm_upgrade.py --from-revision 0.1.0-fixture --to-revision 0.2.0-fixture --batch-id fixture-batch-0001— staged undo manifest emitted.go run ./cmd/knowledge-lint -root . -fixthen plain lint — 65 concepts, 38/38 queries, indexes current;-for-path packaging/node-vmreports the governing concept.go test ./cmd/knowledge-lintpasses.Scope exclusions
No merge, no registry push, no release/tag, no live host VM, no global host configuration, no world/backup/database mutation, no proto/generated-file change, no auth middleware change, no product UI change. Review and CI are requested before any merge decision.