deps: bump Arti crates 0.46 -> 0.49 (lockstep) #215

Open
sirius wants to merge 1 commit from onionwire/t_121597cb-onionwire-211-arti-upstream-tor-hsservic into main
Owner

Bumps the Arti set in lockstep: arti-client, tor-cell, tor-hsservice, tor-rtcompat 0.46 -> 0.49 (Arti 2.9.0), plus the SDK workspace's arti-client requirement and its lockfile.

Closes #211.

What moved

  • Cargo.toml: four Arti requirements 0.46 -> 0.49, safelog 0.9 -> 0.10.
  • Cargo.lock: whole tor-* family to 0.49.0 (the lockstep check in docs/ARTI_UPGRADE.md); Arti also pulled its newer crypto set (ed25519-dalek 3, curve25519-dalek 5.1, x25519-dalek 3, sha2 0.11) as separate graph entries — OnionWire's own dalek/hkdf/hmac/sha2 pins are untouched and do not cross types with Arti.
  • crates/onionwire-sdk: arti-client 0.49 + refreshed own Cargo.lock (separate workspace; CI builds it, so it must be in sync).
  • Docs/comments that state the pin: docs/ARTI_UPGRADE.md (table, MSRV, new safelog note), README.md, docs/THREAT_MODEL.md, docs/WALLET.md, src/cuprate.rs / src/wallet_child.rs comments, ci.yml floor comment.

safelog is part of the set. Arti 0.49 depends on safelog 0.10; HsId: DisplayRedacted comes from that crate, so leaving the direct 0.9 pin made id.display_redacted() a "multiple different versions of crate safelog" error. Same API, version-only change.

MSRV

Arti 0.49 requires rustc 1.92 (0.46: 1.91). The repo floor stays 1.98 (cuprate-daemon default graph, VecDeque::pop_front_if), so rust-version and RUST_IMAGE do not move.

Upstream changes that touch src/hs.rs

Read from the Arti changelog (2.7/2.8) and the 0.49 crate sources:

  • tor-hsservice 0.49 keeps publish::reactor::OVERALL_UPLOAD_TIMEOUT at 5 min, so PUBLISH_WAIT (360s) still covers an HsDir retry round.
  • status::State is unchanged (same seven variants), so hs_is_ready semantics still hold.
  • tor-config 0.49's Listen is still IP-only (new_localhost/new_localhost_optional, no AF_UNIX), so the .onion-daemon SOCKS child stays TCP loopback.
  • 2.7 fixed several low/medium onion-service issues (TROVE-2026-063 debug-build underflow panic, descriptor-upload retry loops, LZMA dictionary cap, half-stream handling); 2.8 fixed a keystore identity-key deletion bug and added hs_ntor defense-in-depth.

Tests (all run on this tree, rustc 1.98.1)

  • cargo test --locked — all suites pass (38 test binaries; lib 173 passed, 0 failed, 2 ignored).
  • cargo clippy --locked --all-targets -- -D warnings — clean.
  • crates/onionwire-sdk: cargo test --locked and cargo clippy --locked --all-targets -- -D warnings — clean.
  • Live network: cargo test --locked --test tor_hs -- --ignored --nocapture — ok (two nodes bootstrap, both onions publish, echo both ways, restart keeps the locator, dormant -> wake accept in 1.0s).
  • Live network: cargo test --locked --test two_node -- --ignored --nocapture — ok (encrypted send delivered; message body absent from both Arti state/cache dirs — the ciphertext claim still holds).
  • scripts/build-android-local.sh — exit 0, APK 34.6 MB + AAR 15.8 MB built against Arti 0.49 with rustls/static-sqlite (no system OpenSSL).

Note: the live tests print tor_circmgr: Unable to flush state on circuit manager drop ... arti/state not found at teardown. That is the harness dropping its TempDir before the Tor clients; impl Drop for CircMgr exists in 0.46 too, so it is not a 0.49 regression.

Not done here: no release cut, no main push. Releases stay manual and batched.

