Bug 56747 - Script which checks the migration status from SSPHP/OIDCP to Keycloak
Script which checks the migration status from SSPHP/OIDCP to Keycloak
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Keycloak
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-5-errata
Assigned To: Julia Bremer
Nikola Radovanovic
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-10-17 22:03 CEST by Julia Bremer
Modified: 2023-11-09 13:45 CET (History)
0 users

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julia Bremer univentionstaff 2023-10-17 22:03:33 CEST
For the upgrade to 5.2, we need a script that checks that the Keycloak migration has been done, as simpleSAMLphp / Kopano Konnect will be removed during the upgrade. 

There is no easy way to check it automatically - there might be one service where some clients are configured, e.g. some external ones.
Keycloak being installed doesn't mean anything, it could just be an unsused installation. 
So during upgrade, we'll have to check if all saml/serviceproviders, oidc/rpservice objects have been removed and Keycloak has been installed in the domain.
The script should also be able to delete those objects, and make an (ldif?) backup of them, just in case. 

Only after then, a customer can update. 
We'll put this in the migration guide as well.
This script must be available in 5.0-5 and must be run in the preup check of 5.1.
Comment 1 Julia Bremer univentionstaff 2023-11-02 12:54:37 CET
Package: univention-keycloak
Version: 1.0.9-32
Branch: ucs_5.0-0
Scope: errata5.0-5
User: jbremer
d1369c3471a9502296a178a924f7bf37cc75b7f7 Bug #56747: Add migration status file


A script has been added which checks if the Keycloak migration was done. 
It can also be used to remove all saml serviceprovider / oidc relying parties.
Comment 2 Nikola Radovanovic univentionstaff 2023-11-07 08:03:44 CET
YAML: OK
Package builds: OK
Code: OK
Tested: w/o Keycloak installed