Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zusammenspiel von keycloakV24 und keycloakmigration - broken bei erneutem Start der Migration #248

Open
MrSebastian opened this issue May 21, 2024 · 5 comments
Assignees
Labels
bug Something isn't working dev-infrastructure every that is required for developing the system (keycloak, docker, ...)

Comments

@MrSebastian
Copy link
Member

MrSebastian commented May 21, 2024

Wird die Migration erneut gestartet kommt eine Exception dass der Realm bereits existiert (das erste Skript soll den Realm anlegen).

Beim Zusammenspiel mit Keycloak 20.0.5. wurde das entsprechende Skript geskippt.

Das Problem tritt auf bei Keycloak 24.0.4 in Verbindung mit Migration 0.2.55


Workaround

Immer eine komplette Migration machen in dem man im Keycloak den Realm löscht.

Ziel

Es wäre schön wenn das alte Verhalten wieder hergestellt werden könnte, da dass nur die neuen Skripte ausgeführt werden und keine Komplettmigration immer Pflicht ist.

@MrSebastian MrSebastian added bug Something isn't working dev-infrastructure every that is required for developing the system (keycloak, docker, ...) labels May 21, 2024
@MrSebastian
Copy link
Member Author

Mit dem RC für 0.2.56 von Migration habe ich es noch nicht ausprobiert.

@MrSebastian
Copy link
Member Author

Bei V20 vom Keycloak hilft ein Löschen des Realms nicht um noch einmal die komplette Migration laufen zu lassen

@MrSebastian MrSebastian self-assigned this Jul 11, 2024
@MrSebastian
Copy link
Member Author

Bei V20 vom Keycloak hilft ein Löschen des Realms nicht um noch einmal die komplette Migration laufen zu lassen

Damit das funktioniert müssen beim User mit dem die Migration erfolgt (admin) in den Attributes die Migrationseinträge entfernt werden (Auszug auf KeycloakMigration-Doku: The migration hashes are stored in the attribute named ‘migration’ in the migration user).

@MrSebastian
Copy link
Member Author

Empfehlung: wir bleiben bei KeycloakV20, da mit der Version 24 auch nicht mehr die Attribute über die Migration funktionieren. Erstellung einen Tickets zur Sache nach einer leichtgewichtigen Alternative zu Keycloak.

Mit Version 25 sehe ich das gleiche Problem. Das Anlegen von User-Attributen, welche zuerst in den Realm definiert werden müssen, ist aktuell über Keycloak-Migration nicht möglich.

@MrSebastian
Copy link
Member Author

Hilfts das bei dem Problem mit den User-Attributen:? https://www.keycloak.org/server/containers#_importing_a_realm_on_startup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dev-infrastructure every that is required for developing the system (keycloak, docker, ...)
Projects
None yet
Development

No branches or pull requests

1 participant