feat(package): add registry binary-variant client API and vbs publish-binary
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 5s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 27s

This commit is contained in:
faumaray committed 2026-12-03 21:04:48 +03:00
1 parent 663215f7f3
commit 8245a209a5
10 files changed
+290 -2

No files matched your search

+4
View File
@@ -132,6 +132,10 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- `vbs-registry` now stores per-release binary variants (`BinaryReleaseMeta` in `ReleaseMeta`): `PUT /api/v1/packages/<name>/<version>/binaries/<variant>` (publish scope + CSRF, 128-byte bounded variant ids, upload/quota limits, optional `X-Binary-Signature`/`X-Binary-Public-Key` with 128/64-hex validation, idempotent same-digest and 409 immutable conflicts) and `GET .../binaries/<variant>/download` (read permission, CAS integrity re-verification). Metadata persists in the registry database and is listed in package detail JSON.
- `RegistryTests.registry_binary_variant_publish_download_and_materialize`: unauthorized publish rejected, malformed signature rejected, signed artifact published and listed, downloaded byte-for-byte, conflicting digest rejected, and the registry-served artifact materialized through the signed `materialize_binary_variant` path.
- **Wave 29 (RegistryClient Binary-Variant API & Signed CLI Publish)**:
- Added `Package::publish_binary_variant` (reads the artifact, computes SHA-256, optionally signs the canonical binary message with `--signing-key`, sends `X-Binary-Signature`/`X-Binary-Public-Key`) and `Package::fetch_binary_variants` (parses a release's binary list from the registry detail JSON) in `RegistryClient`.
- Wired `vbs publish-binary --registry --name --version --variant --file [--signing-key] [--token-env]` into `src/Main.cpp`; the registry binary-variant test now publishes/lists through the client API in addition to the loopback endpoint checks.
## Remaining future scope
- **Post-v1 Expansion Roadmap ([21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) & [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Live `conan` CLI verification (Track B3), Track C (macOS/Windows ports + dual-profile cross-compilation), Track D3 signing (SBOM, Ed25519 primitives, trusted-key enforcement and distribution, binary-variant signing and distribution materialization, the #52 built-in-backend capability probe, and the VoidLibrary pin bump to `0002e74` done), Track E3 (daemon core, bounded `describe`, build-serving, dependency materialization, daemon-backed IDE metadata, compdb export, IDE config generation, editor watch poll and bounded long-poll done; dedicated external editor plugins remain), and Track E4 (`Void::Net`/`Void::Sqlite` alignment) remain planned scope.