-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Load default Java truststore for --use-system-truststore #19365
base: master
Are you sure you want to change the base?
Conversation
This pull request has gone a while without any activity. Tagging the Trino developer relations team: @bitsondatadev @colebow @mosabua |
This pull request has gone a while without any activity. Tagging the Trino developer relations team: @bitsondatadev @colebow @mosabua |
This pull request has gone a while without any activity. Tagging the Trino developer relations team: @bitsondatadev @colebow @mosabua |
Closing this pull request, as it has been stale for six weeks. Feel free to re-open at any time. |
This pull request has gone a while without any activity. Tagging the Trino developer relations team: @bitsondatadev @colebow @mosabua |
There was a problem hiding this 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 delay in reviewing. I missed this one.
trustStore.load(null, null); | ||
KeyStore trustStore; | ||
if (systemTrustStoreType.isPresent()) { | ||
trustStore = KeyStore.getInstance(systemTrustStoreType.orElseGet(KeyStore::getDefaultType)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't need the .orElseGet()
since the value is known to be present here, so this can be just .get()
3259fe8
to
ee3728f
Compare
Could conflict with #22341. Need some time to investigate. |
8f90ae2
to
493bf66
Compare
493bf66
to
f48be2c
Compare
Description
Fix #19353 (
--use-system-truststore
won't use default Java truststore)Additional context and related issues
The default Java truststore hasn't been used in Linux.
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text:
Test
Before fix
After fix