deps: bump the Arti tor-* set to 0.49 #214

Open
sirius wants to merge 1 commit from onionwire/t_0d6767f0-onionwire-210-arti-upstream-tor-cell-0.4 into main
Owner

tor-cell 0.46 → 0.49, and the rest of the Arti set with it. Closes #210.

crate before after
arti-client 0.46 0.49
tor-cell 0.46 0.49
tor-hsservice 0.46 0.49
tor-rtcompat 0.46 0.49
safelog (direct dep) 0.9 0.10

safelog is not part of the lockstep version number but must move with the set:
it is a direct dependency only for the DisplayRedacted trait, and a 0.9 trait is
a different type from the one HsId implements under 0.49 — without the bump
display_redacted / display_unredacted do not resolve. Noted in
docs/ARTI_UPGRADE.md so the next bump catches it.

The whole tor-* family moves together in Cargo.lock (36 packages), plus
Arti's new RustCrypto generation (curve25519-dalek 5, sha2 0.11, hmac/hkdf
0.13, x25519-dalek/ed25519-dalek 3) alongside our existing pins. cargo tree -d
goes from 116 duplicate entries on main to 135; +13 lockfile packages. Nothing in
our own crypto changed.

MSRV

Arti 0.49's floor is rustc 1.92 (0.46 was 1.91). Our declared floor stays
1.98 — the default cuprate-daemon graph still sets it (tapes →
VecDeque::pop_front_if) — so rust-version, RUST_IMAGE and the README
install floor are unchanged. Only the "Arti itself builds on …" notes in
Cargo.toml, README.md, docs/ARTI_UPGRADE.md, ci.yml and the SDK comment
move 1.91 → 1.92.

Upstream changes that could touch us — none of them do

  • Arti 2.7.0 (0.47): a large security batch — one high-severity fix
    (half-stream memory / dropped-cells side channel), six medium (consensus and
    diff decompression memory, parser strictness, dir-fetch header timeout,
    RESOLVED local-address leak), several low. This is the main reason to take the
    bump now, ahead of anything the watcher files. Breaking: arti-client dropped
    the ctor-keystore feature (unused here).
  • Arti 2.8.0 (0.48): TROVE-2026-069 (onion-service PoW descriptor-upload
    amplification / panic) and TROVE-2026-070 (bridge ID pinning panic), plus the
    RUSTSEC-2026-03xx / -04xx non-constant-time cluster. Breaking:
    tor-hsservice removed the deprecated onion_name() — we use
    onion_address(); tor-rtcompat::Runtime now requires JoinSetProvider — we
    use PreferredRuntime and implement no Runtime.
  • Arti 2.9.0 (0.49): secmem-proc 0.3.9 (Windows hardening), latest
    curve25519-dalek (AVX512), a dirmgr panic on consensus validity times, a
    replay-log memory leak, and a PoW rendezvous-queue eviction bug. Breaking:
    tor-cell's Begin API changed — we only decode Connected.

src/hs.rs's workarounds (PUBLISH_WAIT, CBT_MIN_TIMEOUT_MS /
CBT_INITIAL_TIMEOUT_MS, empty PREEMPTIVE_PREDICTED_PORTS, hs_is_ready
probe semantics) are untouched and their guard tests in tests/hs.rs pass.

