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
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:
1 parent
ff3bfd03a1
commit
8b21583eeb
11 files changed
+1185
-5
No files matched your search
@@ -401,6 +401,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
|
||||
|
||||
## Remaining future scope
|
||||
|
||||
- **Wave 149 (Trust layer, G5 start)**: `vbs attest create|verify` produces and verifies DSSE-wrapped in-toto Statement v1 / SLSA provenance v1 attestations (subjects, build definition with project/profile/targets/lock revision, internal parameters, run details) signed with the existing Ed25519 primitives; verification requires a trusted key, checks the DSSE PAE signature and requires every supplied artifact digest to be covered. `vbs audit --advisories OSV.json` matches OSV records (introduced/fixed/last_affected/limit ranges and exact versions) against `vbs.lock` packages with a severity threshold and JSON output; `vbs doctor` reports the signing backend. Unsignable hosts fail closed. Verified by `FullV1Tests.attest_create_and_verify_detects_tampering` (valid, wrong artifact, tampered payload, untrusted key, missing keys) and `FullV1Tests.audit_matches_osv_advisories_against_lock` (affected/fixed versions, severity thresholds, JSON).
|
||||
|
||||
- **Wave 148 (Hermetic sandboxing, F1)**: `Sandbox::sandbox_supported()` probes unprivileged user namespaces; `vbs build|test|run --sandbox=off|warn|strict` (or `VBS_SANDBOX`) wraps every action in the hidden `vbs __sandbox-exec` mode, which unshares user/mount/network namespaces, maps the caller to root, binds the project read-only, the build root (snapshots included) read-write, and `/usr`, `/lib`, `/bin`, `/etc` and the Nix store read-only before `pivot_root` and exec. `/proc`, `/sys` and `/dev` are bound read-write (their mounts cannot be remounted read-only from a user namespace), `/tmp` is an empty directory, and system read-only remounts that the kernel refuses degrade to writable binds (the project itself is required to be read-only). `vbs doctor` reports availability, CI runs a strict smoke build when the runner allows user namespaces, and `FullV1Tests.sandbox_strict_allows_project_builds_and_hides_outside_files` proves a strict build succeeds while an action that reads an outside file fails.
|
||||
|
||||
- **Wave 147 (Lifecycle CLI and native compiler caching, G1/G7 start)**:
|
||||
|
||||
Reference in new issue
Block a user