Skip to content

Commit 1a9abe8

Browse files
fix(echidnabot): move the pin to the upstream sqlx repair (RUSTSEC-2026-0459) (#661)
## Summary The copy of echidnabot in `bots/echidnabot/` has `libsqlite3-sys` 0.30.1. That crate version carries the SQLite source that RUSTSEC-2026-0459 (CVE-2026-119375) names. The patched crate is 0.39.0 or later. hyperpolymath/echidnabot#199 repaired the dependency upstream (merged, `e498948`). This pull request moves the pin, so that the copy that the fleet builds has the patched crate. No check of this repository is red because of the old crate: CI here does not audit the dependencies of the copy. The reason for this change is the build, not a check. ## Changes `scripts/sync-vendored-bot.sh echidnabot --sync --rev e498948...` moves the pin from `a045184` to `e498948`, the head of upstream `main`. 3 files change in the copy, plus the lock: - `Cargo.toml`: sqlx comes from the upstream commit `10462fa4414c6c7f1ed1d39bb31678e3b726878c`, pinned by its full hash. No crates.io release of sqlx permits the patched crate (0.8.6 holds 0.30; 0.9.0 stops below 0.38). A comment on the line gives the reason and the exit: go back to a crates.io version at the first sqlx release after 0.9.0. - `Cargo.lock`: `libsqlite3-sys` 0.39.1. The crates that sqlx 0.8 needed and sqlx 0.9 does not need go out, `rsa` among them. - `.cargo/audit.toml`: the ignore entry for RUSTSEC-2023-0071 (`rsa`) goes out, because `rsa` is not in `Cargo.lock` any more. The list is empty. - `FLEET-SYNC.json`: the new `rev`. No Rust source file changes. `bots/gsbot` already takes sqlx from a commit of the same repository, so the form is not new here. ## Testing - `bash scripts/sync-vendored-bot.sh echidnabot --check`: `bots/echidnabot matches ...@e498948... (90 entries)`, exit 0. - A local copy of the Rust rule of the secret scan and of the strict UUID rule, on the whole tree: 0 hits in 270 Rust files. - Upstream, at the same `Cargo.toml` and `Cargo.lock`: `cargo audit` reports 0 vulnerabilities, and `Dependency audit` passes on echidnabot `main` at `e498948` (run 42880412002). The echidnabot test suite passed there with sqlx 0.9. - Not run locally: the fleet build and tests of the copy (`echidnabot vendored build and tests`). This is their first run with sqlx 0.9 in this repository. The fleet tests in `tests/echidnabot/` do not name sqlx. ## Not verified - The PostgreSQL path at run time. The upstream tests use SQLite. The PostgreSQL code compiles. - The behaviour changes of sqlx 0.9 that the compiler does not show (the sqlx changelog for 0.9.0 lists them). - The container build. --- _Generated by [Claude Code](https://claude.ai/code/session_0136P7ZmiFSCoB3UR9Kk56rK)_ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 763b286 commit 1a9abe8

4 files changed

Lines changed: 112 additions & 357 deletions

File tree

‎bots/echidnabot/.cargo/audit.toml‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# SPDX-License-Identifier: MPL-2.0
22

33
[advisories]
4-
ignore = [
5-
# rsa is retained in Cargo.lock only through SQLx's inactive optional
6-
# MySQL backend. This crate enables SQLite and PostgreSQL, and
7-
# `cargo tree -i rsa --target all` is empty. Octocrab's active JWT
8-
# backend is AWS-LC, so RUSTSEC-2023-0071 is not in the build graph.
9-
"RUSTSEC-2023-0071",
10-
]
4+
# No advisory is ignored.
5+
#
6+
# Until sqlx 0.9 this list had RUSTSEC-2023-0071 (`rsa`), which was in
7+
# Cargo.lock only through the inactive MySQL backend of sqlx 0.8. With sqlx
8+
# 0.9, `rsa` is not in Cargo.lock any more, so the entry went out.
9+
ignore = []

0 commit comments

Comments
 (0)