Skip to content

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

@Arawoof06

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.

@github-actions

This comment has been minimized.

@Arawoof06

Copy link
Copy Markdown
Contributor Author

gentle ping

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

Copy link
Copy Markdown
Member

@Arawoof06 please rebase.

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

Copy link
Copy Markdown
Contributor Author

Rebased onto main.

@github-actions github-actions Bot added this to the 20.0.0 milestone Aug 25, 2026
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