diff --git a/horreum-backend/src/main/resources/application.properties b/horreum-backend/src/main/resources/application.properties index f4d097202..abf20a0e4 100644 --- a/horreum-backend/src/main/resources/application.properties +++ b/horreum-backend/src/main/resources/application.properties @@ -43,7 +43,10 @@ hibernate.jdbc.time_zone=UTC ## need to set following property in PROD env ##quarkus.oidc.auth-server-url=http://localhost:8180/realms/horreum quarkus.oidc.client-id=horreum -quarkus.oidc.credentials.secret=overridden-in-file-dot-env + +## Do not un comment the line below, there appears to be a bug in Quarkus 3.4.1 where dev services do not overwrite the config property +#quarkus.oidc.credentials.secret=overridden-in-file-dot-env + # This option lets HorreumAuthorizationFilter transform app keys sent as tokens quarkus.http.auth.proactive=false diff --git a/infra/horreum-dev-services/deployment/src/main/java/io/hyperfoil/tools/horreum/dev/services/deployment/HorreumDevServicesProcessor.java b/infra/horreum-dev-services/deployment/src/main/java/io/hyperfoil/tools/horreum/dev/services/deployment/HorreumDevServicesProcessor.java index 525381225..7f5a99b66 100644 --- a/infra/horreum-dev-services/deployment/src/main/java/io/hyperfoil/tools/horreum/dev/services/deployment/HorreumDevServicesProcessor.java +++ b/infra/horreum-dev-services/deployment/src/main/java/io/hyperfoil/tools/horreum/dev/services/deployment/HorreumDevServicesProcessor.java @@ -93,7 +93,7 @@ public void startHorreumContainers( .putAll(Map.of(HORREUM_DEV_POSTGRES_BACKUP, backupFilename)) .build(); } - HorreumResources.startContainers(containerArgs); + Map envvars = HorreumResources.startContainers(containerArgs); Map postrgesConfig = new HashMap<>(); String jdbcUrl = HorreumResources.postgreSQLResource.getJdbcUrl(); @@ -112,6 +112,7 @@ public void startHorreumContainers( keycloakConfig.put("quarkus.oidc.auth-server-url", "http://localhost:" + keycloakPort + "/realms/horreum"); keycloakConfig.put("horreum.keycloak.url", "http://localhost:" + keycloakPort); + keycloakConfig.put("quarkus.oidc.credentials.secret", envvars.get("quarkus.oidc.credentials.secret")); horreumKeycloakDevService = new DevServicesResultBuildItem.RunningDevService( HorreumResources.keycloakResource.getContainer().getContainerName(),