Repository navigation
OSS-380: isolated runtime-artifact publication boundary and format evidence - #525
Conversation
…idence Adds a dispatch-only publication workflow under the independent runtime-v* version domain (ADR 0033). A fail-closed Python gate requires a trusted main SHA with exact-commit main CI and a bound identity assertion before any write. Integrity records are deterministic SHA-256 manifests, cosign keyless signatures and CycloneDX SBOMs, attached to a draft asset release only on explicit opt-in. No app release, registry push or host provisioning is performed by this lane. Records primary-source research on VHDX, VDI, VMDK, OVA/OVF and bhyve: none has real clean import/boot evidence here, so only QCOW2, LXC rootfs and the portable installer are publishable and the installer is the supported fallback. Wires 18 offline gate/integrity tests into CI and updates the governing knowledge concepts.
…rification B1: allow signature.sig and signature.bundle as integrity records (single INTEGRITY_RECORDS set) so a complete cosign bundle no longer fails verify-bundle; keep them excluded from checksum/SBOM generation. Test stages all cosign records. B2: derive the certificate identity from trusted inputs as the canonical GitHub Actions OIDC workflow ref (https://github.com/<repo>/.github/workflows/runtime-artifacts.yml@refs/heads/main, per the cosign README and GitHub OIDC workflow_ref claim), store it in signature.json signer_identity, and demote the operator publisher label to informational publisher_label. Never accept a free-form label as a certificate identity; document the exact value consumers must pass. B3: reword verify_signature_binding/verify_bundle docstrings and the install guide so cryptographic verification is correctly described as the consumer's cosign verify-blob step, not a workflow step. Tests now 20 (was 18): workflow-ref identity, wrong-label refusal, sig/bundle integrity records, complete-bundle precondition. Full release-tools unittest EXIT 0; YAML parse OK; workflow contract 2/2; knowledge-lint -fix and final 38/38 queries, indexes current.
Review fixes applied — new head
|
OSS-380 — isolated runtime-artifact publication lane
Companion to OSS-368. This PR adds the publication boundary and evidence record only. It is dispatch-only and performs no live registry push, GitHub release, host provisioning, VM import/boot test, or Carbon Panel application release.
Format decision (primary sources only)
A vendor's documented format support (Microsoft VHDX spec, QEMU
qemu-img, VirtualBox manual, FreeBSD handbook) is explicitly not treated as import/boot evidence. Full table and source URLs:docs/node-runtime/home-hypervisor-formats.md.What changed
.github/workflows/runtime-artifacts.yml— the only dispatcher, onworkflow_dispatchalone. Separategatejob verifies exact-commit main CI and the bound identity assertion before thepublishjob can run. Publishes to a draft asset release only onpublish=true. Independentruntime-vMAJOR.MINOR.PATCHdomain per ADR 0033; never av*app ormod-*module release.scripts/runtime_artifacts.py— fail-closed boundary (publication_gate), trusted-SHA verification, strict identity assertion parsing, artifact allowlist, deterministic SHA-256/SBOM generation, signature-binding precondition and CLI. Unproven home-hypervisor formats are refused in code.scripts/test_runtime_artifacts.py+scripts/testdata/runtime-artifacts/— 18 offline tests; wired intoci.ymlrelease-tools job.docs/node-runtime/— install/verification guide with a gated announcement template (no claim of completed testing), plus the format decision.Verification evidence (exact head
24320d2b)python3 -m unittest scripts.test_release scripts.test_go_mod_download scripts.test_runtime_artifacts→ EXIT 0 (existing suite + 18 new tests).python3 -m py_compile scripts/runtime_artifacts.py scripts/test_runtime_artifacts.py→ EXIT 0.safe_loadofruntime-artifacts.ymlandci.yml→ OK.bun test scripts/workflow-contract.test.mjs→ 2 pass / 0 fail.go run ./cmd/knowledge-lint -root . -fixthen without-fix→queries: 38/38 pass,OK: 65 concept(s), indexes current.verify-checksumson a staged fake artifact →verified: true, EXIT 0.Evidence limits / scope
node-*-mode.md) were not yet present when this lane was implemented; interfaces are defined without depending on their file names.Do not merge until independent review and CI are green.