Is there a possibility to add a readiness check to check if the admin user exists? #29047
-
DescriptionI come from dasniko/testcontainers-keycloak#133 where we use Keycloak to test our app OAuth2/OpenID features via testcontainers framework. However, most of the time the container is marked as "ready" (when calling /health endpoints) before the admin user has been created. Is it possible to extend, either officially or via an extension, the readiness check to not mark the app as ready before the admin user has been initialized? DiscussionNo response MotivationNo response DetailsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@ahus1 Do you have some idea to this? As @ZIRAKrezovic described in the mentioned dasniko/testcontainers-keycloak#133, the container is somehow "ready", but auth requests fail with a For the time being, I changed my wait strategy to observe the log output, but I don't like this approach, I'd love to have a reliable health endpoint. |
Beta Was this translation helpful? Give feedback.
Sorry, it was late yesterday, and my note was a bit short: Yes, IMHO Keycloak is missing a Java class that hooks into the Quarkus startup probe which will then be part of
/health/startup
.The Keycloak team should add the Java class, and you should call
/health/startup
for the testcontainer.