feat(install): sign installer archives with Ed25519 and checksums
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 3s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 9s

This commit is contained in:
faumaray committed 2026-12-05 05:36:11 +03:00
1 parent 9509c0691e
commit b55aca328a
8 files changed
+122 -10

No files matched your search

+2
View File
@@ -288,6 +288,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- **Wave 97 (Package Generators: ZIP & DEB)**: `vbs install --archive FILE --archive-format zip|deb` now supports a stored (uncompressed) deterministic ZIP and a Debian `ar` package (`debian-binary`, `control.tar`, `data.tar` with Package/Version/Architecture/Maintainer/Installed-Size/Description metadata). `dpkg-deb --info/--contents` validates the generated package. Tests assert the ZIP structure and parse/extract the DEB members.
- **Wave 98 (Signed Installer Archives)**: `vbs install --archive FILE --signing-key SEED` now writes `<archive>.sha256` (sha256sum format), `<archive>.sig` (Ed25519 detached signature hex) and `<archive>.pub` (signer key hex), and fails closed when no Ed25519 backend is available. The install test verifies the checksum prefix, the signature/key lengths, and the signature over the archive bytes when signing is available.
## Remaining future scope
- **Superiority plan ([22-superiority-and-gaps.md](../roadmap/22-superiority-and-gaps.md), 2026-12-05)**: revised platform strategy - **macOS deferred**, **Windows via MinGW-w64 cross-compilation + Wine execution** (`dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc`, `dev cpp-gcc -p wine64`), native MSVC deferred; plus packaging parity (ZIP/DEB/RPM), IDE ecosystem, migration tooling, test-runner parity, benchmarks, CI runners, and remote execution in prioritized order.
+1
View File
@@ -101,4 +101,5 @@ Base HEAD: `fe0d1a6`
| Wave 95 (Superiority plan) | Wrote `22-superiority-and-gaps.md`: gap inventory, revised platforms (macOS deferred; Windows via MinGW-w64 + Wine; native MSVC deferred), CMake/Meson/build2 parity table, differentiators, priority order, acceptance gates; refreshed stale roadmap statuses | PLAN WRITTEN (implementation pending) | `docs/roadmap/22-superiority-and-gaps.md`, `docs/roadmap/{README,20,21}.md`, `STATE.md` |
| Wave 96 (Wine-first Windows target) | MinGW-w64 cross discovery, PE artifact naming, `--target-os/--target-arch`, Wine test runner | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Windows target cross-build + Wine test pass; full CTest 8/8) | `src/Toolchain/Driver.cpp`, `src/Graph/Graph.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
| Wave 97 (ZIP & DEB generators) | `--archive-format zip|deb`: stored ZIP and Debian ar package with metadata; tested structurally and validated with real `dpkg-deb` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; install test passes, full CTest 8/8) | `include/Void/Build/Install/Installer.hpp`, `src/Install/Installer.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
| Wave 98 (Signed installer archives) | `--signing-key` writes `.sha256`/`.sig`/`.pub` for the installer archive and fails closed without a backend | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; install test passes, full CTest 8/8) | `include/Void/Build/Install/Installer.hpp`, `src/Install/Installer.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
| Future (Plan 20 Slice 3 / Tracks C, E3 editor extensions) |"}] Live `conan` CLI verification; macOS/Windows/cross-compile; binary-variant signing and key distribution; daemon-side dependency materialization and editor plugins; `Void::Net`/`Void::Sqlite` alignment | PLANNED (unimplemented) | [21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md), [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) |
+10
View File
@@ -1389,6 +1389,16 @@ dev cpp-gcc -c ctest --test-dir build/pinned --output-on-failure
the native package metadata.
- Install test: **passed** (6.45 s); full CTest: **8 / 8 passed** in 282.16 s.
## Signed Installer Archives (GCC 16.2, pin `0002e74`)
- `vbs install --archive FILE --signing-key SEED` writes `FILE.sha256` (sha256sum format),
`FILE.sig` (128-hex Ed25519 signature) and `FILE.pub` (64-hex signer key); without an Ed25519
backend it fails closed instead of silently skipping.
- `foreign_cmake_meson_providers_bridge_and_relocatable_install`: **passed** (7.16 s) - when
signing is available the checksum prefix, 129/65-byte signature/key files, and the signature
over the archive bytes are verified; otherwise the failure path is asserted.
- Full CTest: **8 / 8 passed** in 281.48 s.
## 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).