[keycloak-user] How to best deal with changes in the Keycloak realm JSON files during upgrades?

Edgar Vonk - Info.nl Edgar at info.nl
Fri Jan 6 05:08:36 EST 2017


Hi,

The structure of the Keycloak realm JSON files changes sometimes with new versions of Keycloak. Since we use these realm JSON files to manage all our custom settings in Keycloak (we store them in Git etc) in a fully automated way (continuous delivery) this is quite problematic for us since we need to figure out exactly what has changed. E.g. I think in Keycloak 2.3.0 the structure of the LDAP federations changed considerably. 

How do other people deal with this? Or do people usually not manage their Keycloak settings this way?

What does somewhat surprise me is that even though we did not upgrade our realm JSON files for this particular LDAP federations change our old files could still be imported in Keycloak 2.5.0 fine. I guess Keycloak is backwards compatible to importing the old JSON structure for a few releases? As soon as you export the realm files of course the new structure is used.

cheers


More information about the keycloak-user mailing list