Repository navigation
docs: restart staging Keycloak after cloning the prod DB - #889
corneliusroemer wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I didn't make the changes to the clone script - so would be good if you (@anna-parker) could confirm that my reading is right that we should also restart keycloak. Probably not super important but now might not harm to restart? Or does this have some negative side effects? I remember we discussed that it would be good to keep keycloak functioning throughout rollouts so maybe not restarting is entirely intentional but the script output and README/SOPs should match one way or another. |
|
@corneliusroemer a manual restart of keycloak should not be required (we use the same signing key) but can be done safely probably the wording is a bit too severe on pathoplexus atm only these things can become stale: What can be stale until Keycloak restarts or the cache is cleared:
On the other hand restarting keycloak should have no risks so this is safe to do, so I will approve this :-) |
The clone script (
clone-prod-to-staging.shon the bastion) ends with "Please restart staging Keycloak (or clear its caches) to apply changes." It loads the prod realm data and the fixed staging signing key into the staging Keycloak DB while Keycloak is running, so Keycloak keeps serving its cached realm data until restarted. The README only restarted the backend.🤖 Generated with Claude Code