Open HerrDerb opened 2 months ago
/cc @pedroigor (keycloak), @sberyozkin (keycloak)
Might actually not be relevant for you as we use our own image... If you already enabled --features=hostname:v1
in the default keycloak dev service image, feel free to close this issue
Workaround that works for me:
quarkus.keycloak.devservices.show-logs=true
quarkus.keycloak.devservices.start-command=start --http-enabled=true --hostname-strict=false --features=hostname:v1
Logs:
2024-08-13 14:19:00,476 INFO [io.qua.oid.dep.dev.key.KeycloakDevServicesProcessor] (docker-java-stream--657611309) Keycloak: 2024-08-13 12:18:58,111 WARN [org.key.com.Profile] (main) Deprecated features enabled: hostname:v1
2024-08-13 14:19:00,478 INFO [io.qua.oid.dep.dev.key.KeycloakDevServicesProcessor] (docker-java-stream--657611309) Keycloak: 2024-08-13 12:18:58,137 WARN [org.key.qua.run.cli.Picocli] (main) The following used options or option values are DEPRECATED and will be removed or their behaviour changed in a future release:
2024-08-13 14:19:00,478 INFO [io.qua.oid.dep.dev.key.KeycloakDevServicesProcessor] (docker-java-stream--657611309) Keycloak: - hostname-strict
2024-08-13 14:19:00,478 INFO [io.qua.oid.dep.dev.key.KeycloakDevServicesProcessor] (docker-java-stream--657611309) Keycloak: - hostname-port
2024-08-13 14:19:00,479 INFO [io.qua.oid.dep.dev.key.KeycloakDevServicesProcessor] (docker-java-stream--657611309) Keycloak: - hostname
2024-08-13 14:19:00,479 INFO [io.qua.oid.dep.dev.key.KeycloakDevServicesProcessor] (docker-java-stream--657611309) Keycloak: Consult the Release Notes for details.
2024-08-13 14:19:00,483 INFO [io.qua.oid.dep.dev.key.KeycloakDevServicesProcessor] (docker-java-stream--657611309) Keycloak: 2024-08-13 12:18:59,068 WARN [org.key.com.Profile] (main) Deprecated features enabled: hostname:v1
It seems like integration tests for Keycloak DevServices are missing.
@andrejpetras We do have them, but not for the shared network case, we actually used to have them but they got accidentally dropped during some restructuring. I think we can hopefully fix this issue by reintroducing them
Since keycloak 25.0.0. hostname:v1 is disabled by default. Therefor the dev service will fail to start if
useSharedNetwork
evaluates totrue
https://github.com/quarkusio/quarkus/blob/main/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/devservices/keycloak/KeycloakDevServicesProcessor.java#L517