Files
greptimedb/tests-integration/tests
4b9654c2c5 chore(deps): upgrade sqlx to 0.9 to pick up webpki-roots 1.0.10 [Backport release/v1.3] (#9885)
chore(deps): upgrade sqlx to 0.9 to pick up webpki-roots 1.0.10 (#9862)

sqlx 0.8 pins the unmaintained webpki-roots 0.26 line for its rustls
trust store, which still contains the recently compromised e-Tugra CA
root. Upgrading sqlx to 0.9 switches its dependency to webpki-roots
1.x, and the lockfile now resolves to 1.0.10 where the distrusted
root has been removed from the compiled-in Mozilla trust store.

sqlx 0.9 requires dynamic SQL strings to be explicitly audited via
the new SqlSafeStr trait: only &'static str literals are accepted
as-is. All affected call sites (MySQL KV backend, MySQL election,
integration tests and fuzz targets) now wrap their internally
generated SQL templates in AssertSqlSafe; the wrapped SQL is built
from operator config or test-local identifiers only, and dynamic
data keeps flowing through bind parameters.

The mysql-rsa feature is enabled alongside mysql to preserve 0.8
authentication behavior: sqlx 0.9 gates non-TLS RSA password auth
(caching_sha2_password / sha256_password) behind it.


(cherry picked from commit af52dfafd8)

Signed-off-by: Ning Sun <sunning@greptime.com>
Co-authored-by: Ning Sun <sunng@protonmail.com>
Co-authored-by: Weny Xu <wenymedia@gmail.com>
2026-10-27 15:31:39 +08:00
..
2026-06-30 07:37:31 +00:00