Eurotermbank / Federated-Network-Toolkit-deployment

Other
2 stars 1 forks source link

Tutorial Kubernetes - Keycloak cofiguration fixes after deployment #81

Closed Marghis closed 2 years ago

Marghis commented 2 years ago

After deploying Toolkit using Kubernetes and Helm Chart method our Node was not fully functioning until I've made following changes to Keycloak configuration.

Login to Keycloak administration page

  1. Keycloak administration page - Realm settings - make sure realm Name is "toolkit" (not with capital T "Toolkit");
  2. Keycloak administration page - Clients - otk-frontend: Web Origins: + (only Plus sign)
  3. Keycloak administration page - Users - Select user which you are using for uploading terminology collections - Groups - Add to group Toolkit; User also must be assigned assigned role Terminology Manager in Role Mappings tab.

Note a) Before deploying via Helm Chart method in file _toolkit_helpers.tpl_ in section Create JwtBearer URL on line {{- $realms := "Toolkit" -}} change realm name to lower case {{- $realms := "toolkit" -}} b) When deploying via Kubernetes method make sure, that configmap.yaml section #termservice.yaml contains realm name in lowercase "toolkit": Auth__JwtBearer__Issuer: "https://auth.terminija.lki.lt/auth/realms/toolkit"

I'd suggest including abovementioned instructions into Kubernetes tutorial and amending toolkit.json in seed-data folder and _toolkit_helpers.tpl_ in Helm Chart.