apache / incubator-kie-issues

Apache License 2.0
12 stars 1 forks source link

`OIDC` error starting Quarkus applications when using the `data-index-persistence` add-ons. #715

Open pefernan opened 9 months ago

pefernan commented 9 months ago

The data-index-persistence-* addons recently introduced a dependency to quarkus-oidc (link to pom.xml) that enables OIDC by default in the application. This makes the Quarkus apps break at startup with the following errors:

WARN: Unrecognized configuration key "%s" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
Nov 20, 2023 10:35:47 PM io.quarkus.config
WARN: Unrecognized configuration key "%s" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
Nov 20, 2023 10:35:47 PM io.quarkus.config
WARN: Unrecognized configuration key "%s" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
Nov 20, 2023 10:35:47 PM io.quarkus.config
WARN: Unrecognized configuration key "%s" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
Nov 20, 2023 10:35:47 PM org.hibernate.Version
INFO: HHH000412: Hibernate ORM core version %s
Nov 20, 2023 10:35:47 PM org.hibernate.annotations.common.Version
INFO: HCANN000001: Hibernate Commons Annotations {%1$s}
Nov 20, 2023 10:35:47 PM org.hibernate.dialect.Dialect
INFO: HHH000400: Using dialect: %s
'quarkus.oidc.auth-server-url' property must be configured

It is possible to disable OIDC in the application and it starts normally but I think that this addons shouldn't add this dependency in this level.

# Temporary workaround to disable OIDC
quarkus.oidc.enabled=false
quarkus.oidc.tenant-enabled=false
quarkus.oidc.auth-server-url=none
eduardocerqueira commented 5 months ago

need to be revisited, in a chat with @elguardian seems it won't have direct impact to 9.1 and there is an impediment to get it implemented on time for this release.