Repository navigation
chore: upgrade dependencies to latest versions - #72
Merged
Merged
Conversation
added 2 commits
November 17, 2026 11:40
Bump all crates to their latest releases, including new majors: aes-gcm 0.11, argon2 0.6, base64 0.23, dirs 7, sqlx 0.9, tower-http 0.7. - Port encryption to the aes-gcm 0.11 Generate/Array API - Port password hashing to the argon2 0.6 API (salt generated internally) - Switch sqlx to the split runtime-tokio + tls-rustls-ring-webpki features - Add compatibility tests: ciphertext from aes-gcm 0.10 and a hash from argon2 0.5 must still decrypt/verify - Correct rust-version to what the dependency graph requires - Bump actions/checkout to v7 Removes RUSTSEC-2023-0071 (rsa) from the lockfile. Claude-Session: https://claude.ai/code/session_01HcqqCs5uaE9ejgz8DWNfok
RUSTSEC-2026-0459 is reported against a lockfile-only optional dependency of sqlx's SQLite driver that is never compiled (postgres feature only). sqlx-sqlite 0.9.0 caps libsqlite3-sys below the fixed 0.39. Claude-Session: https://claude.ai/code/session_01HcqqCs5uaE9ejgz8DWNfok
Collaborator
Author
Why three transitive crates are not at their newest versionChecked against crates.io and upstream
Ways to remove the
Follow-up when sqlx > 0.9.0 ships: |
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.
Summary
Upgrades all direct dependencies to their latest releases and ports the code to the new major APIs. Transitive dependencies are at the newest versions upstream allows (three exceptions listed below).
New majors
encryption.rsported to theGenerate/ArrayAPIauth.rsported; salt is now generated insidehash_passwordruntime-tokio-rustlssplit intoruntime-tokio+tls-rustls-ring-webpki(same TLS backend as before)home_diris used)Everything else is updated within its semver range via
cargo update(tokio 1.54, uuid 1.29, etc.).Transitive crates that cannot move yet (pinned upstream)
=0.8.4<0.38; not compiled, see SecurityAlso
rust-versioncorrected from 1.75 to what the dependency graph actually requires: 1.94 for the server (sqlx 0.9), 1.89 for client and common.actions/checkoutv4 → v7.Security
cargo audit(RustSec DB, 1527 advisories) now reports 0 vulnerabilities.RUSTSEC-2023-0071 (
rsa, Marvin attack): removed from the lockfile by sqlx 0.9.RUSTSEC-2026-0459 (
libsqlite3-sys, medium): not applicable, ignored with rationale in.cargo/audit.toml. The crate is inCargo.lockonly as an optional dependency of sqlx's SQLite driver, and only thepostgresfeature is enabled. Evidence it is not built:cargo tree --workspace --target all -i libsqlite3-sysprints nothingcargo deny check advisories(walks the real build graph) does not report ittbandtb-serverbinaries contain no SQLite stringsThe fixed version cannot be selected until sqlx lifts its
<0.38cap; the ignore entry says to remove it then.RUSTSEC-2026-0543 (
chronounmaintained, warning only): no vulnerability and no fixed version exists. Replacing chrono (jiff/time) is a separate migration and not part of this PR.Because the two crypto crates changed major versions, this PR adds compatibility tests using fixtures generated with the old versions:
m=19456,t=2,p=1)Not changed
Release-only GitHub Actions have newer majors (upload-artifact v7, download-artifact v8, docker/* actions, action-gh-release v3). They cannot be exercised by PR CI, so they are left for a separate change.
Test plan
cargo fmt --all -- --checkcargo clippy --workspace --all-targets -- -D warningscargo test --workspace— 101 passed (96 before + 5 new)cargo build --release --workspacecargo audit— 0 vulnerabilities/me, PUT/GET/items, PUT/GET/items/archive,/events, logout,/metricshttps://claude.ai/code/session_01HcqqCs5uaE9ejgz8DWNfok