-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Quarkus Rest Client MTLS configuration guide #40623
Comments
/cc @cescoffier (rest-client), @geoand (rest-client), @radcortez (config) |
The configuration is likely going to change (the current one will still be working) following the TLS config centralization work. |
Hi @cescoffier But where is the current doc? |
but this is for client-side? |
You are right, my fault. |
The only documentation I have found is in the MicroProfile Rest Client documentation.
Should probably be configured as follows (#22293 (comment) and https://quarkus.io/blog/quarkus-mutual-tls/#configure-microprofile-rest-client-for-mutual-tls):
|
As an alternative you could use the vert.x web client: https://quarkus.io/guides/vertx#using-vert-x-clients WebClientOptions options = new WebClientOptions()
.setSsl(true)
.setPemKeyCertOptions(new PemKeyCertOptions()
.addCertPath("path/to/cert.pem")
.setKeyPath("path/to/key.pem"))
.setTrustOptions(new PemTrustOptions()
.addCertPath("path/to/cert.pem"));
WebClient client = WebClient.create(vertx, options); |
Also, properties are listed at: https://es.quarkus.io/guides/all-config#quarkus-rest-client-config_quarkus-rest-client-config-rest-clients-config But I think lost MTLS configuration doc (or a link to) at REST client guide is useful. |
Do you remember anything from the docs contents so we can look through the git history? |
I'm sure it was at https://quarkus.io/guides/rest-client but I can't find it at history. I think the section title was something like Mutual - TLS The section had a configuration block with properties like: quarkus.rest-client.config-key.key-store Similar to https://es.quarkus.io/guides/security-openid-connect-client-reference#mutual-tls |
I had no luck in locating it unfortunately |
No matter, I think adding something like https://es.quarkus.io/guides/security-openid-connect-client-reference#mutual-tls would be fine. |
Let's wait until the new mechanism is in place before adding anything, or I will have to change it in a few weeks. |
Describe the bug
The documentation for setting up MTLS on REST clients disappeared from rest client guide at https://es.quarkus.io/version/main/guides/rest-client.
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
https://stackoverflow.com/questions/78460678/quarkus-rest-client-mtls-configuration-guide
The text was updated successfully, but these errors were encountered: