-
Notifications
You must be signed in to change notification settings - Fork 5
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
TLS not working in OCP cluster with self signed cert. #5
Comments
This issue is caused by the Keycloak cert being signed by a self cert CA, which has not been imported into the jdk cacerts truststore in the horreum pod;
|
adding some additional info related to this... I see the Operator [1] sets the quarkus [2] [1] horreum-operator/controllers/app.go Lines 35 to 40 in 104e3a4
[2] Quarkus OIDC extension reference: https://quarkus.io/guides/security-openid-connect |
The error comes from a request to rest endpoint the client call to keycloak is throwing the exception: https://github.com/Hyperfoil/Horreum/blob/0.7/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/UserServiceImpl.java#L448 it might be that |
Quakus seems to have a global runtime property for TLS called |
I'm running into this problem when trying to do anything in the Administration tab of the Horreum UI after doing an initial install of the operator 0.7.9. I attempted as a test to set
|
@barreiro This may be a useful relevant reference: https://developers.redhat.com/blog/2017/11/22/dynamically-creating-java-keystores-openshift |
It looks like we should be able to register a truststore for the OIDC client: quarkusio/quarkus#18012 I haven't looked at the mechanics of how to do it though |
In this case, the problem is not the OIDC client. Horreum uses Keycloak admin client directly. A resteasy client is not provided, so a new one is created with defaults. We would have to provide a resteasy client with the right trust store there. In the scope of the operator, an alternative would be to add the |
fixed in #17 |
A deployed Horreum replica is reporting this error in the log.
2023-03-23 19:34:29,728 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (vert.x-eventloop-thread-1) HTTP Request to /api/user/administrators failed, error id: 086eb16d-d056-4b99-a1e0-6b8ff8122923-1: java.util.concurrent.CompletionException: javax.ws.rs.WebApplicationException: HTTP 500 Internal Server Error
712at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
713at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
Caused by: javax.net.ssl.SSLHandshakeException: Failed to create SSL connection
1059at io.vertx.core.net.impl.ChannelProvider$1.userEventTriggered(ChannelProvider.java:130)
1060... 25 more
The text was updated successfully, but these errors were encountered: