Repository navigation
OSS-377: verify real VM base-image bytes; clean boot blocked (no qemu-system/KVM) - #550
Merged
Merged
Conversation
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.
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.
OSS-377 — VM artifact validation: real base-image bytes verified; clean boot externally blocked
Head:
e04155d2334cb6a64ae9e1fdd34cd1599cdf0a41(codex/node-vm-qemu, based on9e81679b).Claim boundary (please read before reviewing)
qemu-img info: qcow2, 3.5 GiB virtual,corrupt: falseClaimContextRawgolden bytes, Ed25519-only, digest-only bundleqemu-system-*binary and no/dev/kvm; TCG software emulation unavailable. No boot evidence claimed.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 publishedSHA256SUMS; 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 --verifygood signature, exit 0, fingerprintD2EB44626FDDC30B513D5BB71A5D6C4C7DB87C81.04e8f246…6c94(621284352 bytes) and arm6450e24e1f…348e(616522752 bytes) — actual bytes equal pin and published sums.oss377-qemu-qual-0001: identical manifest (088da6a0…f9978) and file hashes across two runs; derivednode_idnode-a29539e5302ed2b2b4f28b8cb651a57e.py_compile, artifact--check, integrity--verify, upgrade plan andknowledge-lint(40/40 queries) all pass.Blocker to lift for full qualification
Provide an isolated
qemu-system-x86_64usable 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.