feat(provenance): emit deterministic SPDX and CycloneDX SBOMs
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 4s

- New Provenance::Sbom module generating SPDX 2.3 / CycloneDX 1.5 from lockfile packages + BuildGraph outputs
- Wire vbs build|test --sbom FILE --sbom-format spdx|cyclonedx
- Register the module in CMake, build.cpp and the self-host recipe
- Ed25519 signing requested upstream as Void/Library#36 (VL-014)
- Verified in Docker GCC 16: 8/8 CTest suites; deterministic JSON unit test + CLI SBOM assertion
This commit is contained in:
faumaray committed 2026-12-03 13:20:31 +03:00
1 parent 2970fbe25c
commit 55ea305528
13 files changed
+403 -8

No files matched your search

+2
View File
@@ -20,6 +20,7 @@ Pinned VoidLibrary revision: `3e254055e081a104f08df68dde39711bc7813518` (merged
| `VL-011b` | Optional SQLite3 FetchContent (`Void::Sqlite`) | Implemented (`VOID_FETCH_SQLITE3`) | Opportunistic when system `SQLite3` is installed (`VOID_FETCH_SQLITE3=OFF` to keep offline configures fast); journaled atomic CAS store retained |
| `VL-012` | Naming consistency observation | Noted | VBS strictly uses `Void::Build`, `PascalCase` types/enums/paths, `snake_case` functions/methods |
| `VL-013` | Shorthand SemVer ranges (`^1.0`, `~1.2`, `>=1.2 <2`) in `Void::Semver::parse_range` | Implemented | **Adopted** (`src/Package/Solver.cpp` delegates directly to `Void::Semver::parse_range`) |
| `VL-014` | Ed25519 sign/verify primitive (`Void::Crypto`) for package/binary provenance | Not implemented upstream ([Void/Library#36](https://git.faumaray.com/Void/Library/issues/36)) | Pending: D3 signature verification waits on this primitive; VBS emits SPDX/CycloneDX SBOM provenance now |
---
@@ -41,3 +42,4 @@ Pinned VoidLibrary revision: `3e254055e081a104f08df68dde39711bc7813518` (merged
- **`VL-004` / `VL-005` (`Void::Net`)**: `Void::Net` in VoidLibrary still requires external `Boost` + `OpenSSL` (`src/Net/module.cmake`), which are absent in minimal `dev cpp-gcc`. VBS keeps its zero-dependency POSIX loopback `HttpServer` (`registry/service/HttpServer.cpp`) and `RegistryClient` (`src/Package/RegistryClient.cpp`) until a Boost-free/minimal-dependency transport is desired or available in the base toolchain.
- **`VL-011b` (`Void::Sqlite`)**: `cmake/VoidDependency.cmake` disables network fetches during CMake configure (`VOID_FETCH_SQLITE3=OFF`) and opportunistically enables `Void::Sqlite` when system `SQLite3` is installed; `src/State/StateStore.cpp` continues providing crash-safe atomic-replace CAS persistence in minimal shells.
- **`VL-014` (Ed25519)**: `Void::Crypto` currently exposes only hashing (SHA-256/BLAKE2b). D3 SBOM emission is implemented in `src/Provenance/Sbom.cpp`, but package/binary signature verification is not faked with a weaker scheme: it waits for the upstream Ed25519 primitive requested in [Void/Library#36](https://git.faumaray.com/Void/Library/issues/36).