Skip to content

deps: clear the audit, drop the tokio cap, and take the week's patch batch - #766

Merged
jaredLunde merged 1 commit into
mainfrom
capy/clear-the-audit-drop
Nov 30, 2026
Merged

jaredLunde merged 1 commit into
mainfrom
capy/clear-the-audit-drop

Conversation

@jaredLunde

Copy link
Copy Markdown
Contributor

Weekly dependency pass. Security first: the audit was failing on main, and one advisory was fixable by moving a dependency we own.

The audit was red. RUSTSEC-2026-0620 (published 2026-11-29) flags curve25519-dalek 4.1.3: scalar multiplication can return a wrong result in the AVX-512 backend. It reaches the tree only through ed25519-dalek ^2 holders — nkeys 0.4.5, via async-nats 0.53's default nkeys feature, and our own x25519-dalek 2. Moving ours to dalek 3/5 would not clear it, because nkeys pins ^2 independently, so the fix is upstream. It is not exposed here: for 4.0.0–4.1.3 the buggy backend is only compiled by a nightly rustc, and everything we build is stable (workspace rust-version is 1.92, mise pins 1.92, no cargo config or CI job or Dockerfile passes --cfg curve25519_dalek_backend, -C target-cpu=native or +avx512ifma). The ignore carries that reasoning, per-advisory, in the style the file already uses.

Five ignores became unnecessary, and are gone. beyond-slipstream 0.10.4 → 0.11.0 moves it to async-nats ^0.53, which is the fix path the config itself named. rustls-webpki 0.102.8 and webpki-roots 0.26.11 leave the lockfile entirely — the five rustls-webpki advisories (0382, 0104, 0098, 0099, 0049) no longer have a crate to apply to, and the NATS path now verifies through rustls-webpki 0.103.17.

Thirteen more were stale. pingora 0.9.1, already in the lockfile, requires zstd >= 0.14.3 / zstd-safe >= 8.2.0; zstd 0.13 has not been in the tree for some time, so the 0391/0395–0406 block was matching nothing. Removing it keeps the audit strict for the next zstd advisory instead of pre-suppressing it.

Net: 18 ignores deleted, 1 added, and cargo audit exits clean (0 vulnerabilities; the one remaining warning is chrono, pulled by schemars ← rmcp, not denied).

tokio 1.54.1 (was pinned >=1.53.3, <1.54). The ceiling existed because pingora-core 0.9.0 passed capacity 0 to BufReader::with_capacity, which 1.54 asserts against; pingora 0.9.1 fixed exactly that (cloudflare/pingora#1059). Both comments that documented the cap — the workspace and crates/execd — now say why it is gone, and the 1.53.3 advisory floor stays as the caret floor.

In-range patch batch (33 packages): rmcp 3.12.0 and rmcp-macros 3.12.0 (list_all pagination cap, SSE resume cache retention, 404 on an SSE resume, unknown capability fields kept, same-origin issuer acceptance; it also makes chrono optional behind a feature), hyper 1.13.0, h2 0.4.21, zstd 0.14.5 with zstd-sys 2.2.0, clap 4.6.10, blake3 1.8.8, zerocopy 0.8.66, sha2 0.11.2, toml 1.2.3, cc 1.12.0, process-wrap 10.0.2, and smaller others.

Docs. Two version claims in crates/gateway/ARCHITECTURE.md are pinned to versions we no longer build: the NATS silent-death detection note now names async-nats 0.53 (MAX_PENDING_PINGS is still 2 and the ping interval still 60s, so the three-minute bound is unchanged), and the BODY_BUF_LIMIT note names pingora 0.9.1 (still 64 KiB, still no knob).

Verification

Check Result
cargo audit (0.22.1, advisory DB of 2026-11-30) 0 vulnerabilities, 1 unmaintained warning
cargo clippy --all-targets --locked -- -D warnings, pinned Rust 1.92 clean
cargo clippy -p beyond-agent --all-targets --features code-mode (the CI extra) clean
cargo fmt --all --check, mise check:fmt (dprint), mise check:module-tables clean
cargo test --workspace --lib 1995 passed, 2 failed — both reproduce on unmodified HEAD
cargo test -p beyond-gateway 85/85 test binaries ok, including the e2e groups that run a real nats-server 2.15.3

The two lib failures are sandbox limits, not regressions: bundle::many_tiny_bundles_are_held_to_the_budget_by_the_disk_they_occupy models ext4 block accounting and reads overlayfs here, and bash_proc::a_recycled_group_number_is_never_claimed needs a usable unshare -Urpf --mount-proc. Both were confirmed against a git worktree of HEAD with the pre-bump lockfile.

Risk

The one behavioural jump is async-nats 0.46 → 0.53, which changes how the client decides to use TLS and which servers it takes from a cluster. What matters for us: a server with no TLS configured behaves as before, but with TLS-after-INFO, discovered servers now come only from the INFO received inside TLS — against a nats-server older than 2.12 a client configured with a single server may have nothing to fail over to. The gateway connects through slipstream's plain ConnectOptions, so that knob is upstream's; a deployment that reaches NATS over TLS with a pre-2.12 cluster should be watched or given more than one server.

Deferred

Majors, each needing its own pass: jsonschema 0.47 → 0.63, base64 0.22 → 0.23, sha2 0.10 → 0.11 (the digest 0.11 migration; several crates are still on 0.10), ed25519-dalek 2.2 → 3 with x25519-dalek 2 → 3, chacha20poly1305 0.10 → 0.11, hkdf/hmac 0.12 → 0.13, getrandom 0.3 → 0.4, tokio-tungstenite 0.29 → 0.30, sse-stream 0.2 → 0.3, nix 0.31 → 0.32, prometheus 0.13 → 0.14 (blocked on the pingora-core chain), rcgen 0.13 → 0.14, rquickjs 0.12 → 0.15, scraper 0.27 → 0.29, htmd 0.5 → 0.7, toml 0.8 → 1.x in rates-sync and verify, usage-rs 6 → 7, criterion 0.5 → 0.8, tikv-jemallocator 0.6 → 0.7, hegeltest 0.50 → 0.54.

Held by the MSRV pin, not deferred by choice: grep-regex 0.1.15 and grep-searcher 0.1.18 require Rust 1.96. vstd stays on the exact Verus release; it only moves with a toolchain bump.

Open in Capy

…batch

beyond-slipstream 0.11.0 moves to async-nats 0.53, which drops rustls-webpki
0.102 and webpki-roots 0.26 from the tree: five audit ignores go with it. The
thirteen zstd ignores are stale too (pingora 0.9.1 already requires zstd
0.14.3). RUSTSEC-2026-0620 lands in their place with the exposure reasoning:
curve25519-dalek 4.1.3 is held by nkeys' ed25519-dalek ^2, and its AVX-512
backend is only compiled by a nightly rustc, which no build here uses.

tokio moves to 1.54: the <1.54 ceiling held a pingora-core 0.9.0 bug that 0.9.1
fixed (cloudflare/pingora#1059). The rest is the in-range patch batch, 33
packages, led by rmcp 3.12.0 and hyper 1.13.0.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@jaredLunde
jaredLunde added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit 8b70f2d Nov 30, 2026
34 checks passed
@jaredLunde
jaredLunde deleted the capy/clear-the-audit-drop branch November 30, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant