Hello All,
I am new to Keycloak and walking through a number of issues, for which I have found great help here.
I am working with the Keycloak Operator on RH OCP.
I have successfully set up Keycloak and am authenticating against it.
We have 3 environments on our non-prod cluster: sandbox, dev, uat. Up till now, I have set up a separate Keycloak instance for each environment.
I am now trying to set up a single Keycloak instance in the cluster, with separate realms for each environment instead.
When I create my second KeycloakRealmImport, I am getting the following error:
2024-08-14 13:39:34,724 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to start server in (import_export) mode
2024-08-14 13:39:34,725 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) Error details:: java.lang.RuntimeException: Resource with id or name [User Resource] does not exist or is not owned by the resource server
Questions:
Am I going down the right path? Is 1 Keycloak with separate Realms the way to go, or keep separate Keycloak instances?
Assuming 1 Keycloak / Separate Realms is good: has anyone encountered this issue with the import of the 2nd realm? (Creating 2nd & 3rd Realms manually works, but I’m trying to automate this as much as possible.)
Thanks in advance,
Scott