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

+9
View File
@@ -43,6 +43,15 @@ check_process(2 "" "invalid value 'bazel' for '--from'" migrate --from bazel)
check_process(2 "" "invalid value 'bogus' for '--template'" init --template bogus)
check_process(0 "--template" "" init --help)
check_process(0 "--export" "" presets --help)
check_process(0 "Usage: vbs attest " "" attest --help)
check_process(0 "Usage: vbs attest create " "" attest create --help)
check_process(0 "Usage: vbs attest verify " "" attest verify --help)
check_process(0 "Usage: vbs audit " "" audit --help)
check_process(2 "" "missing subcommand" attest)
check_process(2 "" "--artifact, --output and --signing-key are required" attest create)
check_process(2 "" "--attestation is required" attest verify)
check_process(2 "" "--advisories FILE is required" audit)
check_process(2 "" "invalid --severity-threshold" audit --advisories x --severity-threshold nope)
check_process(0 "Usage: vbs run " "" run --help)
check_process(0 "Usage: vbs metadata " "" metadata --help)
check_process(0 "Usage: vbs why " "" why --help)