Repository navigation
Update cargo dependencies - #5055
Conversation
|
| aws-config = { version = "1", optional = true } | ||
| aws-sdk-kms = { version = "1", default-features = false, features = ["default-https-client", "rt-tokio"], optional = true } | ||
| reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"], optional = true } | ||
| reqwest = { version = "0.13", default-features = false, features = ["json", "rustls-tls"], optional = true } |
There was a problem hiding this comment.
Build break — already confirmed by CI. reqwest 0.13 renamed the rustls-tls feature to rustls, so this fails during dependency resolution (clippy job):
error: failed to select a version for reqwest.
... required by package catalog v0.1.0
package catalog depends on reqwest with feature rustls-tls but reqwest does not have that feature.
This needs features = ["json", "rustls"].
Note that because resolution aborts here, this one error masks every other breakage in the PR. Fixing just the feature name will not turn CI green — see the other inline comments.
Two behaviour changes ride along with the rename, both relevant since this client talks to GCP KMS:
- The rustls crypto provider now defaults to aws-lc instead of ring. That matches the rest of nexus (pgwire uses
server-api-aws-lc-rs, rustls usesaws-lc-rs), so it is an improvement, but it does change what gets linked. - Root certificates now come from rustls-platform-verifier by default; the old rustls roots features were removed outright. Since this dependency uses
default-features = false, no roots feature was previously enabled, so after the bump trust decisions get delegated to the host platform store. Worth confirming the images nexus ships in actually have a usable system trust store — otherwise KMS calls start failing TLS verification at runtime rather than at build time.tls_certs_only(roots)is the escape hatch if you want roots pinned explicitly.
| pgwire.workspace = true | ||
| pt = { path = "../pt" } | ||
| reqwest = { version = "0.12", default-features = false, features = ["json", "gzip", "rustls-tls"] } | ||
| reqwest = { version = "0.13", default-features = false, features = ["json", "gzip", "rustls-tls"] } |
There was a problem hiding this comment.
Two build breaks on this line.
-
Same as catalog:
rustls-tlswas renamed torustlsin reqwest 0.13. -
reqwest 0.13 also moved
queryandformbehind opt-in crate features (changelog: "query and form are now crate features, disabled by default").RequestBuilder::queryis now gated on#[cfg(feature = "query")], and this crate calls it in two places:nexus/peer-snowflake/src/lib.rs:163—.query(&[("async", "true")])nexus/peer-snowflake/src/stream.rs:233—.query(&[("partition", partition_number.to_string())])
So this line needs
features = ["json", "gzip", "rustls", "query"]. Without it you getno method named query found for struct RequestBuilder. Worth noting theasync=trueparameter is what makes Snowflake statement submission asynchronous, so this is not a cosmetic call site — it would be easy to "fix" the build by dropping the call.
The default-root-store change described on nexus/catalog/Cargo.toml applies to the Snowflake API client here too.
| reqwest = { version = "0.13", default-features = false, features = ["json", "rustls-tls"], optional = true } | ||
| async-trait = "0.1" | ||
| base64 = "0.22" | ||
| base64 = "0.23" |
There was a problem hiding this comment.
base64 0.23 is API-compatible with how nexus uses it, so no code change is needed. BASE64_STANDARD, the Engine trait and engine::general_purpose::STANDARD are all unchanged across the five call sites (catalog/src/lib.rs:10, value/src/lib.rs:2, value/src/array.rs:3, postgres-connection/src/lib.rs:1, peer-snowflake/src/auth.rs:4), and nothing in the tree matches on DecodeError::InvalidLastSymbol, whose shape changed in this release.
Two things from the release notes worth a deliberate decision rather than a default:
- 0.23 adds SIMD-accelerated engines behind a default-on
simd-unsafefeature (runtime AVX2/NEON dispatch). Every crate here takes base64 with default features, so this pulls newunsafecode into the decode path of, among other things, Snowflake private-key parsing atpostgres-connection/src/lib.rs:98. None of these are hot paths — if you would rather not take new unsafe code for no throughput benefit,default-features = false, features = ["std"]keeps the scalar engine. - MSRV moved to 1.71.0, comfortably below what the edition-2024 crates in this workspace already require.
Minor lockfile note: expect base64 to appear twice in the regenerated Cargo.lock for a while, since pbjson pulls its own copy.
|
Reviewed this Renovate bump against the upstream release notes and commit logs for each crate. Details are in the inline comments; this is the overview plus the one finding that has no line to anchor to. This does not build as-is. All five bumps are 0.x minors, which are semver-breaking, and the PR carries no source changes.
CI already confirms the first break (clippy): reqwest no longer has a
Two things worth a maintainer decision beyond making it compile, both detailed inline: the pgwire SCRAM parser changes are real security fixes but will reject some clients that authenticate today, and No file in this diff falls under a |
🔄 Flaky Test DetectedAnalysis: Infrastructure flake, not a code bug: five matrix jobs all failed in the pre-test "install lib-geos and pg_dump" setup step with ✅ Automatically retrying the workflow |
|
Code review — reviewed this Renovate bump per the repo review guidelines (read the upstream release notes for each bumped range). Two blocking issues found. 1. reqwest 0.13 has no The reqwest v0.13.0 changelog lists among its breaking changes: " peerdb/nexus/catalog/Cargo.toml Lines 16 to 18 in 1f85f15 peerdb/nexus/peer-snowflake/Cargo.toml Lines 18 to 20 in 1f85f15 Fix: rename 2. pgwire 0.36 → 0.42 has breaking API changes but the PR contains no source changes — nexus won't compile even after the reqwest blocker is fixed From the pgwire 0.41.0 changelog: "Breaking: peerdb/nexus/query-router/src/lib.rs Lines 167 to 179 in 1f85f15 Also in the bumped range, worth attention during migration:
Recommendation: fix the reqwest feature rename + lockfile, and land the pgwire bump together with the required source migration (or split it out of this PR). Checked for bugs and CLAUDE.md compliance — no CLAUDE.md violations found. |
🔄 Flaky Test DetectedAnalysis: Not a test failure at all — the cockroachdb-v24_ch-lts job died during CI setup when curl got "Recv failure: Connection reset by peer" (exit 56) fetching the PostgreSQL PGDG apt signing key from postgresql.org, so no tests ever ran while all ~28 sibling matrix jobs passed. ✅ Automatically retrying the workflow |
1f85f15 to
5732dff
Compare
🔄 Flaky Test DetectedAnalysis: Infrastructure flake, not a test or code failure: the mongo-6_ch-lts job died in the "install lib-geos and pg_dump" setup step when an un-retried ✅ Automatically retrying the workflow |
5732dff to
8bc9eda
Compare
🔄 Flaky Test DetectedAnalysis: The single failure is a 4-minute ✅ Automatically retrying the workflow |
8bc9eda to
14a3284
Compare
| aws-config = { version = "1", optional = true } | ||
| aws-sdk-kms = { version = "1", default-features = false, features = ["default-https-client", "rt-tokio"], optional = true } | ||
| reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"], optional = true } | ||
| reqwest = { version = "0.13", default-features = false, features = ["json", "rustls-tls"], optional = true } |
There was a problem hiding this comment.
Build break — confirmed by CI. reqwest 0.13 renamed the rustls-tls feature to rustls, so dependency resolution fails before anything compiles:
error: failed to select a version for `reqwest`.
... required by package `catalog v0.1.0`
package `catalog` depends on `reqwest` with feature `rustls-tls` but `reqwest` does not have that feature.
That is the cause of both the clippy and docker-build failures on this PR.
It is not a pure rename, though — the trust store changes too. In 0.13 the rustls feature pulls in rustls-platform-verifier, so certificate validation moves to the OS trust store instead of the roots that rustls-tls bundled in 0.12. This code path calls metadata.google.internal and cloudkms.googleapis.com, so please confirm the runtime image can still verify those. stacks/peerdb-server.Dockerfile does apk add --no-cache ca-certificates on Alpine, which should satisfy the platform verifier on musl — but it is a behavioural change that deserves an explicit check rather than an assumption. If you would rather keep bundled roots, add webpki-roots explicitly.
| pgwire.workspace = true | ||
| pt = { path = "../pt" } | ||
| reqwest = { version = "0.12", default-features = false, features = ["json", "gzip", "rustls-tls"] } | ||
| reqwest = { version = "0.13", default-features = false, features = ["json", "gzip", "rustls-tls"] } |
There was a problem hiding this comment.
Two build breaks here, not one.
-
Same as
catalog:rustls-tlsno longer exists in reqwest 0.13 — it is nowrustls. -
The
queryfeature is now required. reqwest 0.13 movedRequestBuilder::querybehind a feature that is not in the default set. In 0.13 the defaults are onlydefault-tls,charset,http2,system-proxy, andquery = ["dep:serde", "dep:serde_urlencoded"]must be opted into. In 0.12.query()was compiled unconditionally.This crate sets
default-features = falseand calls it in two places:nexus/peer-snowflake/src/lib.rs:163—.query(&[("async", "true")])nexus/peer-snowflake/src/stream.rs:233—.query(&[("partition", partition_number.to_string())])
So the feature list needs to become roughly
["json", "gzip", "query", "rustls"]. The resolver error oncatalogmasks this one today — it will only surface once the TLS feature name is fixed.
The trust-anchor change described on nexus/catalog/Cargo.toml applies to the Snowflake HTTPS client as well.
| reqwest = { version = "0.13", default-features = false, features = ["json", "rustls-tls"], optional = true } | ||
| async-trait = "0.1" | ||
| base64 = "0.22" | ||
| base64 = "0.23" |
There was a problem hiding this comment.
Heads-up on what base64 0.23 turns on by default — this applies to all four crates bumped in this PR (catalog, peer-snowflake, postgres-connection, value).
0.23 added SIMD-accelerated engines behind a simd-unsafe feature, and that feature is in default (default = ["std", "simd-unsafe"]). Upstream describes it as "the only feature that introduces unsafe; with it disabled the crate is #![forbid(unsafe_code)]" — note the adjacent comment claiming it is off by default is stale, it is in the default set.
So this bump quietly moves base64 from a forbid(unsafe_code) crate to one with hand-written AVX2/NEON intrinsics, on a .0 release, in paths that decode externally-influenced input: catalog/src/lib.rs (KMS payloads), postgres-connection/src/lib.rs:98 (private key material), and value/ (wire values).
The performance win is real and this is not a blocker, but given it is brand-new unsafe code it is worth making an explicit decision rather than inheriting the default — you can keep the old guarantee with default-features = false plus the std feature. The existing call sites (base64::prelude::BASE64_STANDARD / Engine, base64::engine::general_purpose::STANDARD) work either way.
Dependency bump reviewReviewed all 7 crate bumps against upstream release notes and the Nexus call sites. This PR does not build as-is —
Two notes that are not objections:
No secrets or PII logging is introduced — there are no source changes in this PR — and no files under a |
🔄 Flaky Test DetectedAnalysis: Timing-dependent duplicate in TestCockroachDBSuite/Test_CDC_Exactly_Once_Across_Batches on the cockroachdb-v26 job — a stalled resolved timestamp under parallel-subtest load trips the connector's documented force-emit-past-checkpoint fallback, and the PR is a Rust-only Renovate bump that passed the same test on the v24/v25 jobs. ✅ Automatically retrying the workflow |
14a3284 to
58d2630
Compare
There was a problem hiding this comment.
Renovate Rust dependency bump - review
Reviewed all eight bumps against upstream release notes and the nexus call sites. This PR is not mergeable as-is: it fails dependency resolution, so none of the bumps have been compiled or type-checked. clippy and docker-build are both red, and Renovate own renovate/artifacts check failed, which is why nexus/Cargo.lock is absent from the diff.
Blocking (confirmed by CI)
- rsa 0.10 removed the
pemfeature -> resolution error inpeer-snowflake. It also turnsRsaPrivateKeyinto a deprecated alias, which is fatal under-D warnings. - reqwest 0.13 renamed
rustls-tls->rustls, so bothcatalogandpeer-snowflakefail to resolve;peer-snowflakeadditionally needs the now-opt-inqueryfeature for its two.query()call sites. - pgwire 0.36 -> 0.42 is six breaking minors with zero code changes:
QueryParser::parse_sqlsignature, two new requiredQueryParsermethods,AuthSource<I>,PortalStoreentry types, and a deprecatedDataRowEncoder::finish(). nexus/Cargo.lockis out of sync with every manifest in the diff.
Regressions worth a deliberate decision
- base64 0.23 enables brand-new hand-written
unsafeSIMD engines by default (simd-unsafe), including on paths that decode untrusted input. - reqwest 0.13 moves rustls trust roots to the OS store via
rustls-platform-verifier- fine for the shipped Alpine image, which installsca-certificates, but a runtime-only failure on minimal bases. - pgwire 0.42 adds client TLS certificates to
LoginInfoDebugoutput, which the existing debug-formattracing::info!atserver/src/main.rs:84would then write to logs at info level.
Low risk
- sqlparser 0.62 -> 0.63: no documented breaking AST changes, but untested here.
- pbjson / pbjson-types 0.8 -> 0.9: no upstream release notes exist; no generator/runtime skew, since
pbjson-buildis only a transitive dependency.
Counterpoint in favour of the pgwire bump
0.42.1 fixes genuine SCRAM auth weaknesses that Nexus is directly exposed to via SASLAuthStartupHandler + ScramAuth - channel-binding downgrade when a MITM strips the -PLUS mechanism, and client proofs with appended junk still authenticating. That is worth landing properly rather than losing when this batch is reset.
Suggested split: let base64 / pbjson / sqlparser go through on their own once the lockfile regenerates, and take pgwire, reqwest and rsa as three separate migration PRs.
Per-dependency detail is in the six inline comments. No file in this diff falls under a docs/tricky-areas.md section, so that rule does not apply here.
🔄 Flaky Test DetectedAnalysis: All six failing jobs aborted during CI setup with ✅ Automatically retrying the workflow |
🔄 Flaky Test DetectedAnalysis: Infrastructure flake, not a test failure: the "install lib-geos and pg_dump" setup step's unretried curl of the PGDG signing key from postgresql.org stalled at 0 bytes for ~3 minutes and died with "curl: (56) Failure when receiving data from the peer", killing the postgres-17_other job before any test ran, while all other matrix jobs on the same commit passed. ✅ Automatically retrying the workflow |
PR doctor for #5055. The bump fails dependency resolution in clippy, Build and Test and Dev Docker Images: reqwest 0.13 has no `rustls-tls` feature ("package `catalog` depends on `reqwest` with feature `rustls-tls` but `reqwest` does not have that feature"). - catalog, peer-snowflake: `rustls-tls` -> `rustls` (renamed in 0.13). - peer-snowflake: enable `query`, which 0.13 dropped from the default features; RequestBuilder::query is used in src/lib.rs and src/stream.rs. Release notes: https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR doctor for #5055. Once dependency resolution passes, query-router and peer-cursor fail to build against pgwire 0.42: - query-router: QueryParser::parse_sql now returns PgWireResult<Option<Statement>>; the existing results are wrapped in Some, so empty input still routes to Route::Empty. - query-router: get_parameter_types and get_result_schema are now required. pgwire calls them only from its default do_describe_statement/do_describe_portal, which NexusBackend overrides (server/src/main.rs), so they return an explicit ApiError instead of an empty description that would be silently wrong (claude[bot] review). - peer-cursor: DataRowEncoder::finish is deprecated since 0.37 (fatal under clippy -D warnings); use Ok(encoder.take_row()). Release notes: https://github.com/sunng87/pgwire/blob/master/CHANGELOG.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR doctor for #5055. sqlparser 0.63 removed the `array` field of Expr::Cast, so peer-mysql fails to build (E0559 at src/ast.rs:28). Drop the field; it was `false`, which is the only behaviour 0.63 has. Changelog: https://github.com/apache/datafusion-sqlparser-rs/tree/main/changelog Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR doctor for #5055 (keep legacy behaviour). base64 0.23 adds a default `simd-unsafe` feature with new unsafe SIMD engines. Declare `default-features = false, features = ["std"]` in catalog, peer-snowflake, postgres-connection and value, so nexus asks for the 0.22 feature set (claude[bot] review). Nexus only uses the scalar general_purpose STANDARD engine, which 0.23 leaves unchanged. pgwire, reqwest and hyper-util still enable base64's default features, so the feature itself remains compiled into the binary through Cargo feature unification. Release notes: https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
reqwest 0.13 verifies TLS against the OS trust store (rustls-platform-verifier), while gcp-bigquery-client is still on reqwest 0.12, whose rustls-tls feature trusts the bundled Mozilla roots (webpki-roots), as do the AWS SDK clients. Use ClientBuilder::tls_certs_only with webpki-root-certs at the four client-build sites (GCP KMS in catalog, Snowflake query executor and partition fetch) so every HTTPS client in nexus keeps one common trust store, as before the upgrade. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR doctor for #5055. The bump fails dependency resolution in clippy, Build and Test (PG 14-18) and Dev Docker Images: rsa 0.10 has no `pem` feature ("package `peer-snowflake` depends on `rsa` with feature `pem` but `rsa` does not have that feature"). - peer-snowflake/Cargo.toml: drop `pem`; 0.10 folds PEM into the `encoding` feature. Keep the 0.9 feature set otherwise: `default-features = false, features = ["std", "encoding", "pkcs5"]`, so the new default `getrandom` feature (system-RNG blinding in the default decrypt/sign paths) stays off, as in 0.9. peer-snowflake only decodes PKCS#8 keys and re-encodes them, it does no RSA operation. - auth.rs: `RsaPrivateKey` -> `PrivateKey`. The old name is a deprecated alias in 0.10, which `cargo clippy -- -D warnings` rejects. Release notes: https://github.com/RustCrypto/RSA/blob/master/CHANGELOG.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR doctor for #5055. renovate/artifacts failed ("Artifact file update failure": cargo could not resolve rsa's `pem` feature), so the lockfile still pinned pgwire 0.36, reqwest 0.12, sqlparser 0.62, pbjson 0.8 and rsa 0.9. Regenerated by cargo for the bumped manifests (pgwire resolves to 0.42.3, rsa to 0.10.0, one rsa version in the tree); all new sources are crates.io. webpki-root-certs pinned to 1.0.11, the same CCADB snapshot as the webpki-roots 1.0.11 already in the lockfile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR doctor for #5055. Review finding on the pgwire bump: 0.42 added `sni_server_name` and `client_certificates` to `LoginInfo`, which derives Debug, so `tracing::info!("login info: {:?}", login_info)` in FixedPasswordAuthSource::get_password starts logging the TLS SNI name the client dialed (and would log client certificates if client auth is ever enabled; today the acceptor uses with_no_client_auth). Log the three fields LoginInfo had in 0.36 (user, database, host) in the same format, so the line stays byte-identical to the old output. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR Doctor: summary of changesThis round answers the review request from 15:56Z. When I re-applied the earlier per-dependency commits by cherry-pick. They are unchanged: main has not touched Commits, in push order:
DetailsFailing checks on 7b5327e These are all the same resolution error:
The two flaky-test detector comments at 16:11Z and 16:19Z are about run 43902211527 on 7b5327e: a curl of the PGDG APT key failed during setup. That failure has nothing to do with this diff, and the run is superseded by the new head. Root causes
Local runs Toolchain: Rust 1.99.1. The catalog is PG18, migrated with rsa 0.9.10 vs 0.10.0 decode parity I ran a throwaway harness, not committed, on keys freshly generated by openssl. It decodes each key the way
Not verified locally
Not committed rsa 0.10 behaviour change, which I confirmed but did not adapt. PKCS#8 private-key decode now goes through stricter validation:
The openssl-generated keys above all pass, because openssl generates balanced primes. I did not test a key with unbalanced primes. The closest-to-legacy option would be to decode PKCS#8 by hand and call Bot findings on 7b5327e
Notes for the reviewer
Auto-merge was disabled before these commits and left off. |
🔄 Flaky Test DetectedAnalysis: Infrastructure flake, not a test failure: the "install lib-geos and pg_dump" setup step in one matrix job failed with curl (56) after an 87-second stall downloading the PGDG apt signing key from postgresql.org, and fail-fast then canceled all other matrix jobs before any test ran. ✅ Automatically retrying the workflow |
| .iter() | ||
| .map(|cert| reqwest::Certificate::from_der(cert)) | ||
| .collect::<reqwest::Result<Vec<_>>>()?; | ||
| Ok(reqwest::Client::builder().tls_certs_only(roots)) |
There was a problem hiding this comment.
tls_certs_only pins these clients to the Mozilla bundle and discards the OS trust store, which makes this the one spot where the upgrade ends up stricter than reqwest 0.13 default behaviour. The comment acknowledges the tradeoff, but it looks avoidable.
The nexus runtime image does ship an OS trust store (apk add ca-certificates in stacks/peerdb-server.Dockerfile), and bind-mounting an internal or TLS-intercepting proxy CA into /etc/ssl/certs is a common enterprise deployment, so losing platform roots has a real (if niche) blast radius.
ClientBuilder::tls_certs_merge() gets you both halves of the stated goal. In reqwest 0.13 rustls path it routes to rustls_platform_verifier::Verifier::new_with_extra_roots(certs, provider) instead of erroring, so the bundled Mozilla roots are guaranteed present and OS roots keep working:
Ok(reqwest::Client::builder().tls_certs_merge(roots))Same one-line change applies to catalog/src/lib.rs:87.
Not a regression against 0.12 (which was webpki-roots only), so this is a suggestion rather than a blocker. If you do keep tls_certs_only, it would help to say in the comment why the OS store is deliberately excluded rather than only noting that it is given up.
| let url = self.endpoint_url.clone(); | ||
| println!("Secret: {secret:#?}"); | ||
| let response = reqwest::Client::new() | ||
| let response = crate::http_client_builder()? |
There was a problem hiding this comment.
This builds a brand-new reqwest::Client for every partition fetch, and http_client_builder() re-parses all ~150 webpki root certs and constructs a fresh rustls ClientConfig each time. The old reqwest::Client::new() was also per-call, but it had no root-store setup cost, so the bump adds real per-partition overhead (on top of the cold connection pool, which already meant a fresh TLS handshake to Snowflake per partition) on the result-streaming hot path.
SnowflakeQueryExecutor already holds a configured client (lib.rs:113). Threading self.reqwest_client.clone() through SnowflakeRecordStream::new (lib.rs:312 and :335) into SnowflakeRecordStreamInner reuses both the TLS config and the connection pool. It would also enable gzip on partition fetches, which the per-request user-agent override here does not affect.
If that is more churn than you want inside a dependency bump, a std::sync::LazyLock<reqwest::Client> next to http_client_builder() is the one-line version.
catalog::http_client() has the same shape: a fresh client plus a full root-store parse on every gcp_kms_decrypt call.
| @@ -228,7 +228,8 @@ impl SnowflakeRecordStreamInner { | |||
| let statement_handle = self.result_set.statementHandle.clone(); | |||
| let url = self.endpoint_url.clone(); | |||
| println!("Secret: {secret:#?}"); | |||
There was a problem hiding this comment.
Pre-existing, not introduced by this PR, but it is the line directly above your change so it is worth removing while you are in the file: this prints the Snowflake bearer JWT to stdout on every partition fetch. secret is self.auth.get_jwt()?.expose_secret(), so the secrecy::SecretString wrapper is fully defeated and the credential lands in container logs.
println!("Response: {:#?}", response.data) on line 243 is the same class of problem for customer row data.
Both should just be deleted, or demoted to tracing::debug! with the token elided.
| @@ -228,7 +228,8 @@ impl SnowflakeRecordStreamInner { | |||
| let statement_handle = self.result_set.statementHandle.clone(); | |||
| let url = self.endpoint_url.clone(); | |||
| println!("Secret: {secret:#?}"); | |||
There was a problem hiding this comment.
High severity — credential written to stdout. secret here is self.auth.get_jwt()?.expose_secret(), the Snowflake JWT that is used verbatim as the Authorization: Bearer token three lines below. This println! writes a live credential to the Nexus container stdout, where it reaches Docker/Kubernetes logs and any log shipper attached to them.
This predates the PR, but .claude/REVIEW.md treats secrets on stdout as a high-severity issue, this PR already does secret hygiene one file over (it narrows the LoginInfo logging in server/src/main.rs), and the line immediately below it is being edited here — so please drop it in this PR rather than leaving it for a follow-up:
| println!("Secret: {secret:#?}"); |
If a diagnostic is genuinely wanted at this point, tracing::debug! on partition_number keeps the useful part without the token.
There was a problem hiding this comment.
Renovate bump review: nexus Cargo dependencies
Checked each bumped range against upstream release notes and commit logs for regressions, and verified the hand-written adaptation commits. CI is green (clippy, build = cargo check + cargo test, docker-build), so this review is about semantics rather than compilation. Three inline comments, none blocking.
Worth highlighting: pgwire 0.36 to 0.42 carries security fixes
This is the biggest hop (6 minor versions) and it is clearly net-positive to take:
- 0.42.2, GHSA-95f6-gpr7-g65r (CVE-2021-23214 shape): plaintext pipelined between
SSLRequestand the TLS handshake was carried across the upgrade and executed as if the authenticated TLS client had sent it, withis_secure()reportingtrue. Introduced in 0.34.2, so nexus on 0.36 is affected today. - 0.42.1: SCRAM channel-binding negotiation and proof-validation fixes (
-PLUSstripping downgrade, overlong proofs still authenticating). nexus usesSASLAuthStartupHandler+ScramAuth(server/src/main.rs:1127), so this path is live. - 0.42.0: per-connection auth state moved out of the shared handler, fixing interleaved authentication state when one handler serves concurrent connections. nexus shares a single startup handler, so this is a real bug fix for us.
- 0.42.3: errors instead of panics on truncated or malformed frontend message bodies.
Breaking-change adaptations verified
DataRowEncoder::finish()totake_row()(deprecated in 0.37): correct.take_row(&mut self) -> DataRowand the encoder is still built per row, so behaviour is unchanged (the 0.37 reuse win is left on the table, but that matches the old code).QueryParser::parse_sqltoPgWireResult<Option<_>>(0.41): returningSome(Route::Empty)rather thanNonepreserves the existing nexus empty-query path. Still reachable for comment-only query strings, since pgwire only short-circuits whitespace/semicolon-only input.- The new
get_parameter_types/get_result_schemastubs returningApiError: I checked pgwire 0.42.3src/api/query.rs. Both are only called from the defaultdo_describe_statement/do_describe_portal, andNexusBackendoverrides both (server/src/main.rs:876,:893). The stubs are genuinely unreachable and the comment is accurate. AuthSourcebecameAuthSource<I = ()>in 0.42, and the default type parameter is whyFixedPasswordAuthSourceneeded no signature change.LoginInfogainedsni_server_name/client_certificatesin its derivedDebug, whichget_passwordlogs. Already handled in dced9ce by logging the three pre-0.42 fields explicitly. Worth noting the acceptor iswith_no_client_auth()(main.rs:1085), so certificates were never actually reachable, but pinning the format is the right call.
Other bumps
- reqwest 0.12 to 0.13:
rustls-tlstorustls, andqueryis now opt-in (correctly added for peer-snowflake.query(&[...]), correctly omitted for catalog which only uses.json()). Both crates already setdefault-features = false, so 0.13 gatinghttp2/charset/system-proxyis not a regression: 0.12 had the identical default list and those were already off. Crypto provider moves ring to aws-lc-rs, which matches the rest of nexus (pgwireserver-api-aws-lc-rs,postgres-connection,mysql_async). See the inline note on the trust-store choice. - rsa 0.9 to 0.10:
RsaPrivateKeytoPrivateKey, andencodingnow gates PKCS#1/PKCS#8/SPKI plus PEM (stdno longer implies it), so the new feature set is right. Dropping the defaultgetrandomfeature is safe here: peer-snowflake only decodes a key and derives the public key. It never generates keys or signs withrsa(jsonwebtoken signs via aws-lc-rs from the PKCS#1 DER), so no RNG-dependent path is touched. - base64 0.22 to 0.23:
default-features = false, features = ["std"]opts out of the default-onsimd-unsafeengines that are the headline of 0.23. If that is a deliberate no-unsafe-SIMD call, a one-line comment in the manifest would save the next reader the lookup. Either way it is not a regression against 0.22. - sqlparser 0.62 to 0.63: the
Expr::Cast { array }field removal is handled inpeer-mysql/src/ast.rs. The other behavioural changes in 0.63 (MySQL/Redshift left-associative joins without parens, GLOB/REGEXP/MATCH/IS DISTINCT FROM/DIV precedence, BigQuery FROM-first SELECT, RedshiftINTERVALas a column name) do not touch the PostgreSQL dialect path nexus parses with. Note 0.64.0 is already out, per the Renovate Pending column. - pbjson / pbjson-types 0.8 to 0.9: generated-code only, no source changes needed.
Lockfile
rustls-platform-verifier plus its rustls-platform-verifier-android / jni / jni-sys / simd_cesu8 tree now compiles in even though tls_certs_only bypasses the verifier. That is unavoidable: reqwest 0.13 declares dep:rustls-platform-verifier unconditionally under the rustls feature. Two reqwest majors also build into the server now (gcp-bigquery-client 0.28 is still on 0.12), worth watching on the next bump.
| .iter() | ||
| .map(|cert| reqwest::Certificate::from_der(cert)) | ||
| .collect::<reqwest::Result<Vec<_>>>()?; | ||
| Ok(reqwest::Client::builder().tls_certs_only(roots)) |
There was a problem hiding this comment.
Efficiency — the root store is rebuilt on every call. TLS_SERVER_ROOT_CERTS holds roughly 160 certificates, and this maps and allocates a fresh Vec<reqwest::Certificate> each time the helper runs. SnowflakeQueryExecutor::new calls it once, which is fine, but stream.rs:231 calls http_client_builder()?.build()? per partition fetch — so a multi-partition result set re-parses the whole root store and builds a brand-new Client (new connection pool, new TLS session cache, full handshake) for every partition. Same shape in catalog/src/lib.rs:82, where http_client() runs on each gcp_kms_decrypt.
Hoisting the parsed roots into a LazyLock<reqwest::Result<Vec<reqwest::Certificate>>> and cloning from it here makes them a one-time cost with no behaviour change.
Separately: the stream.rs client is built without the gzip(true) and the default_headers User-Agent that new() sets up, and the comment at that call site says that Snowflake needs a user agent. That asymmetry is pre-existing (it used to be reqwest::Client::new()), but now that a shared builder exists it would be cheap to thread the already-configured reqwest_client from the executor into the stream instead, fixing pooling, gzip and the User-Agent in one move.
Nit: the five-line rationale comment and the helper body are duplicated verbatim here and in catalog/src/lib.rs, so the next reqwest bump has to be applied in two places.
There was a problem hiding this comment.
Reviewed the bumped ranges against upstream release notes and sources. Build, clippy and docker-build are green, so this review focuses on behaviour the compiler cannot check. Two inline findings are posted; the rest checks out.
Verified against upstream
- pgwire 0.36 → 0.42.3 — the three adaptations map to real breaking changes:
finish()→take_row()(deprecated in 0.37 whenDataRowEncoderbecame reusable),QueryParser::parse_sqlreturningOption(0.41), andget_parameter_types/get_result_schemabecoming required trait methods. I confirmed in pgwire 0.42.3src/api/query.rsthat those two are called only from the defaultdo_describe_statement/do_describe_portal, both of whichNexusBackendoverrides, and thatStoredStatement::parsedoes not callget_parameter_types— so the error stubs added inquery-routerare safe. ReturningSome(Route::Empty)rather thanNonefor empty queries keeps the pre-0.41 path, and it still lands onResponse::EmptyQueryplusno_data(), which matches Postgres. Bonus from the range: 0.42.1 hardens SCRAM channel-binding validation and 0.42.2 refuses plaintext injected betweenSSLRequestand the TLS handshake (CVE-2021-23214), both relevant to Nexus, which runs SCRAM over TLS. - LoginInfo logging —
LoginInfoin 0.42 does exposesni_server_name()andclient_certificates()through itsDebugimpl, so narrowing thetracing::info!inserver/src/main.rsis a correct and welcome call. - reqwest 0.12 → 0.13 — the
rustlsfeature selects aws-lc-rs plusrustls-platform-verifier(consistent with the aws-lc-rs already used bypostgres-connectionand pgwire),tls_certs_only()exists and disables native and built-in roots exactly as the new comment claims, and.query()did move behind the newqueryfeature, which is added only topeer-snowflake, the one crate that uses it. Pinning towebpki-root-certsreproduces the webpki-roots behaviour of the oldrustls-tlsfeature, so this is a no-op for trust rather than a regression, and every reqwest construction site undernexus/now goes through the new helpers with none left onClient::new(). - rsa 0.9 → 0.10 — the
RsaPrivateKeytoPrivateKeyrename is real,pemwas folded intoencoding, andpkcs5is still required forfrom_pkcs8_encrypted_pem. The new 1024-bit minimum on decode is a non-issue since Snowflake mandates 2048-bit or larger key-pair keys. Upside: the move from num-bigint-dig to crypto-bigint brings constant-time modexp, and private-key components are now redacted fromDebugoutput. - sqlparser 0.62 → 0.63 — confirmed that
Expr::Castno longer carries anarrayfield, so thepeer-mysql/src/ast.rsdeletion is required rather than a dropped field. - base64 0.22 → 0.23 — disabling default features and enabling only
stdopts out of the new default-onsimd-unsafeengine, so behaviour matches 0.22 without the new SIMD speedup. Reasonable for a crate that does not want fresh unsafe code pulled in.
Note, not blocking: the tree now links reqwest 0.12 and 0.13 side by side, since gcp-bigquery-client still pins 0.12. Worth a follow-up to drop the duplicate HTTP and TLS stack once that dependency moves.
🔄 Flaky Test DetectedAnalysis: Not a test failure at all — four jobs died in the ✅ Automatically retrying the workflow |
🔄 Flaky Test DetectedAnalysis: No tests ran — the postgres-16_ch-lts job failed in CI setup when curl stalled fetching the PGDG apt signing key from www.postgresql.org and exited 56 ("Failure when receiving data from the peer"), a transient network error unrelated to the Renovate cargo bump, while all 20 other matrix jobs running the same step passed. ✅ Automatically retrying the workflow |
PR Doctor:
|
🔄 Flaky Test DetectedAnalysis: Four matrix jobs failed in the "install lib-geos and pg_dump" setup step with ✅ Automatically retrying the workflow |
This PR contains the following updates:
0.22→0.230.8→0.90.8→0.90.36→0.420.42.3(+1)0.12→0.130.9.2→0.10.00.62→0.630.64.00.62→0.630.64.0Release Notes
marshallpierce/rust-base64 (base64)
v0.23.1Compare Source
v0.23.0Compare Source
simd-unsafefeature:Simdpicks the bestinstruction set at runtime (AVX2 on
x86_64, NEON onaarch64) and falls back to the scalarGeneralPurposeengine, whileAvx2andNeontarget one instruction set with no runtimedetection and work in
no_std. The engines support the standard and URL-safe alphabets.sunng87/pgwire (pgwire)
v0.42.1Compare Source
Fixed
RFC 5802 section 6. [#476]
p=gs2 channel binding flag in the client-first messagewhen no server certificate is configured, or when it names a binding
type other than
tls-server-end-point; previously a client couldrequest an unsupported channel binding on the plain
SCRAM-SHA-256mechanism and still authenticate
ygs2 flag when the server supports channel binding,preventing downgrade attacks where a MITM strips the
-PLUSmechanism from the advertisement
the proof must be exactly one hash output long (32 bytes for
SHA-256). Previously trailing bytes were silently truncated by the
proof verification, so a valid proof with appended junk still
authenticated
v0.42.0Compare Source
Added
AuthMechanism: stateful, per-connection authentication statemachines, driven by
begin/nextuntilAuthState::OkorAuthState::FailedAuthMechanismFactory: creates a fresh mechanism per connection;implemented by
CleartextPasswordAuth,Md5PasswordAuth, theSaslMechanismsregistry,ScramAuthandOauthAuthDriver: reusable mechanism driver for customStartupHandlerimplementations; runs the mechanism state machine and completes the
startup protocol
AuthSource::get_scram_secretreturningScramSecret: servers thatonly store postgres-style SCRAM verifiers (
stored_key/server_key)can now authenticate without password material. [#469]
PgWireError::NoAuthenticationInProgress, returned when apassword-family message arrives while no authentication handshake is
running. [#469]
LoginInfonow carries the TLS context (sni_server_name,client_certificates), soAuthSourceimplementations can makecertificate-based decisions
AuthSourceis now identity-aware (AuthSource<I>):verify_passworddelegates verification to the source and returnsthe authenticated identity (default: compare against
get_password);get_scram_secretreturns the identity alongsidethe credential.
Changed
CleartextPasswordAuthStartupHandler,Md5PasswordAuthStartupHandlerand
SASLAuthStartupHandlerare now implemented overAuthDriverandthe mechanism API. Per-connection authentication state no longer lives
in the shared handler, fixing interleaved authentication state when a
single handler serves concurrent connections. [#469]
authzidin the client-first messagem=attribute in client-first and server-firstmessages
transmitted, so clients sending optional RFC5802 extensions no longer
fail authentication. Both server and client sides.
v0.41.2Compare Source
v0.41.1Compare Source
Changed
tcp_nodelayfor client socket.client-api. [#464]SyncandFlushduringCOPY FROM STDIN. [#465],[#466]v0.41.0Compare Source
Added
ClientInfo::transaction_statusreports the status carried by the last
ReadyForQuerymessage (idle, intransaction, or in a failed transaction), updated automatically on every
code path: startup, simple and extended query, and the error-recovery
drains.
Config::protocol_versionselects the version to advertise in the startup message, defaulting to 3.0.
Following libpq, a test version
3.9999is available to request the newestminor version a server supports: the client handles the server's
NegotiateProtocolVersionresponse (both the full 32-bit version form usedby PostgreSQL 18+ and the minor-only form used by older servers) and adopts
the negotiated version for the rest of the connection.
Changed
QueryParser::parse_sqlnow returnsPgWireResult<Option<Self::Statement>>, andStoredStatement::parsecorrespondingly returns
Option<StoredStatement<S>>.Nonedenotes anempty query: it is stored as an empty statement and executes to
EmptyQueryResponse. This allows a query parser to report its own notionof empty query; syntactically empty queries (semicolons and whitespace
only) are still never passed to the parser.
PortalStorenow represents empty statements and portals.get_statementreturnsOption<Entry<StoredStatement<S>>>andget_portalreturnsOption<Entry<Portal<S>>>: the newEntry::Emptyvariant marks a name under which an empty prepared statement or portal is
stored, alongside the new
put_empty_statement/put_empty_portalmethods. Like every
put_*, storing an empty entry replaces whatever waspreviously stored under that name, and
rm_*/clear_portalsremoveempty entries along with regular ones.
StoredStatementandPortalthemselves are unchanged — the impact is limited to
PortalStoreimplementors and code calling
get_statement/get_portaldirectly(
Entry::valuehelps with the migration).Fixed
statement, such as
""or";;") are now handled like PostgreSQL insteadof being dispatched to the query parser:
Parsesucceeds without callingQueryParserand stores an empty statement,DescribeanswersParameterDescription(no parameters) +NoData,Bindsucceeds(rejecting bound parameters with
08P01) and stores an empty portal, andExecutereturnsEmptyQueryResponsewithout reachingdo_query. Anempty
Parsereplaces any statement previously stored under the samename, and
Close/Syncdrop empty statements and the unnamed emptyportal like real ones. Behavior verified message-for-message against
PostgreSQL 18.
version the client actually advertised, instead of always 3.2. Previously a
4-byte protocol 3.0 cancel key was decoded as
SecretKey::Bytesinstead ofSecretKey::I32.v0.40.7Compare Source
Fixed
;;,;;;,; ;) as empty queriesin the simple query protocol, returning
EmptyQueryResponselike PostgreSQL.Previously only the empty string and a single
;were recognized as empty.v0.40.6Compare Source
Changed
v0.40.5Compare Source
Fixed
v0.40.4Compare Source
Fixed
v0.40.3Compare Source
Changed
pg_interval0.6 update.v0.40.2Compare Source
Fixed
CopyFailmessage codec error. [#442]v0.40.1Compare Source
Fixed
v0.40.0Compare Source
Added
Portalto support cursor operations. [#433]Changed
Fixed
Syncmessage will no longer clear all portals but unnamed portal. [#433]v0.39.0Compare Source
Added
ConnectionManager,PidSecretKeyGeneratorand newDefaultCancelHandlerfor our high-level query cancellation support. Byconfiguring
ConnectionManagerandDefaultCancelHandler, we will providedefault implementation for query cancel. See
examples/cancel.rsforinstance. [#427]
Anytrait toPortalStoretrait to allow downcast and usage inSimpleQueryHandler[#421]session_extensionmechanism for extendingClientInfo[#409]Changed
StoredStatement::parsepublic for writing customExtendedQueryHandler[#425]
v0.38.3Compare Source
Fixed
v0.38.2Compare Source
Changed
v0.38.1Compare Source
Added
Fixed
v0.38.0Compare Source
Added
Fixed
Changed
FromSqlTextis no longer implemented forVec<T>, useVec<Option<T>>instead [#395]
standard_string_conformingis always on now [#388]v0.37.3Compare Source
Fixed
postgresDateStyle [#387]v0.37.2Compare Source
Changed
FromSqlTextimplementation forVec<Option<T>>where T isFromSqlText. We are going to removeFromSqlTextforVec<T>innext breaking release due to conflicts and lack of NULL semantic. [#385]
v0.37.1Compare Source
Added
v0.37.0Compare Source
Added
ToSqlTextimplementations [#364]Changed
finish()and makeDataRowEncoderreusable for a massiveperformance gain [#366]
QueryParsertrait,for default implementation of describe statement and portal in
ExtendedQueryHandler. This change allow us to provide postgres compatible
default behavior for describing statement.[#356]
seanmonstar/reqwest (reqwest)
v0.13.5Compare Source
Error::is_dns()to identify errors caused by DNS resolution failures.ClientBuilder::http1_max_headers(usize)to configure the maximum number of headers accepted in an HTTP/1 response (default 100).TlsInfoextension.Ipv6AndIpv4strategy to prefer IPv6.v0.13.4Compare Source
ClientBuilder::tls_sslkeylogfile(bool)option to allow using the related environment variable.ClientBuilder::http2_keep_alive_*options for theblockingclient.native-tlsbackend.v0.13.3Compare Source
/etc/resolv.conffails.STOP_SENDINGas not an error.v0.13.2Compare Source
RequestBuilder::json()from override previously set content-type.v0.13.1Compare Source
v0.13.0Compare Source
rustlsis now the default TLS backend, instead ofnative-tls.rustlscrypto provider defaults to aws-lc instead of ring. (rustls-no-providerexists if you want a different crypto provider)rustls-tlshas been renamed torustls.rustls-platform-verifieris used by default.tls_certs_only(your_roots).native-tlsnow includes ALPN. To disable, usenative-tls-no-alpn.queryandformare now crate features, disabled by default.trust-dns, which was renamedhickory-dnsa while ago).tls_backend_rustls()overuse_rustls_tls().v0.12.28
v0.12.27
ClientBuilder::windows_named_pipe(name)option that will force all requests over that Windows Named Piper.v0.12.26
Accept-Encodingheader only with values configured with reqwest, regardless of underlying tower-http config.v0.12.25
Error::is_upgrade()to determine if the error was from an HTTP upgrade.Proxy-Authorizationif only username is configured.Proxy-Authorizationto HTTPS proxies when the target is HTTP.v0.12.24
v0.12.23
ClientBuilder::unix_socket(path)option that will force all requests over that Unix Domain Socket.ClientBuilder::retry(policy)andreqwest::retry::Builderto configure automatic retries.ClientBuilder::dns_resolver2()with more ergonomic argument bounds, allowing more resolver implementations.http3_*options toblocking::ClientBuilder.RequestBuilder.v0.12.22
v0.12.21
socks4a://instead ofsocks4h://.Error::is_timeout()to check for hyper and IO timeouts too.Errorto again include URLs when possible.DefaultforBody.v0.12.20
ClientBuilder::tcp_user_timeout(Duration)option to setTCP_USER_TIMEOUT.Error::is_status().v0.12.19
cookiesfeature is enabled (by the way, it's a noop feature in wasm).v0.12.18
socksenabled without TLS.v0.12.17
v0.12.16
ClientBuilder::http3_congestion_bbr()to enable BBR congestion control.ClientBuilder::http3_send_grease()to configure whether to send use QUIC grease.ClientBuilder::http3_max_field_section_size()to configure the maximum response headers.ClientBuilder::tcp_keepalive_interval()to configure TCP probe interval.ClientBuilder::tcp_keepalive_retries()to configure TCP probe count.Proxy::headers()to add extra headers that should be sent to a proxy.redirect::Policy::limit()which had an off-by-1 error, allowing 1 more redirect than specified.Response::bytes_stream().v0.12.15
ProxyOverrideandNO_PROXY.v0.12.14
fetch_mode_no_cors(), marking as deprecated when not on WASM.v0.12.13
Form::into_reader()for blockingmultipartforms.Form::into_stream()for asyncmultipartforms.RequestBuilder::form()from overwriting a previously setContent-Typeheader, like the other builder methods.blocking::Request.ProxyOverrideas aNO_PROXYvalue.Error::is_timeout()to return true when from a request timeout.v0.12.12
tokio/timeon WASM.v0.12.11
v0.12.10
ClientBuilder::connector_layer()to allow customizing the connector stack.ClientBuilder::http2_max_header_list_size()option.content-length) information when wrapping bodies.v0.12.9
tls::CertificateRevocationListssupport.connection_verbose()to output read logs.multipart::Part::file()to automatically include content-length.v0.12.8
multipart::Form::file()method for adding files easily.Body::wrap()to wrap anyhttp_body::Bodytype.v0.12.7
impl Service<http::Request<_>>forClient.v0.12.6
danger_accept_invalid_hostnamesforrustls.impl Service<http::Request<Body>>forClientand&'_ Client.!Syncbodies inBody::wrap_stream().hickory-dnsis used.Proxyso thatHTTP(S)_PROXYvalues take precedence overALL_PROXY.blocking::RequestBuilder::header()from unsettingsensitiveon passed header values.v0.12.5
blocking::ClientBuilder::dns_resolver()method to change DNS resolver in blocking client.http3feature back, still requiringreqwest_unstable.rustls-tls-no-providerCargo feature to use rustls without a crypto provider.Accept-Encodingheader combinations.v0.12.4
zstdsupport, enabled withzstdCargo feature.ClientBuilder::read_timeout(Duration), which applies the duration for each read operation. The timeout resets after a successful read.v0.12.3
FromStrfordns::Name.ClientBuilder::built_in_webpki_certs(bool)to enable them separately.ClientBuilder::built_in_native_certs(bool)to enable them separately.content-length: 0for GET requests.content_length()to return value when timeout is configured.ClientBuilder::resolve()to use lowercase domain names.v0.12.2
v0.12.1
ClientBuilder::interface()when no TLS is enabled.TlsInfo::peer_certificate()being truncated with rustls.http2feature disabled but TLS negotiated h2 in ALPN.DisplayforErrorto not include its source error.RustCrypto/RSA (rsa)
v0.10.0Compare Source
Security
num-bigint-digwithcrypto-bigintfor constant-time modular exponentiation (#394)Debugoutput (#480)draft-irtf-cfrg-rsa-guidance(#710, #715, #739,#751, #752, #755, #756, #758, #770, #771, #773)
PrecomputedValues(#716)padding instead of exposing a padding error and with it a sidechannel (#726, #729, #749)
Added
id-RSASSA-PSSalgorithm identifiers (#424)pss::VerifyingKey::salt_lenand opt-in automatic salt-length detection vianew_with_auto_salt_len(#448, #546)PublicKeyParts::n_bytesande_bytesserialization helpers (#519)Cloneandcore::error::Errorimplementations forError(#530, #694)PrivateKey::as_public_keyaccessor (#592)PrivateKeyandPublicKeyfor OAEP encryption/decryptionand PKCS#1 v1.5/PSS signing/verification, including prehash and explicit-RNG variants (#638)
PrivateKey::from_components_with_large_exponent, gated onhazmat(#648)cargo checkct/BINSEC (#732, #733, #749, #756,#771, #773)
PrivateKey::from_components_with_wide_primesfor unbalanced two-prime keys, which ordinaryconstructors now reject (#755)
TryFrom<BitStringRef<'_>>for PKCS#1 v1.5 and PSS signatures (#764)crypto_common::Generateimplementation andGeneratere-export for generating 3072-bit keyswith public exponent 65537 (#780)
Changed
BigUintin the public API withBoxedUint; returnNonZero<BoxedUint>for the modulusand
Odd<BoxedUint>for prime factors (#394, #735)crypto-primesfor prime generation (#394)serdect; extend serdesupport to OAEP, PKCS#1 v1.5, and PSS wrapper types (#420)
encodingfeature;stdno longerimplicitly enables encoding dependencies (#537, #543)
PublicKey::new_with_size_limitsandhazmat-gated unchecked key generation (#576, #760)pkcs1to v0.8;pkcs8to v0.11;spkito v0.8;serdectto v0.4 (#584, #684, #688,#766)
OaepandPssgeneric over their digest types instead of usingDynDigest(#593)rand_coreto v0.10,crypto-commonto v0.2,digestto v0.11, andsignatureto v3(#650, #671, #693)
exponent's bit length (#662)
crypto-bigintto v0.7.10 andcrypto-primesto v0.7 (#673, #766)sha1andsha2to v0.11 (#683)#723)
getrandomby default and use the system RNG for blinding in default decryption andsigning paths (#739, #758)
Signature::from_bytes_with_max_lenforexplicit limits (#767)
pkcs1v15feature for PKCS#1 v1.5 encryption and signatures (#778)TryCryptoRngand propagate RNG failures as errors (#779)RsaPrivateKeyandRsaPublicKeytoPrivateKeyandPublicKey, retaining the old namesas deprecated aliases (#781)
Deprecated
pss::BlindedSigningKeyin favor ofpss::SigningKey, which now applies blinding bydefault (#758)
PublicKey::new_with_max_sizein favor ofPublicKey::new_with_size_limits(#760)Removed
nightlyandu64_digitfeatures associated withnum-bigint-dig(#394)Pkcs1v15Sign::new_rawandpkcs1v15*_with_prefixconstructors (#524)pemfeature; PEM support is included withencoding(#537)sha2feature; SHA-2 support is now always enabled (#749)Fixed
decryption (#441, #595)
SigningKey::fromandVerifyingKey::fromnow use the digest prefix consistentlywith
new(#472, #498)(#529)
exponents greater than or equal to the modulus (#655, #738, #772, #774)
AlgorithmIdentifierencoder instead oftruncating them (#704)
to 1 modulo 8 (#725)
overflowing salt lengths (#769)
apache/datafusion-sqlparser-rs (sqlparser)
v0.63.0Compare Source
Configuration
📅 Schedule: (in timezone Etc/UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.