Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,17 @@ tokio-rustls = { version = "0.26.4", default-features = false, features = ["ring
[features]
default = ["tls-native"]
tls-native = ["reqwest/native-tls"]
tls-rustls = ["reqwest/rustls-tls"]
# `rustls-tls` alone is `reqwest/rustls-tls-webpki-roots` — the bundled Mozilla
# root set only, which does NOT read the OS system trust store. `tls-native`
# (native-tls → OpenSSL) DOES read `/etc/ssl/...`, so a `tls-rustls` build behind
# a private/internal CA installed only in the OS store fails a handshake that the
# `tls-native` build completes. Enabling `rustls-tls-native-roots` alongside makes
# reqwest load the OS trust store AND the Mozilla bundled roots into one
# `RootCertStore` (both `tls_built_in_certs_*` default true → additive, no
# fallback lost). This gives the aarch64 cross-build — the only Linux arch on
# `tls-rustls` — system-CA parity with the x86_64/i686 OpenSSL builds. See
# odbc#323.
tls-rustls = ["reqwest/rustls-tls", "reqwest/rustls-tls-native-roots"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Low — The tls-rustls feature now pulls in rustls-native-certs (and openssl-probe, schannel, security-framework, core-foundation). The root Cargo.lock and napi/Cargo.lock were regenerated to include these, but pyo3/Cargo.lock — which also resolves the kernel with features = ["tls-rustls"] (pyo3/Cargo.toml:75) — was not: it still has no rustls-native-certs entry. This isn't a CI failure (pyo3-checks runs cargo test without --locked, so cargo silently regenerates the lockfile at build time), but it leaves the committed pyo3 lockfile drifted from the feature change and inconsistent with the other two lockfiles the PR did update. Regenerate it (cd pyo3 && cargo update -p reqwest --precise <same> or a plain cargo build then commit the lockfile) so the pinned dependency graph reflects the new trust-store crates.


[lib]
name = "databricks_sql_kernel"
Expand Down
62 changes: 62 additions & 0 deletions napi/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 62 additions & 0 deletions pyo3/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions src/client/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,11 @@ impl DatabricksHttpClient {

// Surface which TLS backend was compiled in so oncall debugging
// a handshake / unknown-CA report can tell at a glance whether
// this binary is on native-tls (system CA store) or rustls
// (Mozilla webpki-roots). The two stacks differ on cert
// validation behavior, OCSP, and TLS 1.3 quirks.
// this binary is on native-tls or rustls. Both read the OS system
// CA store (rustls via `rustls-tls-native-roots`, which also keeps
// the Mozilla webpki-roots as a fallback — see odbc#323), but the
// two stacks still differ on cert validation behavior, OCSP, and
// TLS 1.3 quirks.
debug!(
tls_backend = if cfg!(feature = "tls-rustls") {
"rustls"
Expand Down
Loading
Loading