8000 Enhance mapping from env variables to wildcards · Issue #38259 · keycloak/keycloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Enhance mapping from env variables to wildcards #38259
Closed
@shawkins

Description

@shawkins

Description

Our current / default strategy is to replace all "_" in the wildcard with ".". This is a reasonable assumption for log categories, but will likely not work for datasource names and does not allow for other special characters such as _, or $.

One proposal is to change the default mapping per wildcard - so for example datasource names would default to using "-" instead of ".".

In addition to, or as an alternative, we should provide the user a way to fully specify the desired mapping.
#38166 showed a quarkus like mechanism for this - if a mapping that matches the ENV key exists in the keycloak.properties, then we'll use that key instead.

Since this mechanism makes usability a little more difficult in a containerized environment, in particular from the operation. We can also consider an env variale only way of doing this.

For example require both:

KC_LOG_LEVEL_SOME_THING=value
KCENV_LOG_LEVEL_SOME_THING=some_thing

Or if we exclude a separator character from appearing in the wildcard value, we could support env entries like:

KCENV_LOG_LEVEL_SOME_THING=some_thing;value

Discussion

No response

Motivation

No response

Details

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0