PhilanthropyDataCommons / deploy

Deployment scripts for Philanthropy Data Commons service
GNU Affero General Public License v3.0
2 stars 2 forks source link

Upgrade Keycloak #95

Closed bickelj closed 9 months ago

bickelj commented 1 year ago

The Keycloak major version is currently 22 while we have 20 deployed. When moving Keycloak to another machine #94, upgrade it, make sure it works with the extension libraries (https://github.com/PhilanthropyDataCommons/auth/issues/27).

bickelj commented 1 year ago

We have a separate machine with Keycloak installed but it needs some work:

A possible plan is this:

  1. Take a snapshot of that machine
  2. Create an associated test machine from that snapshot
  3. Do the upgrade in test
  4. Do the upgrade in prod
  5. Do steps 1-4 for the db as well

However, that machine also has a database associated, also with an old version of Postgresql. So there is more to it. But it still may be worthwhile to do the clone of the database, etc., as well.

Since this machine is currently unused, it would be faster to reverse some of the steps:

  1. Do the upgrades in prod (unused prod)
  2. Clone/fork the machine and DB in prod.
bickelj commented 1 year ago

I upgraded the DB to Postgres 15 and the underlying machine to Debian 12 bookworm. And after upgrading, all seems OK with Keycloak (e.g. I can log in successfully to the admin interface and poke around with no errors, indicating nginx, openjdk, keycloak, etc., all work).

bickelj commented 1 year ago

The above work was done under the assumption that we were going to unify Keycloak instances. However, that is not the case. PDC still needs its own separate instance, which has yet to be upgraded.

bickelj commented 9 months ago

We upgraded but need another upgrade. Keeping it open until that's complete.

slifty commented 9 months ago

@bickelj the issue body is specific about a particular version (title should too to be honest) -- could you document what version we've upgraded to and what version you want us to upgrade to?

bickelj commented 9 months ago

We are on a 22 version, need to be on a 23 version, currently 23.0.5.

bickelj commented 9 months ago

Upgrade to 23.0.5 complete.