-
Notifications
You must be signed in to change notification settings - Fork 281
KEYCLOAK-12449: Fix internal keycloak URL. #115
Conversation
Now I've also added a test to increase coverage. |
d669e45
to
b6e4927
Compare
having same problem. |
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 the fix @mgoltzsche !
The fix looks great, but I don't like the tests. We put a lot of effort to avoid mocking at any type (this decision is aligned with all other Keycloak projects). Could you please extend one of our integration tests (this one for example) to check if the InternalURL
is created correctly?
The operator failed to sync CRs into its keycloak cluster using the service since it used http and the service's IP on keycloak's SSL port. This is a blocker - especially in non-openshift clusters without Route CRD support. This PR makes the operator use https and the service's name instead.
@slaskawi I removed my old test and added the |
I'm seeing the same issue. |
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 the Pull Request @mgoltzsche !
@stianst @abstractj This one is ready to be integrated.
There a plan for when 8.0.2 would be released with the fix? |
@kfox1111 It depends on the other sub-projects. We release all Keycloak bits together. However, you can use the |
Ah, nice. I'll give that a try. Thanks! |
Question in general. How do you override the tag to master when your using the olm? It kept reverting things so I scaled down the olm to 0 so I could edit it for testing. But that seems like a wrong thing to do. Master does seem to have the patch. Which is good. Some things wrong:
user:
status:
message: 'error performing token request: Post https://keycloak.my-keycloak-operator.svc:8443/auth/realms/master/protocol/openid-connect/token:
remote error: tls: handshake failure'
phase: failing I also can't curl from minikube to the cluster ip: Guessing this is a cert issue? |
No workie:
Logs from keycloak:
Then the pod is restarted and keeps doing the same thing. It never comes up. |
Looks like the liveness hook was killing it prematurely. I temporarily removed and keycloak came up. I can not test though that the operator based objects now work with this patch in place. As if I leave the operator running so it processes KeycloakUser objects, it forces in the liveness hook back in, and that kills the keycloak prematurely. |
@kfox1111 Yes, this is a known issue: https://issues.redhat.com/browse/KEYCLOAK-12398 Unfortunately there's no workaround for it at the moment. |
JIRA ID
KEYCLOAK-12449
Additional Information
The operator failed to sync CRs into its keycloak cluster using the
service since it used http and the service's IP on keycloak's SSL port.
This is a blocker - especially in non-openshift clusters without Route
CRD support.
This PR makes the operator use https and the service's name instead.
Verification Steps
see https://issues.redhat.com/browse/KEYCLOAK-12449
Checklist: