We can not export data from a hosted RHSSO container created using an OpenShift template. The "Export and Import" chapter of the RHSSO Server Administration Guide indicates that it is possible to export data by setting the following Java system properties when starting the RHSSO instance:
-Dkeycloak.migration.action=export \ -Dkeycloak.migration.provider=singleFile \ -Dkeycloak.migration.file=/tmp/realm-export.json \ -Dkeycloak.migration.usersExportStrategy=SKIP
However, when those properties are added to the
JAVA_OPTS_APPENDenvironment variable in the RHSSO deployment configuration, the RHSSO pod logs report the following on start up instead:
[32m09:12:10,135 DEBUG [org.jboss.as.config] (MSC service thread 1-7) Configured system properties:[Standalone] = . . . keycloak.migration.action = import keycloak.migration.file = /opt/eap/standalone/configuration/import-realm.json keycloak.migration.provider = singleFile keycloak.migration.strategy = IGNORE_EXISTING keycloak.migration.usersExportStrategy = SKIP
Where do those
importoptions come from and how can they be removed in order to export?
- Red Hat OpenShift Container Platform 3.6
- Red Hat Single Sign-On (RHSSO) 7.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.