release: reproducible builds, and sign every asset
All checks were successful
android-ci / android (pull_request) Successful in 12m34s
ci / test (pull_request) Successful in 13m28s
ci / sdk (pull_request) Successful in 1m13s

"The source is public" is not a check anyone can run, and against a Tor +
Monero tool the surviving objection is that the released binary might not be
that source. This makes the build checkable instead of trusted.

- scripts/reproducible-build.sh is the single definition of a release build:
  digest-pinned builder image, fixed in-container paths, SOURCE_DATE_EPOCH
  from the released commit, --locked, its own apt build deps, and RUSTFLAGS
  replaced rather than extended. The fixed paths are load-bearing: rustc's
  --remap-path-prefix cannot reach absolute paths compiled in by a C
  toolchain, and this graph always has one (rusqlite compiles OpenSSL from
  vendored sources; the default cuprate-daemon adds RandomX and cmake). It
  also records toolchain versions in build-info, because the apt build deps
  are not digest-pinned the way the image is.
- release.yml pins the image by digest, resolves SOURCE_DATE_EPOCH from the
  tag's commit, runs that recipe, and uploads build-info-<target>.txt beside
  the binary. The cargo target volume is created per run and removed, so the
  published artifact cannot come out of a cache that a verifier does not have.
- scripts/verify-reproducible.sh rebuilds a tag in the same pinned image and
  compares bytes against the release asset. Two fresh builds of the same tree
  in that image produce identical sha256.
- scripts/sign-release.sh signs with minisign and verifies its own signature
  against the committed public key. The publish job signs BEFORE publishing
  and fails closed without MINISIGN_SECRET_KEY, so nothing unsigned reaches
  the release page: an unsigned release is indistinguishable from a signed
  one to anyone who is not checking. Checked: signature accepted by an
  independent minisign -V, a tampered file rejected, a missing key refused,
  a missing public key refused.
- build-release-local.sh runs the same container and the same recipe. A host
  cargo build would publish a hash nobody could reproduce, which is worse
  than having no fallback at all.
- docs/VERIFY.md is the verifier-facing walkthrough: the dependency graph and
  where its HTTP actually comes from, the wallet's real seed-read exposure,
  the rebuild check, the signature check, and an explicit list of what none
  of it proves.
- Cargo.toml repository: point at the Forgejo instance that hosts this and
  builds its releases.

Needs a MINISIGN_SECRET_KEY secret before the next release; without it the
publish job stops by design. docs/RELEASING.md has the keygen procedure.
This commit is contained in:
agent 2026-10-11 12:20:08 -04:00
commit 601f640f78
No known key found for this signature in database
11 changed files with 962 additions and 76 deletions

View file

@ -19,7 +19,8 @@ Arti and publishes its own v3 onion. There is no C-tor fallback.
[threat model](docs/THREAT_MODEL.md) · [audit notes](docs/SECURITY_AUDIT.md)
(in-house, **not** a third-party audit). Index: [docs/README.md](docs/README.md).
TUI keys: [docs/TUI.md](docs/TUI.md). Wallet: [docs/WALLET.md](docs/WALLET.md).
Releases: [docs/RELEASING.md](docs/RELEASING.md).
Releases: [docs/RELEASING.md](docs/RELEASING.md). Verifying a download:
[docs/VERIFY.md](docs/VERIFY.md).
## Install
@ -46,6 +47,13 @@ The Android APK + AAR attach to **the same tag** by a second dispatch of
`android-release` with `tag=<that tag>`. Policy: [docs/RELEASING.md](docs/RELEASING.md).
This Forgejo does not serve `/releases/latest/download/…` (404); pin the tag.
Every asset is signed with minisign, and every binary is reproducible from its
tag: pin the builder image by digest, fix the build paths and `SOURCE_DATE_EPOCH`,
and the published hash can be rebuilt and compared by anyone. Before running a
download, read [docs/VERIFY.md](docs/VERIFY.md). Each release carries
`build-info-<target>.txt` (commit, epoch, toolchain, builder image digest,
resulting hash) next to its `.sha256`.
**x86_64:**
```bash