Repository navigation
deps: clear the audit, drop the tokio cap, and take the week's patch batch - #766
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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) flagscurve25519-dalek 4.1.3: scalar multiplication can return a wrong result in the AVX-512 backend. It reaches the tree only throughed25519-dalek ^2holders — nkeys 0.4.5, via async-nats 0.53's defaultnkeysfeature, and our own x25519-dalek 2. Moving ours to dalek 3/5 would not clear it, because nkeys pins^2independently, 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 (workspacerust-versionis 1.92, mise pins 1.92, no cargo config or CI job or Dockerfile passes--cfg curve25519_dalek_backend,-C target-cpu=nativeor+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.0moves it toasync-nats ^0.53, which is the fix path the config itself named.rustls-webpki 0.102.8andwebpki-roots 0.26.11leave 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 throughrustls-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.13has not been in the tree for some time, so the0391/0395–0406block 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 auditexits 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 toBufReader::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 andcrates/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.mdare pinned to versions we no longer build: the NATS silent-death detection note now names async-nats 0.53 (MAX_PENDING_PINGSis still 2 and the ping interval still 60s, so the three-minute bound is unchanged), and theBODY_BUF_LIMITnote names pingora 0.9.1 (still 64 KiB, still no knob).Verification
cargo audit(0.22.1, advisory DB of 2026-11-30)cargo clippy --all-targets --locked -- -D warnings, pinned Rust 1.92cargo clippy -p beyond-agent --all-targets --features code-mode(the CI extra)cargo fmt --all --check,mise check:fmt(dprint),mise check:module-tablescargo test --workspace --libcargo test -p beyond-gatewayThe two lib failures are sandbox limits, not regressions:
bundle::many_tiny_bundles_are_held_to_the_budget_by_the_disk_they_occupymodels ext4 block accounting and reads overlayfs here, andbash_proc::a_recycled_group_number_is_never_claimedneeds a usableunshare -Urpf --mount-proc. Both were confirmed against agit worktreeofHEADwith 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.
vstdstays on the exact Verus release; it only moves with a toolchain bump.