Verification (real output, 0.49)

  • cargo test --locked — 577 passed, 0 failed (2 in-lib ignored, plus the
    live #[ignore] files).
  • cargo clippy --locked --all-targets -- -D warnings — clean.
  • cargo test --locked --test tor_hs -- --ignored --nocapture — ok, 106 s on the
    real Tor network: publish, probe-connect, byte pipe both ways, restart from
    persisted state, dormant path.
  • cargo test --locked --test two_node -- --ignored --nocapture — ok, 51 s live:
    hello wire arrives and is absent from both nodes' Arti state/cache dirs.
  • crates/onionwire-sdk: cargo check --locked --all-targets — ok (separate
    workspace and lockfile, bumped in the same commit).
  • scripts/build-android-local.sh — BUILD SUCCESSFUL in 22m 6s, aarch64:
    libonionwire_sdk.so 55,700,664 B built against tor-* 0.49, APK 34,631,938 B
    (0f2bf2f0…33a91ea), AAR 15,826,742 B, bundled wallet binary sha re-verified
    inside the APK.

Docs updated in the same PR: docs/ARTI_UPGRADE.md (pins + safelog note),
README.md, docs/THREAT_MODEL.md, docs/WALLET.md, SDK README/comment,
ci.yml comment. Dated spike/decision records left as written.

Do not merge — leaving that to Lance.

`tor-cell` 0.46 → 0.49, and the rest of the Arti set with it. Closes #210. | crate | before | after | |---|---|---| | `arti-client` | 0.46 | 0.49 | | `tor-cell` | 0.46 | 0.49 | | `tor-hsservice` | 0.46 | 0.49 | | `tor-rtcompat` | 0.46 | 0.49 | | `safelog` (direct dep) | 0.9 | 0.10 | `safelog` is not part of the lockstep version number but must move with the set: it is a direct dependency only for the `DisplayRedacted` trait, and a 0.9 trait is a *different type* from the one `HsId` implements under 0.49 — without the bump `display_redacted` / `display_unredacted` do not resolve. Noted in `docs/ARTI_UPGRADE.md` so the next bump catches it. The whole `tor-*` family moves together in `Cargo.lock` (36 packages), plus Arti's new RustCrypto generation (`curve25519-dalek` 5, `sha2` 0.11, `hmac`/`hkdf` 0.13, `x25519-dalek`/`ed25519-dalek` 3) alongside our existing pins. `cargo tree -d` goes from 116 duplicate entries on `main` to 135; +13 lockfile packages. Nothing in our own crypto changed. ## MSRV Arti 0.49's floor is rustc **1.92** (0.46 was 1.91). Our declared floor stays **1.98** — the default `cuprate-daemon` graph still sets it (`tapes` → `VecDeque::pop_front_if`) — so `rust-version`, `RUST_IMAGE` and the README install floor are **unchanged**. Only the "Arti itself builds on …" notes in `Cargo.toml`, `README.md`, `docs/ARTI_UPGRADE.md`, `ci.yml` and the SDK comment move 1.91 → 1.92. ## Upstream changes that could touch us — none of them do - **Arti 2.7.0** (0.47): a large security batch — one high-severity fix (half-stream memory / dropped-cells side channel), six medium (consensus and diff decompression memory, parser strictness, dir-fetch header timeout, RESOLVED local-address leak), several low. This is the main reason to take the bump now, ahead of anything the watcher files. Breaking: `arti-client` dropped the `ctor-keystore` feature (unused here). - **Arti 2.8.0** (0.48): `TROVE-2026-069` (onion-service PoW descriptor-upload amplification / panic) and `TROVE-2026-070` (bridge ID pinning panic), plus the RUSTSEC-2026-03xx / -04xx non-constant-time cluster. Breaking: `tor-hsservice` removed the deprecated `onion_name()` — we use `onion_address()`; `tor-rtcompat::Runtime` now requires `JoinSetProvider` — we use `PreferredRuntime` and implement no `Runtime`. - **Arti 2.9.0** (0.49): `secmem-proc` 0.3.9 (Windows hardening), latest `curve25519-dalek` (AVX512), a `dirmgr` panic on consensus validity times, a replay-log memory leak, and a PoW rendezvous-queue eviction bug. Breaking: `tor-cell`'s `Begin` API changed — we only decode `Connected`. `src/hs.rs`'s workarounds (`PUBLISH_WAIT`, `CBT_MIN_TIMEOUT_MS` / `CBT_INITIAL_TIMEOUT_MS`, empty `PREEMPTIVE_PREDICTED_PORTS`, `hs_is_ready` probe semantics) are untouched and their guard tests in `tests/hs.rs` pass. ## Verification (real output, 0.49) - `cargo test --locked` — **577 passed, 0 failed** (2 in-lib ignored, plus the live `#[ignore]` files). - `cargo clippy --locked --all-targets -- -D warnings` — clean. - `cargo test --locked --test tor_hs -- --ignored --nocapture` — ok, 106 s on the real Tor network: publish, probe-connect, byte pipe both ways, restart from persisted state, dormant path. - `cargo test --locked --test two_node -- --ignored --nocapture` — ok, 51 s live: `hello wire` arrives and is absent from both nodes' Arti state/cache dirs. - `crates/onionwire-sdk`: `cargo check --locked --all-targets` — ok (separate workspace and lockfile, bumped in the same commit). - `scripts/build-android-local.sh` — **BUILD SUCCESSFUL in 22m 6s**, aarch64: `libonionwire_sdk.so` 55,700,664 B built against tor-* 0.49, APK 34,631,938 B (`0f2bf2f0…33a91ea`), AAR 15,826,742 B, bundled wallet binary sha re-verified inside the APK. Docs updated in the same PR: `docs/ARTI_UPGRADE.md` (pins + safelog note), `README.md`, `docs/THREAT_MODEL.md`, `docs/WALLET.md`, SDK README/comment, `ci.yml` comment. Dated spike/decision records left as written. Do not merge — leaving that to Lance.
deps: bump the Arti tor-* set to 0.49
All checks were successful
ci / test (pull_request) Successful in 29m13s
ci / sdk (pull_request) Successful in 1m51s
android-ci / android (pull_request) Successful in 41m55s
0cacd41002
tor-cell, tor-hsservice, tor-rtcompat and arti-client move together from
0.46 to 0.49 (Arti 2.9.0). safelog 0.9 -> 0.10 follows the set: it is a
direct dependency only for `DisplayRedacted`, and the 0.9 trait is a
different type from the one `HsId` implements under 0.49.

MSRV: Arti 0.49 requires rustc 1.92 (was 1.91). The declared floor stays
1.98 -- the default `cuprate-daemon` graph is still what sets it -- so
`rust-version`, RUST_IMAGE and the README install floor are unchanged;
only the "Arti itself builds on X" notes move to 1.92.

Upstream changes that could touch us, none of which do:
- tor-hsservice dropped the deprecated `onion_name()`; we use
  `onion_address()`.
- tor-cell's `Begin` API changed; we only decode `Connected`.
- tor-rtcompat's `Runtime` grew a `JoinSetProvider` bound; we use
  `PreferredRuntime` and implement no Runtime.
The src/hs.rs workarounds (PUBLISH_WAIT, CBT floors, empty predicted
ports) are untouched and their guard tests still pass.

Verified:
- cargo test --locked: 577 passed, 0 failed
- cargo clippy --locked --all-targets -- -D warnings: clean
- cargo test --locked --test tor_hs -- --ignored: two-node publish,
  byte pipe, restart and dormant path ok (106s, live Tor network)
- cargo test --locked --test two_node -- --ignored: plaintext absent
  from both nodes' arti/cache dirs (51s, live Tor network)
- crates/onionwire-sdk: cargo check --locked --all-targets ok
All checks were successful
ci / test (pull_request) Successful in 29m13s
ci / sdk (pull_request) Successful in 1m51s
android-ci / android (pull_request) Successful in 41m55s
This pull request has changes conflicting with the target branch.
  • .forgejo/workflows/ci.yml
  • docs/ARTI_UPGRADE.md
  • docs/THREAT_MODEL.md
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_0d6767f0-onionwire-210-arti-upstream-tor-cell-0.4:onionwire/t_0d6767f0-onionwire-210-arti-upstream-tor-cell-0.4
git switch onionwire/t_0d6767f0-onionwire-210-arti-upstream-tor-cell-0.4

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_0d6767f0-onionwire-210-arti-upstream-tor-cell-0.4
git switch onionwire/t_0d6767f0-onionwire-210-arti-upstream-tor-cell-0.4
git rebase main
git switch main
git merge --ff-only onionwire/t_0d6767f0-onionwire-210-arti-upstream-tor-cell-0.4
git switch onionwire/t_0d6767f0-onionwire-210-arti-upstream-tor-cell-0.4
git rebase main
git switch main
git merge --no-ff onionwire/t_0d6767f0-onionwire-210-arti-upstream-tor-cell-0.4
git switch main
git merge --squash onionwire/t_0d6767f0-onionwire-210-arti-upstream-tor-cell-0.4
git switch main
git merge --ff-only onionwire/t_0d6767f0-onionwire-210-arti-upstream-tor-cell-0.4
git switch main
git merge onionwire/t_0d6767f0-onionwire-210-arti-upstream-tor-cell-0.4
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!214
No description provided.