feat(provenance): enforce trusted Ed25519 package signatures in publish, lockfile, and locked builds
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 3s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 10s

This commit is contained in:
faumaray committed 2026-12-03 17:57:20 +03:00
1 parent 21babb8c31
commit 85f2ae274f
21 files changed
+519 -15

No files matched your search

+28
View File
@@ -267,6 +267,34 @@ dev cpp-gcc -c ctest --test-dir build/bootstrap -R vbs_cli_contract --output-on-
and 200 bytes per name; `profile` rejects empty, non-string, and > 128-byte values; `compiler`
rejects non-string and unknown values; workspace roots are rejected.
## Track D3 Signed-Package Enforcement (2026-12-03, `dev cpp-gcc`)
Environment: GCC 16.2.0, CMake 4.5.0, Ninja 1.13.2, VoidLibrary pin
`3e254055e081a104f08df68dde39711bc7813518` exported read-only to `/tmp/opencode/vl-pin`. The
OpenSSL-backed runs use the separate `build/openssl` configure against Nix OpenSSL 3.5.9.
```sh
dev cpp-gcc -c cmake --build build/bootstrap --parallel 8
dev cpp-gcc -c ctest --test-dir build/bootstrap --output-on-failure
dev cpp-gcc -c build/openssl/bin/vbs_v1_tests --suite Signing --no-color
dev cpp-gcc -c build/openssl/bin/vbs_v1_tests --suite SignatureEnforcement --no-color
dev cpp-gcc -c build/openssl/bin/vbs_registry_tests --filter cli_publish_deps_resolve_and_locked_build_against_live_registry --no-color
```
- Default build: exit 0. Full CTest: **8 / 8 passed** in 192.70 s (`vbs_v1_tests` 70.37 s,
`vbs_selfhost_tests` 91.77 s, `vbs_registry_tests` 10.11 s, `vbs_cli_contract` 7.47 s).
- `SignatureEnforcement` (default, no OpenSSL): **3 / 3 passed** - lockfile signature fields
round-trip and are omitted when absent; empty/missing/untrusted-key policy decisions; the crypto
case self-skips. With OpenSSL: **3 / 3 passed** including `Verified` and `InvalidSignature`.
- `Signing` with OpenSSL: **4 / 4 passed** (Ed25519 round-trip, tamper/wrong-key rejection).
- Registry metadata: publish with valid `X-Package-Signature`/`X-Package-Public-Key` is served back
in the package detail JSON; 127-hex signature and signature-without-key both return HTTP 400.
- Signed end-to-end (OpenSSL `vbs` CLI, `RegistryTests.cli_publish_deps_resolve_and_locked_build_against_live_registry`):
**passed** - `vbs publish --signing-key` -> `vbs deps update` -> `vbs build --locked
--trusted-public-key <key>` succeeds; the same locked build with an unrelated trusted key fails
closed (and the unsigned locked package also fails closed with `not signed by a trusted key`).
- `clang-format --dry-run --Werror` passes on all changed/new C++ files.
## Limits and Unrun Checks
1. **HTTPS git fetch**: the host shell is proxy-restricted, but the Docker container could clone `https://git.faumaray.com/Void/VoidLibrary.git`; the pinned commit `3e254055e081a104f08df68dde39711bc7813518` was fetched directly for the verification above. A separate configure against the local `/home/faumaray/Projects/Library` checkout via `VBS_VOID_SOURCE_DIR` also succeeded (development-only override, checkout unmodified).