Skip to content

Rust MongoDB server: zstd 0.14.3, clearing the zstd RustSec advisories - #2207

Merged
jdrumgoole merged 1 commit into
mainfrom
rust-mdb-zstd-audit
Oct 27, 2026
Merged

jdrumgoole merged 1 commit into
mainfrom
rust-mdb-zstd-audit

Conversation

@jdrumgoole

Copy link
Copy Markdown
Owner

cargo-audit now fails on new advisories against zstd 0.13.3 (RUSTSEC-2026-0391), zstd-safe 7.3.0 (0398, 0403) and zstd-sys 2.1.1 (0410), published after main's last audit (2026-10-26 05:31). Reported by the PG session on #2203. These crates appear only in the MongoDB-side lockfiles.

  • secantus-wire: zstd 0.13 → 0.14. The API used (bulk::compress / decompress) is unchanged.
  • Lockfiles crates/, secantusdb, secantus-storage-adapter, secantus-server-py: zstd 0.14.3, zstd-safe 8.2.0, zstd-sys 2.1.2.
  • crates/secantusdb's dev-dependency on the official mongodb driver (3.9.1, its newest) still pins zstd 0.13 through zstd-compression. That feature is dropped (Joe chose this over an audit ignore). zstd stays covered by the new raw_frames_round_trip_crud_and_a_large_document_under_zstd, the driver test's workload over raw OP_COMPRESSED frames under the server's codec. Snappy and zlib still go through the driver. What is lost: the Rust driver's own zstd encoder.

Local:

  • cargo audit (with the existing RUSTSEC-2026-0235 ignore) exits 0 on all four lockfiles.
  • secantusdb compression tests 6/6.
  • secantus-wire 29/29.
  • fmt and clippy -D warnings clean.

🤖 Generated with Claude Code

cargo-audit fails on RUSTSEC-2026-0391 (zstd 0.13.3), 0398 / 0403
(zstd-safe 7.3.0) and 0410 (zstd-sys 2.1.1), published after main's last
audit. `secantus-wire` moves to zstd 0.14, and the four MongoDB-side
lockfiles to zstd 0.14.3 / zstd-safe 8.2.0 / zstd-sys 2.1.2.

The official `mongodb` driver (3.9.1, its latest) still pins zstd 0.13 in
its `zstd-compression` feature, which the secantusdb tests enabled. That
feature is dropped (Joe's choice over an audit ignore); zstd is covered
over raw OP_COMPRESSED frames with the driver test's own workload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014VYK5jw5th5t6PYb3UrEPs
@jdrumgoole
jdrumgoole merged commit f83f723 into main Oct 27, 2026
10 checks passed
@jdrumgoole
jdrumgoole deleted the rust-mdb-zstd-audit branch October 27, 2026 11:03
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