"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.
52 lines
No EOL
2.5 KiB
Markdown
52 lines
No EOL
2.5 KiB
Markdown
# OnionWire @TAG@
|
|
|
|
Prebuilt Linux binaries. No `tor` package required — Arti runs in-process.
|
|
|
|
```bash
|
|
# aarch64 (Raspberry Pi, ARM servers)
|
|
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/@TAG@/onionwire-aarch64-unknown-linux-gnu
|
|
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/@TAG@/onionwire-aarch64-unknown-linux-gnu.sha256
|
|
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/@TAG@/onionwire-aarch64-unknown-linux-gnu.minisig
|
|
sha256sum -c onionwire-aarch64-unknown-linux-gnu.sha256
|
|
chmod +x onionwire-aarch64-unknown-linux-gnu
|
|
|
|
# x86_64 (most PCs / VMs)
|
|
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/@TAG@/onionwire-x86_64-unknown-linux-gnu
|
|
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/@TAG@/onionwire-x86_64-unknown-linux-gnu.sha256
|
|
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/@TAG@/onionwire-x86_64-unknown-linux-gnu.minisig
|
|
sha256sum -c onionwire-x86_64-unknown-linux-gnu.sha256
|
|
chmod +x onionwire-x86_64-unknown-linux-gnu
|
|
|
|
./onionwire-<target> --version
|
|
```
|
|
|
|
Keep the asset filenames so `sha256sum -c` matches. The TLS stack is rustls and
|
|
OpenSSL (for SQLCipher) is compiled in from vendored sources, so the binaries
|
|
have no dynamic `libssl` dependency.
|
|
|
|
## Verify before you run it
|
|
|
|
A `.sha256` only proves your download matches this page. Both assets are also
|
|
signed with minisign, and every binary is reproducible from the tag.
|
|
|
|
```bash
|
|
# 1. The signature. Take the key from the repo, not from this page:
|
|
# a signature checked against a key fetched from the same place it is
|
|
# supposed to vouch for proves nothing.
|
|
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/raw/branch/main/scripts/onionwire-signing.pub
|
|
minisign -Vm onionwire-x86_64-unknown-linux-gnu -p onionwire-signing.pub
|
|
|
|
# 2. The bytes: rebuild this tag and compare, byte for byte.
|
|
git clone https://forgejo.siriusdevops.com/sirius/onionwire
|
|
cd onionwire && git fetch --tags
|
|
scripts/verify-reproducible.sh @TAG@
|
|
```
|
|
|
|
`build-info-<target>.txt`, attached to this release, records the commit, the
|
|
source date epoch, the toolchain and the builder image digest behind each hash —
|
|
so a mismatch can be diagnosed instead of merely reported.
|
|
|
|
Full walkthrough, including what these checks do and do not prove:
|
|
[`docs/VERIFY.md`](https://forgejo.siriusdevops.com/sirius/onionwire/src/branch/main/docs/VERIFY.md).
|
|
|
|
Building from source is covered in the README install guide. |