-
Hey there, Dominik from Keycloak team here. I have a question around the quarkus configuration, but let me explain the context first: As you perhaps know we have a kinda special quarkus case with keycloak, as we use the mutual jar approach to make the All works fine here as long as we have wrapped quarkus properties (see here for our wrappers). Nevertheless we also have the capability for people who really want to use quarkus raw properties, to use a As of now, all quarkus properties are handled as. But SYSLOG is environment dependant (having an external syslog server whose url changes from dev to stage to prod to ...) so the person asked to also be able to use quarkus runtime config as runtime config in keycloak. This is why I created this PoC today. With these changes in, it works to have quarkus runtime properties also handled as keycloak runtime properties, and quarkus buildtime properties need a build. So nearly all is fine. Nearly? Yeh, well, remember the So for I am well aware this is kind of against the quarkus mindset, so tbh I expect a "no thats not possible", but wanted to ask before going ahead. In case of doubt this is more of a documentation issue for an edge case on our side, so when people really want to use quarkus raw config they need to rely on quarkus raw behaviour, that is "auto-build does not work with raw quarkus buildtime config". As said, just wanted to ask if I am missing something ;) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can scan for annotations and get a good first guess. We could also generate a file describing the config which would include what is buildtime vs runtime config. We kind have parts of it for all guide generation. So to answer the question - I would generate this per jar and embed it in meta-inf to be able to look it up without starting quarkus. Useful for not just your case but dev time tools such as an IDE. This is an old idea but I think we should explore it. See #5229 there is also a thread on quarkus-dev on this. |
Beta Was this translation helpful? Give feedback.
https://github.com/quarkusio/quarkus/blob/main/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java probably contains what you need, but it is not intended to be a public API.
Anyway, have a look and we can probably adjust some pieces and offer a public API to solve this use case.