-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 support of mTLS in Spring Cloud Config Client #21513
Conversation
Thanks for your pull request! The title of your pull request does not follow our editorial rules. Could you have a look?
|
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.
Thanks for this. I added a small question inline.
} else { | ||
webClientOptions.setTrustStoreOptions((JksOptions) storeOptions); | ||
webClientOptions.setKeyStoreOptions((JksOptions) storeOptions); |
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.
Could you explain the change of method? Does it still work in the initial case covered?
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.
Do you mean SSL session without checking client cert on a server? Usual way in Java is using truststore for this purpose (that code is unchanged). In that case keystore not needed. From my point of view using keystore as a store for CA certificate is a mistake.
For this change I was guided by https://vertx.io/docs/vertx-core/java/#ssl
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.
@michalszynkiewicz you probably have more experience than me on the Vert.x web client, could you have a look?
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.
This looks good to me.
Setting trust store options from keystore didn't look good.
Fixes #21512