docs: point the docs at v0.5.0 and explain why a download 404s or 403s
All checks were successful
android-ci / android (pull_request) Successful in 12m20s

README, android/README, VERIFY and the two release scripts all named v0.14.0,
a version that was never tagged or released - the newest tag is v0.4.0, so the
documented download URLs were dead. Align them with the version this release
cuts (minor bump off v0.4.0 -> v0.5.0).

VERIFY.md gains a Check 0: /releases/latest/download/... is not served by this
Forgejo (404, pin the tag), and Cloudflare answers a non-browser User-Agent with
403 error code 1010 even on a correct URL (measured: browser 206, curl 206,
Python-urllib 403).
This commit is contained in:
sirius 2026-10-20 19:51:50 -04:00
commit 57d1bb0bd2
No known key found for this signature in database
5 changed files with 30 additions and 15 deletions

View file

@ -3,7 +3,7 @@
Lean Tor messenger: one Rust process (ratatui + Noise IK + sqlite + in-process Arti).
No hosted server. Identity is an ed25519 public key; the onion is only a locator.
Current tagged release: **v0.14.0**. Linux TUI + Android SDK/APK. Two people add
Current tagged release: **v0.5.0**. Linux TUI + Android SDK/APK. Two people add
each other with an `onionwire:v2:…` invite string (`F2` share / `F3` paste;
~1.9 KB because it carries an ML-KEM-768 key). There is no invite QR graphic.
Chat is Noise IK over your own v3 onion; when the friend was added from a v2
@ -61,8 +61,8 @@ resulting hash) next to its `.sha256`.
**x86_64:**
```bash
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/v0.14.0/onionwire-x86_64-unknown-linux-gnu
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/v0.14.0/onionwire-x86_64-unknown-linux-gnu.sha256
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/v0.5.0/onionwire-x86_64-unknown-linux-gnu
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/v0.5.0/onionwire-x86_64-unknown-linux-gnu.sha256
sha256sum -c onionwire-x86_64-unknown-linux-gnu.sha256
chmod +x onionwire-x86_64-unknown-linux-gnu
./onionwire-x86_64-unknown-linux-gnu --version
@ -71,8 +71,8 @@ chmod +x onionwire-x86_64-unknown-linux-gnu
**aarch64:**
```bash
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/v0.14.0/onionwire-aarch64-unknown-linux-gnu
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/v0.14.0/onionwire-aarch64-unknown-linux-gnu.sha256
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/v0.5.0/onionwire-aarch64-unknown-linux-gnu
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/v0.5.0/onionwire-aarch64-unknown-linux-gnu.sha256
sha256sum -c onionwire-aarch64-unknown-linux-gnu.sha256
chmod +x onionwire-aarch64-unknown-linux-gnu
./onionwire-aarch64-unknown-linux-gnu --version
@ -134,7 +134,7 @@ system OpenSSL headers or `pkg-config` are required — Arti's TLS backend is
`rustls`.
The crate version in `Cargo.toml` is **not** bumped by the release workflow. The
tag (`v0.14.0`) is the version users download; `onionwire --version` prints
tag (`v0.5.0`) is the version users download; `onionwire --version` prints
`CARGO_PKG_VERSION` from the tree that was built.
### Two instances on one machine
@ -441,7 +441,7 @@ Forgejo release.
```bash
scripts/build-android-local.sh # -> dist/, with .sha256
PUBLISH_TAG=v0.14.0 scripts/build-android-local.sh # + upload to that release
PUBLISH_TAG=v0.5.0 scripts/build-android-local.sh # + upload to that release
```
## Releases (maintainers)
@ -461,7 +461,7 @@ Actions → **release** → Run workflow:
Then dispatch **android-release** with `tag=<that tag>` to attach the APK + AAR.
```bash
FORGEJO_TOKEN=<pat> scripts/build-release-local.sh v0.14.0
FORGEJO_TOKEN=<pat> scripts/build-release-local.sh v0.5.0
```
Do not run `cargo publish`; `publish = false`.

