Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 8 commits into from
Apr 7, 2022

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 [email protected]. For more information, see https://github.com/trinodb/cla.

@Cromat82 Cromat82 added docs jdbc Relates to Trino JDBC driver labels Jan 6, 2022
@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 [email protected]. For more information, see https://github.com/trinodb/cla.

@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 [email protected]. 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
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

docs/src/main/sphinx/installation/cli.rst Outdated Show resolved Hide resolved
docs/src/main/sphinx/installation/cli.rst Outdated Show resolved Hide resolved
docs/src/main/sphinx/installation/cli.rst Outdated Show resolved Hide resolved
docs/src/main/sphinx/installation/jdbc.rst Outdated Show resolved Hide resolved
docs/src/main/sphinx/installation/jdbc.rst Outdated Show resolved Hide resolved
docs/src/main/sphinx/installation/jdbc.rst Outdated Show resolved Hide resolved
@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?

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.
@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.

None yet

7 participants