Bumps the Arti set in lockstep: `arti-client`, `tor-cell`, `tor-hsservice`, `tor-rtcompat` **0.46 -> 0.49** (Arti 2.9.0), plus the SDK workspace's `arti-client` requirement and its lockfile. Closes #211. ## What moved - `Cargo.toml`: four Arti requirements 0.46 -> 0.49, `safelog` 0.9 -> 0.10. - `Cargo.lock`: whole `tor-*` family to 0.49.0 (the lockstep check in `docs/ARTI_UPGRADE.md`); Arti also pulled its newer crypto set (`ed25519-dalek` 3, `curve25519-dalek` 5.1, `x25519-dalek` 3, `sha2` 0.11) as separate graph entries — OnionWire's own dalek/hkdf/hmac/sha2 pins are untouched and do not cross types with Arti. - `crates/onionwire-sdk`: `arti-client` 0.49 + refreshed own `Cargo.lock` (separate workspace; CI builds it, so it must be in sync). - Docs/comments that state the pin: `docs/ARTI_UPGRADE.md` (table, MSRV, new `safelog` note), `README.md`, `docs/THREAT_MODEL.md`, `docs/WALLET.md`, `src/cuprate.rs` / `src/wallet_child.rs` comments, `ci.yml` floor comment. **safelog is part of the set.** Arti 0.49 depends on safelog 0.10; `HsId: DisplayRedacted` comes from that crate, so leaving the direct 0.9 pin made `id.display_redacted()` a "multiple different versions of crate `safelog`" error. Same API, version-only change. ## MSRV Arti 0.49 requires rustc **1.92** (0.46: 1.91). The repo floor stays **1.98** (`cuprate-daemon` default graph, `VecDeque::pop_front_if`), so `rust-version` and `RUST_IMAGE` do not move. ## Upstream changes that touch `src/hs.rs` Read from the Arti changelog (2.7/2.8) and the 0.49 crate sources: - `tor-hsservice` 0.49 keeps `publish::reactor::OVERALL_UPLOAD_TIMEOUT` at **5 min**, so `PUBLISH_WAIT` (360s) still covers an HsDir retry round. - `status::State` is unchanged (same seven variants), so `hs_is_ready` semantics still hold. - `tor-config` 0.49's `Listen` is still IP-only (`new_localhost`/`new_localhost_optional`, no AF_UNIX), so the `.onion`-daemon SOCKS child stays TCP loopback. - 2.7 fixed several low/medium onion-service issues (TROVE-2026-063 debug-build underflow panic, descriptor-upload retry loops, LZMA dictionary cap, half-stream handling); 2.8 fixed a keystore identity-key deletion bug and added hs_ntor defense-in-depth. ## Tests (all run on this tree, rustc 1.98.1) - `cargo test --locked` — **all suites pass** (38 test binaries; lib 173 passed, 0 failed, 2 ignored). - `cargo clippy --locked --all-targets -- -D warnings` — clean. - `crates/onionwire-sdk`: `cargo test --locked` and `cargo clippy --locked --all-targets -- -D warnings` — clean. - Live network: `cargo test --locked --test tor_hs -- --ignored --nocapture` — **ok** (two nodes bootstrap, both onions publish, echo both ways, restart keeps the locator, dormant -> wake accept in 1.0s). - Live network: `cargo test --locked --test two_node -- --ignored --nocapture` — **ok** (encrypted send delivered; message body absent from both Arti state/cache dirs — the ciphertext claim still holds). - `scripts/build-android-local.sh` — **exit 0**, APK 34.6 MB + AAR 15.8 MB built against Arti 0.49 with `rustls`/`static-sqlite` (no system OpenSSL). Note: the live tests print `tor_circmgr: Unable to flush state on circuit manager drop ... arti/state not found` at teardown. That is the harness dropping its `TempDir` before the Tor clients; `impl Drop for CircMgr` exists in 0.46 too, so it is not a 0.49 regression. Not done here: no release cut, no `main` push. Releases stay manual and batched.
deps: bump Arti crates 0.46 -> 0.49 (lockstep)
All checks were successful
ci / test (pull_request) Successful in 28m59s
ci / sdk (pull_request) Successful in 3m41s
android-ci / android (pull_request) Successful in 24m29s
e95f5e1390
arti-client, tor-cell, tor-hsservice and tor-rtcompat move together to
0.49.0 (Arti 2.9.0). The SDK's separate workspace gets the same
arti-client requirement and its own refreshed lockfile.

safelog goes 0.9 -> 0.10 with them: Arti 0.49 depends on safelog 0.10, and
HsId's DisplayRedacted impl comes from that crate, so the old direct pin
made `HsId::display_redacted` unusable ("multiple different versions of
crate safelog" in src/hs.rs).

MSRV: Arti 0.49 needs rustc 1.92 (0.46 needed 1.91). The repo floor stays
1.98 for the default cuprate-daemon graph; only the comments and
docs/ARTI_UPGRADE.md move.

Upstream changes that touch us: tor-hsservice 0.49 keeps
OVERALL_UPLOAD_TIMEOUT at 5 min (PUBLISH_WAIT 360s still covers it) and
`status::State` is unchanged, so every workaround in src/hs.rs still
holds. tor-config 0.49's `Listen` is still IP-only, so the `.onion` daemon
SOCKS child stays TCP loopback.
All checks were successful
ci / test (pull_request) Successful in 28m59s
ci / sdk (pull_request) Successful in 3m41s
android-ci / android (pull_request) Successful in 24m29s
This pull request has changes conflicting with the target branch.
  • .forgejo/workflows/ci.yml
  • docs/ARTI_UPGRADE.md
  • docs/THREAT_MODEL.md
  • src/wallet_child.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin onionwire/t_121597cb-onionwire-211-arti-upstream-tor-hsservic:onionwire/t_121597cb-onionwire-211-arti-upstream-tor-hsservic
git switch onionwire/t_121597cb-onionwire-211-arti-upstream-tor-hsservic

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff onionwire/t_121597cb-onionwire-211-arti-upstream-tor-hsservic
git switch onionwire/t_121597cb-onionwire-211-arti-upstream-tor-hsservic
git rebase main
git switch main
git merge --ff-only onionwire/t_121597cb-onionwire-211-arti-upstream-tor-hsservic
git switch onionwire/t_121597cb-onionwire-211-arti-upstream-tor-hsservic
git rebase main
git switch main
git merge --no-ff onionwire/t_121597cb-onionwire-211-arti-upstream-tor-hsservic
git switch main
git merge --squash onionwire/t_121597cb-onionwire-211-arti-upstream-tor-hsservic
git switch main
git merge --ff-only onionwire/t_121597cb-onionwire-211-arti-upstream-tor-hsservic
git switch main
git merge onionwire/t_121597cb-onionwire-211-arti-upstream-tor-hsservic
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/onionwire!215
No description provided.