Skip to content

Add new use system truststore flag to JDBC driver and CLI#10482

Merged
electrum merged 8 commits intotrinodb:masterfrom
Cromat82:jdbc/defaultTrustStore
Apr 7, 2022
Merged

Add new use system truststore flag to JDBC driver and CLI#10482
electrum merged 8 commits intotrinodb:masterfrom
Cromat82:jdbc/defaultTrustStore

Conversation

@Cromat82
Copy link
Contributor

@Cromat82 Cromat82 commented Jan 6, 2022

This PR adds a new flag to enable using the default system truststore instead of manually specifying one.

When the flag is provided, the client chooses the appropriate truststore based on the running OS (namely Windows and MacOS) or else loads the default truststore; the specification can be overridden by using the existing truststore type parameter.

@cla-bot
Copy link

cla-bot bot commented Jan 6, 2022

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla.

@Cromat82 Cromat82 added docs jdbc Relates to Trino JDBC driver labels Jan 6, 2022
@Cromat82 Cromat82 requested review from findepi and mosabua January 6, 2022 01:03
@cla-bot
Copy link

cla-bot bot commented Jan 6, 2022

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla.

@Cromat82 Cromat82 force-pushed the jdbc/defaultTrustStore branch from d4d4643 to efd5d6b Compare January 6, 2022 01:10
@cla-bot
Copy link

cla-bot bot commented Jan 6, 2022

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla.

@martint
Copy link
Member

martint commented Jan 6, 2022

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Jan 6, 2022
@cla-bot
Copy link

cla-bot bot commented Jan 6, 2022

The cla-bot has been summoned, and re-checked this pull request!

@martint martint requested a review from electrum January 6, 2022 16:44
@findepi findepi removed their request for review January 10, 2022 08:47
@Cromat82 Cromat82 force-pushed the jdbc/defaultTrustStore branch from 821aca7 to 11ff78a Compare January 14, 2022 17:22
@Cromat82 Cromat82 force-pushed the jdbc/defaultTrustStore branch from 11ff78a to 88a0642 Compare February 10, 2022 19:45
Copy link
Member

@electrum electrum left a comment

Choose a reason for hiding this comment

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

Apologies for the long time to review

@Cromat82
Copy link
Contributor Author

Cromat82 commented Feb 22, 2022

@electrum do I need to do something else for this PR or is it going to be merged into the next release?

@Cromat82 Cromat82 force-pushed the jdbc/defaultTrustStore branch from d40970c to e7c663f Compare February 28, 2022 17:15
@martint martint requested a review from electrum February 28, 2022 20:42
@Cromat82 Cromat82 force-pushed the jdbc/defaultTrustStore branch from e7c663f to 4f943eb Compare March 4, 2022 18:12
@Cromat82 Cromat82 force-pushed the jdbc/defaultTrustStore branch from 4f943eb to 38ff249 Compare March 24, 2022 00:11
Cromat82 added 5 commits April 5, 2022 10:00
Add a new flag to use the default system truststore instead of manually
specifying one.

When the flag is set to 'true', the client automatically selects the
appropriate system key store based on the machine OS, the keystore
specification can be overridden by using the truststore type parameter
if necessary.
Ensure that the JDBC driver doesn't allow the truststore path parameter
when the use system truststore flag is set
Add more details about the new use system truststore flag
Set the default system TrustStore type to the Windows ROOT CA keystore and expand the flag documentation.

This make Trino client use the ROOT CA certificate keystore to validate
the server identity, users can alternatively set the TrustStore type to
Windows-MY if verifying against the server certificate itself is needed.
@Cromat82 Cromat82 force-pushed the jdbc/defaultTrustStore branch from 38ff249 to 5afef8d Compare April 5, 2022 15:00
@electrum
Copy link
Member

electrum commented Apr 7, 2022

@Cromat82 Sorry, I reviewed this during the release window and forgot to merge it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed docs jdbc Relates to Trino JDBC driver

Development

Successfully merging this pull request may close these issues.

7 participants