feat(trust): signed SLSA attestations and OSV advisory audit (G5)
VoidBuildSystem CI / 1 · Requirements (push) Successful in 8s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m55s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 2m37s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 4m7s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 4m57s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 4m38s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 26s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 27s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 8m38s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 29s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m36s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 5m13s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 5m4s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped

- vbs attest create renders an in-toto Statement v1 / SLSA provenance v1
  predicate (subjects with sha256 digests, build definition with
  project/profile/targets/lock revision, internal parameters, run details)
  and wraps it in a DSSE envelope signed with the existing Ed25519
  primitives over the PAE; creation fails closed without a signing backend.
- vbs attest verify requires a trusted key, verifies the DSSE PAE
  signature, checks the statement type and requires every supplied
  artifact digest to be covered; wrong artifacts, tampered payloads and
  untrusted keys are rejected.
- vbs audit matches OSV advisories (array or "vulnerabilities" object;
  introduced/fixed/last_affected/limit ranges and exact versions) against
  every package entry in vbs.lock, with --severity-threshold and --json;
  findings fail the command.
- vbs doctor reports Ed25519 signing availability.

Implemented with VoidLibrary: Void::Text::Base64 (DSSE payload),
Void::Json::Strict (statement/envelope/audit output), Void::Semver
(version ranges), Void::Str, plus the existing Signing primitives.

Verified: attest_create_and_verify_detects_tampering and
audit_matches_osv_advisories_against_lock pass; CLI contracts pass;
clang-format clean.
This commit is contained in:
faumaray committed 2026-12-06 19:52:54 +03:00
1 parent ff3bfd03a1
commit 8b21583eeb
11 files changed
+1185 -5

No files matched your search

+7 -5
View File
@@ -110,8 +110,8 @@ the concrete acceptance gate.
### G1 — Cargo-grade lifecycle CLI *(S–M per command)*
**Status: partially implemented (Wave 147).** Done: `new`, `run`, `metadata`, `why`, `add`,
`remove`, `tree`, `fmt`, `lint`, `install-binary`, `--frozen`. Pending: `bench`, `doc`,
`outdated`, `update -p`, `audit`, `deny`, `vendor`.
`remove`, `tree`, `fmt`, `lint`, `audit`, `install-binary`, `--frozen`. Pending: `bench`, `doc`,
`outdated`, `update -p`, `deny`, `vendor`.
**Beats:** Cargo (parity), CMake/Meson/build2 (they have no unified lifecycle).
@@ -265,9 +265,11 @@ Fortran are cheap to add to images); each language's incremental model differs.
### G5 — Trust: enforced hermeticity, attestations, reproducibility, advisories *(L)*
**Status: partially implemented (Wave 148).** Done: the enforced hermetic sandbox (Plan 23 F1)
for compile/link/custom actions. Pending: SLSA/in-toto attestations, the sandboxed descriptor,
`vbs audit` advisories, dependency-confusion guards, policy-as-code (G11) and `verify-repro`.
**Status: partially implemented (Wave 149).** Done: the enforced hermetic sandbox (Plan 23 F1)
for compile/link/custom actions, DSSE/in-toto/SLSA attestations (`vbs attest create|verify`,
trusted-key and subject-digest enforcement), and `vbs audit` over OSV advisories against the
lockfile. Pending: sandboxing the build descriptor itself, dependency-confusion guards,
policy-as-code (G11) and `vbs verify-repro`.
**Beats:** all four. Cargo has `cargo-deny` externally; CMake/Meson/build2 have nothing built in.