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
[JDBC] Explicit trustStore is ignored unless useSystemTrustStore=false #1499
In ArrowFlightSqlClientHandler.Builder.build(), the TLS trust source is selected in the order tlsRootCerts, useSystemTrustStore, trustStore.
Because useSystemTrustStore defaults to true, configuring a connection with trustStore and trustStorePassword without explicitly setting useSystemTrustStore=false causes trustStore to be silently ignored. Instead, the driver loads the system trust store using trustStorePassword:
On Windows (where the system trust stores ignore the password), or on Linux/macOS when the password matches cacerts (e.g., changeit) or is null, the server is validated against the system CA store rather than the configured trustStore.
Otherwise, opening cacerts fails with "Keystore was tampered with, or password was incorrect".
Expected behavior
An explicitly configured trustStore should take precedence over the default useSystemTrustStore, matching the existing precedence of tlsRootCerts, and the Flight SQL JDBC driver documentation should clarify that useSystemTrustStore is ignored when trustStore or tlsRootCerts is set.
Activity
apacheGH-1499: [JDBC] Prefer an explicit trustStore over the system t…
GH-1500: [JDBC] Harden trustStore and tlsRootCerts handling for blank…