FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-1232: don't drop TLS for endpoint locations in getStreams by Arawoof06 · Pull Request #1233 · apache/arrow-java · GitHub

GH-1232: don't drop TLS for endpoint locations in getStreams - #1233

Open
Arawoof06 wants to merge 1 commit into
apache:mainfrom
Arawoof06:flight-jdbc-endpoint-tls-downgrade
Open

GH-1232: don't drop TLS for endpoint locations in getStreams#1233
Arawoof06 wants to merge 1 commit into
apache:mainfrom
Arawoof06:flight-jdbc-endpoint-tls-downgrade

Conversation

Copy link
Copy Markdown
Contributor

What's Changed

getStreams clones the connection builder for each advertised endpoint location, and that clone still carries username/password, token and the OAuth config, so whatever it connects to gets the credentials. Encryption for the clone came from the location scheme alone, meaning a grpc+tcp:// location advertised by the server turned TLS off even for a connection opened with useEncryption=true, and the handshake then went out in cleartext to the advertised host. Since the scheme is server-supplied and useEncryption is the user's stated intent, the scheme should not be able to override it downwards; a non-TLS location is now refused through the per-location exception path that is already there for unreachable locations, so the remaining locations are still tried.

Closes #1232.

This comment has been minimized.

Copy link
Copy Markdown
Contributor Author

gentle ping

lidavidm added the bug-fix PRs that fix a big. label Aug 25, 2026

Copy link
Copy Markdown
Member

@Arawoof06 please rebase.

Arawoof06 force-pushed the flight-jdbc-endpoint-tls-downgrade branch from 79013bd to 730b871 Compare August 25, 2026 11:11

Copy link
Copy Markdown
Contributor Author

Rebased onto main.

github-actions Bot added this to the 20.0.0 milestone Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix PRs that fix a big.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Java][FlightSQL][JDBC] Driver drops TLS for endpoint locations advertised by the server

2 participants


Back | FazBrowse Home | New Git URL