Repository navigation
feat(node-lxc): end-to-end signed Ubuntu rootfs archive validation (OSS-378) - #552
Merged
Merged
Conversation
Add verify-signed-archive: fails closed on synthetic/placeholder/moving pins, verifies the GPG signature of SHA256SUMS against the pinned key fingerprint, matches signed sums to pins, rehashes full downloaded root and LXD tarballs, checks content length and inspects usrmerged os-release plus LXD metadata for Ubuntu 24.04 and the requested architecture. Adds real-GPG offline fixtures (22 total) and records actual amd64/arm64 byte verification evidence. Guest boot remains externally blocked (no /dev/kvm, no LXC tools); no publication.
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-378 — end-to-end signed LXC archive validation
Follow-up to the merged real-provenance pins. The earlier slice verified digests from a GPG-signed
SHA256SUMSby HEAD/metadata only; this slice closes that gap by verifying the actual upstream tarball bytes for both architectures in an owned disposable path.Delivered
node_lxc_artifact.py verify-signed-archivecommand (staged mode and--fetchmode). It:SHA256SUMSagainst the pinned key fingerprint in an ephemeral GNUPGHOME (VALIDSIGfingerprint required);expected_sha256and the LXD metadata pin;etc/os-release/usr/lib/os-release(Ubuntu 24.04, noble) and LXDmetadata.yaml(architecture/os/release) inside the tarballs.packaging/node-lxc/qualification/SIGNED-ARCHIVE-EVIDENCE.md; docs/ADR0036/knowledge concept updated.Real results (exact head
b1b31fd9)Both architectures returned
status: ok,gpg_signature: GOODwith the UEC signing key fingerprintD2EB44626FDDC30B513D5BB71A5D6C4C7DB87C81:ec6972af8ea2bd05c55299d204e5ae3f91769b84cfaec7395639d236a39f9a03b68ef0444ca56ce4f00ae7e8ccfb0c553ffbc92e4a1b14ed7dd8aa18c6d68652dcfdfaf5239f2e1630540c091fd38a9f1e6cdabbaff267041a11ad0a5dcb35b26fe48e77a3fa52d81f3e5a84d3e83b6c96c16f4824bd49def8efe784529963bfID=ubuntu,VERSION_ID=24.04,VERSION_CODENAME=noblex86_64, ubuntu/noble, 24.04aarch64, ubuntu/noble, 24.04--fetchwas also smoke-tested against the live dated release for arm64: all five files fetched from the exact pinned URLs with the exact byte counts above, then verified OK withfetch_mode: true.Honest blocker — no boot qualification
No usable LXC runtime exists in a task-owned unprivileged fixture. Windows host has no
lxc/pct/systemd-nspawnand no/dev/kvm; the owned WSL 2 Ubuntu distribution also has no/dev/kvmor LXC tools, and installing them needs elevation/host configuration (out of scope). Therefore no clean import, guest first boot, nested daemon, kernel-enforcement or gameplay evidence is claimed. Signed-archive byte verification is artifact evidence, not boot evidence.Scope / verification
python -m py_compileclean; 22/22 offline fixtures;git diff --checkclean;go run ./cmd/knowledge-lint -root .after-fix: 76 concepts, 40/40 queries, indexes current.