Repository navigation
Replies: 4 comments 13 replies
|
This is related to the An alternative configuration file format for the Quarkus distribution proposal. |
|
I understand the willingness of separating the core Keycloak configurations from what is provided by the framework (and possibly unsupported). e.g. @stianst how do you see the system working if |
|
Is there any specific reason why |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
As a general rule Keycloak should be configurable as Keycloak, not as something that is powered by Quarkus. This includes defining the configuration attributes at a Keycloak level, and clearly documenting them (in CLI as well a documentation).
There may be times when there is a need to apply Quarkus configuration though. This could be configuration that haven't made available in Keycloak yet (for example Hashicorp Vault), or it may be special cases that are not generic enough to officially support. For the latter it is important to remember that Keycloak should be opinionated and smart, requiring as little configuration as possible.
At the moment it is permitted to use a mix of Keycloak and Quarkus configuration within
keycloak.properties. For example:The proposal here is to split the configuration where
keycloak.propertiescan only be used for official Keycloak configuration, with a separatequarkus.propertiesfile to apply unsupported Quarkus configuration. An examplequarkus.propertiesfile will be included in the distribution with a header warning that usage of this file is unsupported, and is used at your own risk. Further, changingquarkus.propertieswill only be supported at build-time, as usage of Quarkus properties is considered as customising Keycloak, rather than as configuring Keycloak.With two configuration files a clear separation is provided, and it is more obvious that one contains official configuration options, while the other is customising and is not supported at the same level. This should make it more obvious that whenever
quarkus.propertiesis used a request to add additional configuration to Keycloak should be considered. Further, this is also aligned with the approach taken to configure the embedded Infinispan server, where there is Keycloak level-configuration on the caches using the standard Keycloak configuration mechanisms, with a separatecache.xmlconfiguration file following the Infinispan configuration format.All reactions