-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
If certificate reloading is enabled, mTLS stop functioning after the reload #45565
Labels
Milestone
Comments
/cc @pedroigor (bearer-token), @sberyozkin (bearer-token,jwt,security) |
cc @cescoffier |
@ynojima thanks for reporting. As you seem to have analyzed the situation, would you like to contribute a fix? |
Ah yes, thanks for reporting this. Fancy a pull request? |
Just created a pull request! Hope the test case meets the requirement! #45578 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If certificate reloading is enabled with
quarkus.http.ssl.certificate.reload-period
option, mTLS stop functioning after the reload even when the certificate file is not updated.This is caused by mishandling of trustOptions here:
https://github.com/quarkusio/quarkus/blob/3.17.6/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/options/TlsCertificateReloader.java#L214-L218
the
opts
value should be taken fromcopy.getTrustOptions()
butcopy.getKeyCertOptions
.Because of this mishandling, trust store config is overwritten by key store config.
Expected behavior
Even after the reload, mTLS should continue to work.
Actual behavior
mTLS stop functioning
How to Reproduce?
Reproducer:
quarkus.http.ssl.certificate.reload-period=3m
optionQuarkus version or git rev
3.17.6
The text was updated successfully, but these errors were encountered: