fix(deps): accept RUSTSEC-2026-0459 behind a resolver guard #547

Merged
maximus merged 2 commits from issue-542-sqlite-advisory-gate into main 2026-11-14 17:08:17 +00:00

2 commits

Author SHA1 Message Date
le king fu
1ae9716851 fix(ci): network hint only on network errors, docs say cargo update
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 3m38s
PR Check — Rust / rust (pull_request) Successful in 5m4s
Review 33438 of the PR: the guard's network hint matched the bare word
"index", which cargo prints on every run ("Updating crates.io index"), so a
manifest error was flagged as a possibly flaky run. The pattern now matches
cargo's network and index errors only. ADR 0018 and docs/architecture.md
said the guard runs `cargo update --dry-run`; it runs a real `cargo update`
in the scratch copy and reads the lock it writes there.

Refs #542

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 09:01:21 -05:00
le king fu
1c982e85c7 fix(deps): accept RUSTSEC-2026-0459 behind a resolver guard
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 3m11s
PR Check — Rust / rust (pull_request) Successful in 14m39s
libsqlite3-sys 0.30.1 (bundled SQLite 3.46) is reachable on both shipped
targets, and its fix (>= 0.39) cannot be reached: links = "sqlite3" keeps a
single version in the graph, and sqlx-sqlite caps it below 0.38 while every
tauri-plugin-sql depends on sqlx ^0.8. audit.yml has been red every day since
2026-11-10 for this one advisory.

Per Max's decision, ADR 0018 gains a third admission case: a reachable
advisory whose fix is out of reach of any resolution of the graph, and whose
exploitation already needs local access to the user's account, may be listed
with a dated entry, a follow-up issue (#546) and a blocking resolver guard.

scripts/check-sqlite-advisory-block.sh lifts our SQLite-stack constraints in
a scratch copy of the manifest and lock and lets cargo resolve: it fails as
soon as libsqlite3-sys >= 0.39 becomes reachable, or on any other failure. A
canary without tauri-plugin-sql and sqlx must reach the fix. check-rust.yml
runs it (and the script path now triggers the workflow); REVIEW.md lists it
as a high-level file.

Fixes #542

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 08:11:07 -05:00