Skip to content

OSS-377: verify real VM base-image bytes; clean boot blocked (no qemu-system/KVM) - #550

Merged
athNdev merged 1 commit into
mainfrom
codex/node-vm-qemu
Nov 19, 2026
Merged

athNdev merged 1 commit into
mainfrom
codex/node-vm-qemu

Conversation

@athNdev

@athNdev athNdev commented Nov 19, 2026

Copy link
Copy Markdown
Owner

OSS-377 — VM artifact validation: real base-image bytes verified; clean boot externally blocked

Head: e04155d2334cb6a64ae9e1fdd34cd1599cdf0a41 (codex/node-vm-qemu, based on 9e81679b).

Claim boundary (please read before reviewing)

Claim Status
Immutable dated pins, GPG-signed SHA256SUMS, key fingerprint VERIFIED (provenance)
Actual amd64/arm64 image bytes match the signed pin VERIFIED (bytes) — both images downloaded in full, SHA256 and byte count match
Downloaded files are valid QCOW2 VERIFIED (format) — qemu-img info: qcow2, 3.5 GiB virtual, corrupt: false
Deterministic, secret-free NoCloud seed VERIFIED (offline) — two task-owned builds byte-identical; no secret/PEM in seed
Unique first-boot identity + digest-only bundle under shared ADR0019 VERIFIED (offline fixtures) — NUL-delimited ClaimContextRaw golden bytes, Ed25519-only, digest-only bundle
Real clean boot BLOCKED — no qemu-system-* binary and no /dev/kvm; TCG software emulation unavailable. No boot evidence claimed.
Live mTLS enrollment / effective private-network isolation NOT VERIFIED — depends on a real boot; no VM was created

Full evidence: packaging/node-vm/qualification/VM-BOOT-QUALIFICATION.md.

Changes

  • scripts/node_vm_verify_image.py — new read-only, offline driver that streams a downloaded image and checks its SHA256/byte count against the checked-in pin and the published SHA256SUMS; verifies checksum/signature file bytes; fails closed on fixture profiles, placeholder digests and any mismatch. Closes the documented gap that "the image bytes were not downloaded".
  • scripts/test_node_vm_verify_image.py — 7 synthetic, network-free fixtures.
  • packaging/node-vm/qualification/VM-BOOT-QUALIFICATION.md — dated evidence with strict boundaries, reproduce steps and cleanup record.
  • knowledge/architecture/node-vm-artifact.md — governing concept updated in the same commit.

Evidence highlights

  • SHA256SUMS / .gpg / key SHA256 all match the pin; gpg --verify good signature, exit 0, fingerprint D2EB44626FDDC30B513D5BB71A5D6C4C7DB87C81.
  • amd64 04e8f246…6c94 (621284352 bytes) and arm64 50e24e1f…348e (616522752 bytes) — actual bytes equal pin and published sums.
  • Task-owned seed oss377-qemu-qual-0001: identical manifest (088da6a0…f9978) and file hashes across two runs; derived node_id node-a29539e5302ed2b2b4f28b8cb651a57e.
  • Existing 30 offline fixtures pass; 37 with the new fixtures. py_compile, artifact --check, integrity --verify, upgrade plan and knowledge-lint (40/40 queries) all pass.

Blocker to lift for full qualification

Provide an isolated qemu-system-x86_64 usable without KVM (or an owned disposable VM facility), then boot the verified amd64 QCOW2 with the deterministic NoCloud seed and capture serial-console evidence of cloud-init and first-boot bundle creation. Installing system packages would be a host-level write outside this task's authority, so no boot was attempted and none is claimed.

Scope / non-publication

No live host, VM, deployment, registry or release was written. No QCOW2 was built or published. This artifact is not qualified for publication until the clean-boot gate is satisfied with real evidence.

Add a read-only, offline verifier that streams a downloaded base image and
checks its SHA256 and byte count against the pinned immutable dated Ubuntu
image and the GPG-signed published SHA256SUMS. Re-verified both amd64 and arm64
pins from real downloaded bytes (both match); qemu-img confirms valid QCOW2.

Record qualification evidence with a strict boundary: artifact provenance and
real bytes VERIFIED, deterministic secret-free NoCloud seed and shared ADR0019
first-boot fixtures VERIFIED (offline), but real clean boot BLOCKED because the
available host has no qemu-system binary and no /dev/kvm. No boot evidence is
claimed and no artifact is published. Update the governing knowledge concept in
the same commit.

30 existing offline fixtures pass; 37 with the new verifier fixtures.
py_compile and all CLI checks pass; knowledge-lint 40/40 queries clean.
@athNdev
athNdev merged commit 029be83 into main Nov 19, 2026
23 of 24 checks passed
@athNdev
athNdev deleted the codex/node-vm-qemu branch November 19, 2026 03:46
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