Hyperfoil / Horreum

Benchmark results repository service
https://horreum.hyperfoil.io/
Apache License 2.0
37 stars 31 forks source link

Incorrect keycloak realm used in dev mode for keycloak client #1757

Closed johnaohara closed 3 months ago

johnaohara commented 4 months ago

Describe the bug

In dev mode, using horreum.roles.provider=keycloak, KeycloakUserBackend is using the incorrect realm to retrieve users/roles.

The KeycloakUserBackend is using quarkus.keycloak.admin-client.realm ; https://github.com/Hyperfoil/Horreum/blob/b955bde0dce8d6eb160c55b5c7441c64141f41b3/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/user/KeycloakUserBackend.java#L46

in dev mode this is set to the master realm;

https://github.com/Hyperfoil/Horreum/blob/b955bde0dce8d6eb160c55b5c7441c64141f41b3/horreum-backend/src/main/resources/application.properties#L114

barreiro commented 3 months ago

fixed in #1708