Simpl-Resultat/.cargo/audit.toml
le king fu 1c982e85c7
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 3m11s
PR Check — Rust / rust (pull_request) Successful in 14m39s
fix(deps): accept RUSTSEC-2026-0459 behind a resolver guard
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

90 lines
4.8 KiB
TOML

# cargo-audit configuration — accepted advisories (#310).
#
# Every ID listed here is suppressed on EVERY `cargo audit` run, including the
# daily blocking gate in .forgejo/workflows/audit.yml. So a green audit means
# "no advisory outside this list", not "no advisory at all". See
# docs/adr/0018-suppression-advisories-non-atteignables.md.
#
# Two rules govern the list:
#
# 1. An advisory may only be listed if its crate is absent from the
# dependency graph of EVERY shipped target (Windows and Linux), or if no
# fix has been published at all, or — amendment of 2026-11-14 (#542) —
# if its fix is published but no resolution of our graph can reach it,
# because a dependency we do not control caps the crate below the fix,
# AND exploiting it needs prior local access to the user's account. That
# third case requires a resolver guard in check-rust.yml that fails as
# soon as the fix becomes reachable, with its own canary, and a follow-up
# issue. A reachable advisory whose fix a dependency update can reach
# gets fixed, never suppressed.
#
# 2. Entries are keyed by advisory ID, never by crate. A new advisory filed
# against a crate already listed here re-reds the gate on purpose — each
# one is reviewed on its own merits. Widening an entry to a whole crate
# would defeat the gate.
#
# check-rust.yml carries a guard that re-proves rule 1 on every PR touching
# src-tauri/ or this file. ADDING AN ENTRY HERE REQUIRES ADDING ITS CRATE TO
# THAT GUARD'S CRATE LIST — otherwise the new entry gets no anti-rot coverage.
# An entry admitted under the third case of rule 1 is present in the graph by
# definition: it goes in no crate list, its own resolver guard (a separate
# check-rust.yml step) replaces the cargo tree check below.
#
# To re-verify an entry (or before removing one), run from the repo root:
#
# cargo tree --manifest-path src-tauri/Cargo.toml -i <crate> --target x86_64-unknown-linux-gnu
# cargo tree --manifest-path src-tauri/Cargo.toml -i <crate> --target x86_64-pc-windows-msvc
#
# Empty output on both targets means the entry is still justified. Any output
# means it is not: drop the entry and fix the advisory for real.
# The quick-xml pair (RUSTSEC-2026-0194 / -0195) used to live here and was
# removed on 2026-07-27 by #312: plist 1.10.0 ships quick-xml 0.41.0, which
# carries the fix, so the advisories were resolved rather than accepted. That is
# the intended lifecycle of an entry in this file — it leaves when a fix becomes
# reachable, not when someone remembers to look.
[advisories]
ignore = [
# rsa 0.9.10 — RUSTSEC-2023-0071 (Marvin attack: potential key recovery
# through timing side channels), 5.9 medium.
#
# Qualifies under both halves of rule 1. It has no fix at all — the
# advisory's patched list is empty, which is why suppression is the only
# option available. And it is unreachable: its sole parent in the lockfile
# is sqlx-mysql, an artifact of sqlx's multi-backend graph, while this
# project talks to SQLite through tauri-plugin-sql. `cargo tree -i rsa
# --target all` returns nothing at all.
#
# Removal trigger: a fixed rsa release, or sqlx dropping the crate from the
# graph.
"RUSTSEC-2023-0071",
# libsqlite3-sys 0.30.1 — RUSTSEC-2026-0459 (CVE-2026-119375,
# GHSA-72w2-rjgg-q729): SQLite < 3.54.0 can return uninitialised page-cache
# memory when a database is opened together with a forged -wal file of
# another page size. Admitted on 2026-11-14 under the THIRD case of rule 1
# (#542, decision of Max, ADR 0018 amendment of that date).
#
# Reachable on both shipped targets: libsqlite3-sys (bundled SQLite 3.46)
# is a direct dependency, and rusqlite 0.32 and sqlx-sqlite 0.8.6 (through
# tauri-plugin-sql and our own sqlx) link it. The fix, libsqlite3-sys >=
# 0.39, cannot be reached: the crate declares links = "sqlite3", so the
# graph holds a single version, and sqlx-sqlite caps it (0.8.6: ^0.30.1;
# 0.9.0: <0.38) while every tauri-plugin-sql, 3.0.0-alpha.3 included,
# depends on sqlx ^0.8. Surface: the app only opens its own databases
# under app_config_dir(); planting a database and its -wal there already
# takes write access to the user's account. Backups (SREF) are JSON/CSV,
# never a SQLite file.
#
# Guard: scripts/check-sqlite-advisory-block.sh, step "Verify the
# RUSTSEC-2026-0459 block still holds" of check-rust.yml (PRs, every
# Monday on main). It fails as soon as cargo can resolve libsqlite3-sys
# >= 0.39 with tauri-plugin-sql and sqlx in the graph.
#
# Removal trigger: that guard turning red — a sqlx-sqlite accepting
# libsqlite3-sys >= 0.39 that a tauri-plugin-sql pulls. Then update
# libsqlite3-sys, rusqlite, sqlx and tauri-plugin-sql, and drop this
# entry. Follow-up issue: #546.
"RUSTSEC-2026-0459",
]