Repository navigation
Release attestation, spec-lock evidence, static musl builds, Nix flake - #16
Draft
secsovereign wants to merge 1 commit into
Draft
secsovereign wants to merge 1 commit into
secsovereign wants to merge 1 commit into
Conversation
…Nix flake Each stable release now ships a verification bundle that maintainers can rebuild against and sign, and that operators can check with one script. - spec-evidence job: runs cargo spec-lock verify (strict, Z3, pinned 0.1.45) and check-drift on the blvm-consensus .crate that Cargo.lock pins, after checking the .crate against the lock checksum. verify failing blocks release. - release-attestation.sh: writes blvm-<tag>-attestation.json, build-config.json and a deterministic verification bundle (checksums, spec-lock report, spec file hashes). source_hash, build_config_hash and spec_hash tie it together. - Sigstore provenance now covers every release file, not only three binaries. - ci-build-musl.sh: static x86_64 and aarch64 musl builds via cargo-zigbuild with path remapping for Rust and C. Non-blocking until first green run. - release-bump-version.sh: one place for the version bump so rebuilds from a tag embed the same version string. - sign-release.sh (rewritten): checks provenance and the bundle, rebuilds the musl binaries from the tag, and signs with blvm-sign-binary only on a match. - verify-release.sh: checksums, provenance, bundle consistency, spec-lock result, and the maintainer threshold from the local release-keys/policy.json (no keys enrolled yet, threshold 0). - flake.nix and nix/module.nix: source build against Cargo.lock with the release feature set, and a hardened NixOS service. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PbsELQWoqXKfHJiFPi6vUy
Member
Author
|
Path: A lockfile bump in this repo can't fix it, since iroh 0.95 pins hickory 0.25. The fix is to move |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each stable release now ships a verification bundle that maintainers rebuild against and sign, and that operators check with one script. Details are in
docs/RELEASE_ATTESTATION.md.What changes in a release
spec-evidencejob, gates release). It reads theblvm-consensusversion and checksum fromCargo.lock, checks the downloaded.crateagainst that checksum, unpacks it, and runscargo spec-lock verify(strict, Z3, pinned 0.1.45 like blvm-consensus) andcheck-driftagainstblvm-specHEAD.verifyfailing blocks the release. Drift is recorded, not gating.blvm-<tag>-attestation.json,-build-config.json, and a deterministic-verification-bundle.tar.gz(checksums, spec-lock report and logs, spec file hashes).source_hash,build_config_hash, andspec_hashtie them together, and a maintainer signature covers all three plus the bundle hash.continue-on-erroruntil the first green run.scripts/release-bump-version.sh, so a rebuild from the tag embeds the same version string.Maintainer and operator tools
scripts/sign-release.sh, rewritten. The old script signed local artifacts without a rebuild check and was not referenced anywhere. The new one checks provenance and bundle consistency, confirmssource_hashand the post-bumpCargo.lockhash, rebuilds both musl binaries, and signs withblvm-sign-binary bundleonly if both hashes match.scripts/verify-release.shchecks checksums, provenance, bundle consistency, prints the spec-lock result, and checks the threshold in the localrelease-keys/policy.json.release-keys/policy.jsonhas no enrolled keys yet, so the threshold is 0 and signatures are reported as not enforced.Nix
flake.nixbuildsblvmfrom source againstCargo.lockwith the Linux release feature set and the toolchain fromrust-toolchain.toml.nixosModules.blvmruns it as a hardened systemd service.Tested here
spec-lock-evidence.shagainst the realblvm-consensus0.1.81 crate andblvm-specHEAD. 281 of 281 rows passed, drift clean, and the run took about a minute. That run found that spec-lock skips files under dot-directories such as~/.cargo, so the script unpacks the checked.crateto/tmp.release-attestation.shon staged files. Running it twice gives a byte-identical bundle.verify-release.shwith a stubbedghand realblvm-sign-binary/blvm-verify-binary0.1.23. 2-of-2 passes. One signature, a signature from an unenrolled key under an enrolled name, a signature over a differentspec_hash, a tampered binary, and an edited attestation all fail.buildsrunner label. The Nix files parse cleanly.Not tested here
sign-release.shrefuses to sign on a mismatch and points at diffoscope.nix buildandnix flake check, because Nix isn't available here. Runnix flake lockand commitflake.lock.sign-release.shend to end, which needs a published tag.Before merge
actions/upload-artifact@v5andactions/download-artifact@v5to commit SHAs like the other actions inci.yml.blvm-sdk'sblvm-sign-binarywrites"signer": hex("unknown")into signature files because the metadata has nosignerkey. Verification doesn't use it, but it is worth fixing in blvm-sdk.Generated by Claude Code