You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tls-rustls backend ignores the system trust store (private-CA TLS fails on ARM64 Linux / rustls consumers) #281
The kernel's tls-rustls feature maps to reqwest/rustls-tls, which uses the bundled Mozilla webpki-roots trust anchors and does not read the OS system trust store (/etc/ssl/...). The default tls-native backend (reqwest/native-tls → OpenSSL) does read the system store. So two consumers of the same kernel — differing only in TLS feature — trust different sets of CAs.
Cargo.toml:
tls-native = ["reqwest/native-tls"] # reads the system trust storetls-rustls = ["reqwest/rustls-tls"] # bundled webpki-roots ONLY, ignores /etc/ssl
Impact
An enterprise customer fronting their warehouse with a private/internal CA installs that CA into the OS trust store (/etc/ssl), the standard mechanism. On a tls-native build the handshake succeeds; on a tls-rustls build it fails, because rustls never consults the system store.
This became concrete via the ODBC driver: the OSS ODBC driver's new Linux ARM64 package cross-compiles with tls-rustls (to avoid a cross-compiled OpenSSL — see databricks/databricks-odbc#300), while the x86_64 Linux package uses tls-native. Result: two ODBC packages with the same version and install path behave differently for private-CA customers — TLS that works on x86_64 fails on ARM64, and because the packages are otherwise indistinguishable it's easy to misdiagnose as a network/config problem. Windows (also tls-rustls) has the same characteristic.
Proposed fix
Have the tls-rustls path also read the system trust store, so it matches tls-native. reqwest exposes this directly:
tls-rustls = ["reqwest/rustls-tls-native-roots"] # rustls + OS trust store
(or additionally wire rustls-native-certs if we build the RootCertStore ourselves anywhere). This would give both TLS backends the same trust behavior and close the divergence for all rustls consumers (ODBC ARM64/Windows, the napi/pyo3 bindings).
Notes / decisions
Verify rustls-tls-native-roots doesn't re-introduce a system-OpenSSL link that the rustls switch was chosen to avoid (it shouldn't — native-roots reads certs, it doesn't pull OpenSSL as the TLS impl).
Until this lands, the ODBC PR documents the divergence in docs/linux-rpm-packaging.md and (pending) user-facing release notes as the interim mitigation.
Filed as the follow-up to the ODBC ARM64 packaging PR (databricks/databricks-odbc#300).
This issue has been marked as Stale because it has been open for 30 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue.
Resolved by #316, merged on September 6, 2026. The tls-rustls feature now enables reqwest/rustls-tls-native-roots, and the hermetic default_client_trusts_ca_from_system_store regression test verifies that a private CA supplied through the OS trust store is accepted without a custom CA or disabled certificate validation.
Activity
github-actions commentedon Sep 21, 2026
This issue has been marked as Stale because it has been open for 30 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue.
vikrantpuppala commentedon Sep 21, 2026
Resolved by #316, merged on September 6, 2026. The tls-rustls feature now enables reqwest/rustls-tls-native-roots, and the hermetic default_client_trusts_ca_from_system_store regression test verifies that a private CA supplied through the OS trust store is accepted without a custom CA or disabled certificate validation.