Skip to content

feat(node-lxc): real dated Ubuntu rootfs pins + fail-closed provenance (OSS-378) - #545

Merged
athNdev merged 1 commit into
mainfrom
codex/node-lxc
Nov 18, 2026
Merged

athNdev merged 1 commit into
mainfrom
codex/node-lxc

Conversation

@athNdev

@athNdev athNdev commented Nov 18, 2026

Copy link
Copy Markdown
Owner

OSS-378 follow-up: real pinned upstream provenance

Replaces the synthetic all-zero LXC provenance pins with real, immutable, dated upstream artifacts and makes the artifact profile fail closed on synthetic/placeholder/moving inputs. PR #528 (the earlier LXC lane) was merged by the orchestrator; this PR continues on the same codex/node-lxc branch.

Exact head: 072d49da0d1c30ae1f826ebb41e5c21fd8ff073c (branch codex/node-lxc, base main at 4e461789).

Real pin evidence

  • Source: official Canonical Ubuntu Cloud Images immutable dated release https://cloud-images.ubuntu.com/releases/noble/release-20261017/. The moving /release/ symlink is explicitly rejected.
  • Artifacts: ubuntu-24.04-server-cloudimg-{amd64,arm64}-root.tar.xz
    • amd64 ec6972af8ea2bd05c55299d204e5ae3f91769b84cfaec7395639d236a39f9a03 (227213232 bytes)
    • arm64 b68ef0444ca56ce4f00ae7e8ccfb0c553ffbc92e4a1b14ed7dd8aa18c6d68652 (216215656 bytes)
  • Signed checksums: <dated>/SHA256SUMS sha256 0449a33b78dddb301a3ce2b80398984bc3e1f7880e27b86a31e58bdcbd3d3816; <dated>/SHA256SUMS.gpg sha256 68aae716a548e466e58afddd8b767c54c791f40f1d20d1d12e27c471edb535e5.
  • Signature: local gpg --verify returned exit 0 — Good signature from UEC Image Automatic Signing Key <[email protected]>, fingerprint D2EB 4462 6FDD C30B 513D 5BB7 1A5D 6C4C 7DB8 7C81.
  • Method: targeted direct HTTPS GET/HEAD (no web search), recorded in packaging/node-lxc/qualification/RETRIEVAL-EVIDENCE.md. Full tarball bytes were not downloaded.

Changes

  • Split config/provenance.json (real artifact profile) from config/provenance.fixture.json (synthetic, explicitly marked). Synthetic values now live only in the fixture profile.
  • Added validate-provenance and fail-closed checks: synthetic profile, placeholder/unverified digest, missing signing evidence, moving/undated URL, profile mix-up. Artifact mode refuses the fixture profile and vice versa.
  • Added three acceptance/refusal fixture scenarios (14 total).
  • Recorded the real external blocker — no /dev/kvm and no LXC tooling on this host, so no live import/boot/nested-daemon/effective-enforcement/gameplay claim — in packaging/node-lxc/qualification/QUALIFICATION.md and docs/node-lxc-mode.md.

Verification at exact head

  • python -m unittest discover -s packaging/node-lxc/tests -p 'test_*.py' -v: 14/14 OK.
  • Pinned Go 1.26.11: go vet ./cmd/knowledge-lint/... and go test ./cmd/knowledge-lint/... both pass; node scripts/check-toolchain-policy.mjs matches Go 1.26.11 / Bun 1.4.2 / Buf 1.50.0.
  • Python 3.12.10 py_compile clean; git diff --check clean.
  • go run ./cmd/knowledge-lint -root . -fix then final lint: 70 concepts, 38/38 queries pass.
  • No live host, registry push, release or merge requested here.

…etic pins

Replace the all-zero synthetic upstream pins with immutable, dated Ubuntu
24.04 root tarballs from cloud-images release 20261017. SHA-256 values come
from a GPG-signed SHA256SUMS locally verified against the documented Canonical
signing key; exact URLs, dates, checksum/signature hashes, key fingerprint and
retrieval method are recorded in qualification/.

- Split provenance into a real artifact profile and an explicitly synthetic
  fixture profile; fixture builds refuse the artifact profile and vice versa.
- Add validate-provenance and fail-closed checks for synthetic profiles,
  placeholder/unverified digests, missing signing evidence and moving URLs.
- Add three acceptance/refusal fixture scenarios (14 total).
- Record the precise external guest-boot blocker (no /dev/kvm, no LXC tooling)
  and keep all boot/import claims out of the evidence.

Verified: 14/14 fixtures, pinned Go 1.26.11 vet/test for knowledge-lint,
py_compile, toolchain policy, git diff --check, knowledge-lint -fix + final.
@athNdev
athNdev merged commit 830b6ee into main Nov 18, 2026
12 checks passed
@athNdev
athNdev deleted the codex/node-lxc branch November 18, 2026 23:49
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