We've been working on adding Auth to Apicurio Registry recently using Quarkus OIDC to integrate with Keycloak/RHSSO. Everything is working rather nicely and the set of config properties available are great. One thing we're trying to figure out is how best to offer a "auth disabled" option without building additional docker images. The docs indicate that "quarkus.oidc.enabled" is a build time property, and if that is set to true, then it seems that the OIDC server URL must be configured and actually available when the app starts up, otherwise it fails.
Everything else is configurable at runtime, including which endpoints to secure (or not). We were hoping to be able to e.g. disable authentication at runtime by simply setting all endpoints to be non-secured. But we still need an OIDC server even though it won't be used.
Is there a recommended way to enable the OIDC feature but have a runtime config that effectively turns it off?