View file

@ -61,7 +61,7 @@ Or from the repo root, with checksums and an optional publish step:
```bash
scripts/build-android-local.sh # -> dist/onionwire-<v>-android-arm64-v8a.apk
PUBLISH_TAG=v0.14.0 scripts/build-android-local.sh
PUBLISH_TAG=v0.5.0 scripts/build-android-local.sh
```
The script re-verifies `android/monero-binaries.sha256` before Gradle, then
@ -310,7 +310,7 @@ workflow first):
just created), `dry_run=false`.
2. The Android job **checks out that tag** (`ref:` is the tag, not `main`) and
stamps `versionName` / `versionCode` from it.
3. `versionCode` is `major*10000 + minor*100 + patch` (so 0.14.0 → 1400).
3. `versionCode` is `major*10000 + minor*100 + patch` (so 0.5.0 → 500).
4. Publish is a second job on the Pi runner (`docker`). It attaches
`onionwire-<version>-android-arm64-v8a.apk`, `onionwire-sdk-<version>.aar`,
and both `.sha256` files to **that same tag**.

View file

@ -60,6 +60,21 @@ is the code described above, and not something else.
---
## Check 0 — first, get the file, and know why a download can fail
Two things break a download from this host, and neither means the release is
missing:
- **`/releases/latest/download/…` is not served by this Forgejo — it is a 404.**
The GitHub habit fails here. Always pin the tag:
`…/releases/download/v0.5.0/onionwire-x86_64-unknown-linux-gnu`.
- **Cloudflare in front of the Forgejo rejects non-browser User-Agents.** A
script that sends a default library UA gets `HTTP 403` with the body
`error code: 1010` — even with a correct tag and URL. Measured against a real
asset on this host: browser UA → `206`, `curl/8.7.1` → `206`,
`Python-urllib/3.14` → `403`. Set a real `User-Agent` on any scripted fetch,
or use `curl`.
## Check 1 — 30 seconds: what code is even in the binary
From a clone, on whatever commit you are interested in:
@ -142,10 +157,10 @@ is public": *the binary I downloaded might not be that source.*
git clone https://forgejo.siriusdevops.com/sirius/onionwire
cd onionwire
git fetch --tags
scripts/verify-reproducible.sh v0.14.0
scripts/verify-reproducible.sh v0.5.0
```
Replace `v0.14.0` with the tag you are checking. You need docker; you do not
Replace `v0.5.0` with the tag you are checking. You need docker; you do not
need Rust, or the right glibc, or the right distro. The rebuild happens inside
the same builder image, pinned **by digest**, that CI uses, with the source
paths, the target path, and `SOURCE_DATE_EPOCH` all fixed by

View file

@ -2,7 +2,7 @@
# Offline fallback: build and publish the x86_64 release asset from this host
# when CI (.forgejo/workflows/release.yml) cannot be used.
#
# Usage: MINISIGN_SECRET_KEY=... FORGEJO_TOKEN=... scripts/build-release-local.sh v0.14.0
# Usage: MINISIGN_SECRET_KEY=... FORGEJO_TOKEN=... scripts/build-release-local.sh v0.5.0
#
# It runs the SAME recipe CI runs, inside the same digest-pinned builder image,
# so the asset it publishes is one a verifier can reproduce. A plain host

View file

@ -5,8 +5,8 @@
# Usage:
# scripts/verify-reproducible.sh <tag> [published .sha256 file or URL]
#
# ./scripts/verify-reproducible.sh v0.14.0
# ./scripts/verify-reproducible.sh v0.14.0 /path/to/onionwire-x86_64-unknown-linux-gnu.sha256
# ./scripts/verify-reproducible.sh v0.5.0
# ./scripts/verify-reproducible.sh v0.5.0 /path/to/onionwire-x86_64-unknown-linux-gnu.sha256
#
# Why this exists: "the source is public" is not a check anyone can run. This
# is. It rebuilds the tag's exact tree inside the same pinned builder image CI