keycloak-config-cli icon indicating copy to clipboard operation
keycloak-config-cli copied to clipboard

enabling a realm clears the value of eventsExpiration

Open vwegert-mag opened this issue 9 months ago • 0 comments

Current Behavior

  1. The user event expiration period (Realm Settings > Events > User event settings > Expiration , eventsExpiration) is removed when a realm is enabled using an isolated configuration file.

Expected Behavior

When importing the config as shown below, I expect the value of eventsExpiration to stay unaffected

Steps To Reproduce

  1. Import the following configuration yaml file
realm: dummy
eventsEnabled: true
eventsExpiration: 123
enabled: true

Result: The realm is created, enabled and the expiration period is set.

  1. Now split the configuration in two separate files:
# --- file 1 ---
realm: dummy
eventsEnabled: true
eventsExpiration: 123

and

# --- file 2 ---
realm: dummy
enabled: true

and import both files at the same time. Result: the value of eventsExpiration is empty.

Environment

  • Keycloak Version: 24.0.2
  • keycloak-config-cli Version: 5.12.0
  • Java Version: 17.0.11

Anything else?

No response

vwegert-mag avatar May 14 '24 13:05 vwegert-mag