From 1c8087baafc3c4e3cb4bca82c2804adaf664c270 Mon Sep 17 00:00:00 2001 From: Peter Skopek Date: Fri, 5 Feb 2021 20:23:49 +0100 Subject: [PATCH] KEYCLOAK-17502 Galleon based server build --- distribution/adapters/wildfly-adapter/pom.xml | 10 - distribution/feature-packs/pom.xml | 1 + .../server-feature-pack-dependencies/pom.xml | 417 ++++++ .../feature-packs/server-feature-pack/pom.xml | 369 +---- .../adapter-galleon-pack/pom.xml | 11 +- distribution/galleon-feature-packs/pom.xml | 5 +- .../server-galleon-pack/assembly.xml | 39 + .../keycloak-server-galleon-pack-build.xml | 78 ++ .../server-galleon-pack/pom.xml | 434 ++++++ .../keycloak-server-galleon-pack-licenses.xml | 1236 +++++++++++++++++ .../rh-sso-server-galleon-pack-licenses.xml | 1221 ++++++++++++++++ .../configs/domain/domain.xml/config.xml | 24 + .../configs/host/host-master.xml/config.xml | 5 + .../configs/host/host-slave.xml/config.xml | 5 + .../configs/host/host.xml/config.xml | 5 + .../resources/configs/standalone/model.xml | 7 + .../standalone/standalone-ha.xml/config.xml | 5 + .../standalone/standalone.xml/config.xml | 5 + .../content/bin/add-user-keycloak.bat | 79 ++ .../content/bin/add-user-keycloak.sh | 79 ++ .../content/bin/federation-sssd-setup.sh | 44 + .../content/bin/migrate-domain-clustered.cli | 753 ++++++++++ .../content/bin/migrate-domain-standalone.cli | 654 +++++++++ .../content/bin/migrate-standalone-ha.cli | 891 ++++++++++++ .../content/bin/migrate-standalone.cli | 744 ++++++++++ .../docs/licenses/apache license 2.0.txt | 202 +++ .../content/docs/licenses/licenses.css | 22 + .../content/docs/licenses/licenses.xsl | 71 + .../domain-keycloak-clustered.xml | 47 + .../domain-keycloak-standalone.xml | 48 + .../domain-server-groups-keycloak.xml | 38 + .../resources/feature_groups/host-master.xml | 34 + .../resources/feature_groups/host-slave.xml | 28 + .../main/resources/feature_groups/host.xml | 35 + .../feature_groups/infinispan-dist-ejb.xml | 31 + .../infinispan-dist-hibernate.xml | 39 + .../infinispan-dist-keycloak.xml | 77 + .../feature_groups/infinispan-dist-server.xml | 22 + .../feature_groups/infinispan-dist-web.xml | 40 + .../feature_groups/infinispan-dist.xml | 14 + .../feature_groups/infinispan-local-ejb.xml | 28 + .../infinispan-local-hibernate.xml | 30 + .../infinispan-local-keycloak.xml | 67 + .../infinispan-local-server.xml | 19 + .../feature_groups/infinispan-local-web.xml | 37 + .../feature_groups/infinispan-local.xml | 14 + .../feature_groups/keycloak-datasource.xml | 18 + .../keycloak-server-subsystem.xml | 124 ++ .../feature_groups/standalone-ha.xml | 43 + .../resources/feature_groups/standalone.xml | 42 + .../layers/standalone/keycloak/layer-spec.xml | 19 + .../src/main/resources/modules/layers.conf | 1 + .../jackson-dataformat-cbor/main/module.xml | 28 + .../com/github/ua-parser/main/module.xml | 25 + .../com/google/zxing/core/main/module.xml | 30 + .../com/google/zxing/javase/main/module.xml | 31 + .../owasp-java-html-sanitizer/main/module.xml | 26 + .../openshift-restclient-java/main/module.xml | 34 + .../webauthn4j-core/main/module.xml | 32 + .../webauthn4j-util/main/module.xml | 29 + .../org/apache/commons/lang/main/module.xml | 30 + .../org/apache/commons/lang3/main/module.xml | 30 + .../apache/kerby/kerby-asn1/main/module.xml | 23 + .../keycloak/org/freemarker/main/module.xml | 31 + .../jboss-marshalling/main/module.xml | 37 + .../org/jboss/marshalling/main/module.xml | 29 + .../jboss/marshalling/river/main/module.xml | 32 + .../main/module.xml | 36 + .../keycloak/keycloak-common/main/module.xml | 30 + .../keycloak/keycloak-core/main/module.xml | 35 + .../keycloak-js-adapter/main/module.xml | 26 + .../main/module.xml | 37 + .../keycloak-ldap-federation/main/module.xml | 38 + .../keycloak-model-infinispan/main/module.xml | 44 + .../keycloak-model-jpa/main/module.xml | 46 + .../keycloak-model-map/main/module.xml | 43 + .../keycloak-saml-core-public/main/module.xml | 38 + .../keycloak-saml-core/main/module.xml | 40 + .../main/module.xml | 44 + .../keycloak-server-spi/main/module.xml | 38 + .../dependencies/main/module.xml | 29 + .../keycloak-server-subsystem/main/module.xml | 30 + .../WEB-INF/jboss-deployment-structure.xml | 27 + .../main/server-war/WEB-INF/web.xml | 71 + .../keycloak-services/main/module.xml | 81 ++ .../keycloak-sssd-federation/main/module.xml | 34 + .../keycloak-wildfly-adduser/main/module.xml | 40 + .../main/module.xml | 41 + .../main/module.xml | 55 + .../keycloak/org/liquibase/main/module.xml | 31 + .../keycloak/org/twitter4j/main/module.xml | 30 + .../resources/packages/client-cli/package.xml | 6 + .../map-storage-concurrenthashmap.cli | 0 .../packages/docs-examples/package.xml | 2 + .../identity/content/bin/product.conf | 1 + .../org/jboss/as/product/keycloak/module.xml | 1 + .../resources/packages/identity/package.xml | 4 + .../pm/wildfly/resources/bin/product.conf | 1 + .../product/keycloak/dir/META-INF/MANIFEST.MF | 3 + .../org/jboss/as/product/keycloak/module.xml | 26 + .../packages/identity/pm/wildfly/tasks.xml | 5 + .../packages/root/content/LICENSE.txt | 202 +++ .../main/resources/packages/root/package.xml | 6 + .../root/pm/wildfly/resources}/version.txt | 0 .../packages/root/pm/wildfly/tasks.xml | 5 + .../packages/themes/content/themes/README.txt | 3 + .../resources/packages/themes/package.xml | 6 + .../content}/welcome-content/index.html | 0 .../content}/welcome-content/robots.txt | 0 .../welcome-content-keycloak/package.xml | 3 + distribution/pom.xml | 18 + distribution/server-dist/assembly.xml | 135 +- distribution/server-dist/pom.xml | 264 +++- .../src/verifier/verifications.xml | 91 ++ distribution/server-legacy-dist/assembly.xml | 138 ++ distribution/server-legacy-dist/pom.xml | 144 ++ .../map-storage-concurrenthashmap.cli | 38 + .../src/main/modules/layers.conf | 0 .../server-legacy-dist/src/main/version.txt | 1 + .../src/main/welcome-content/index.html | 30 + .../src/main/welcome-content/robots.txt | 2 + distribution/server-overlay/pom.xml | 10 - pom.xml | 170 +++ .../default-server-subsys-config.properties | 2 + 124 files changed, 10439 insertions(+), 600 deletions(-) create mode 100644 distribution/feature-packs/server-feature-pack-dependencies/pom.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/assembly.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/keycloak-server-galleon-pack-build.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/pom.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/license/keycloak-server-galleon-pack-licenses.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/license/rh-sso-server-galleon-pack-licenses.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/domain/domain.xml/config.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/host/host-master.xml/config.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/host/host-slave.xml/config.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/host/host.xml/config.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/standalone/model.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/standalone/standalone-ha.xml/config.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/standalone/standalone.xml/config.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/add-user-keycloak.bat create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/add-user-keycloak.sh create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/federation-sssd-setup.sh create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-domain-clustered.cli create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-domain-standalone.cli create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-standalone-ha.cli create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-standalone.cli create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/docs/licenses/apache license 2.0.txt create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/docs/licenses/licenses.css create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/docs/licenses/licenses.xsl create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/domain-keycloak-clustered.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/domain-keycloak-standalone.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/domain-server-groups-keycloak.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/host-master.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/host-slave.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/host.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-ejb.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-hibernate.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-keycloak.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-server.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-web.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-ejb.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-hibernate.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-keycloak.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-server.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-web.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/keycloak-datasource.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/keycloak-server-subsystem.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/standalone-ha.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/standalone.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/layers/standalone/keycloak/layer-spec.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/layers.conf create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/github/ua-parser/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/google/zxing/core/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/google/zxing/javase/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/googlecode/owasp-java-html-sanitizer/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/openshift/openshift-restclient-java/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/webauthn4j/webauthn4j-core/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/webauthn4j/webauthn4j-util/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/apache/commons/lang/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/apache/commons/lang3/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/apache/kerby/kerby-asn1/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/freemarker/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/infinispan/jboss-marshalling/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/jboss/marshalling/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/jboss/marshalling/river/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-authz-policy-common/main/module.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-common/main/module.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-core/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-js-adapter/main/module.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-kerberos-federation/main/module.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-ldap-federation/main/module.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-model-infinispan/main/module.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-model-jpa/main/module.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-model-map/main/module.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-saml-core-public/main/module.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-saml-core/main/module.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-spi-private/main/module.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-spi/main/module.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/dependencies/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/main/module.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/main/server-war/WEB-INF/jboss-deployment-structure.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/main/server-war/WEB-INF/web.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-services/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-sssd-federation/main/module.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-wildfly-adduser/main/module.xml create mode 100755 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-wildfly-extensions/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-wildfly-server-subsystem/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/liquibase/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/twitter4j/main/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/client-cli/package.xml rename distribution/{server-dist/src/main => galleon-feature-packs/server-galleon-pack/src/main/resources/packages/docs-examples/content}/docs/examples/map-storage-concurrenthashmap.cli (100%) create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/docs-examples/package.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/content/bin/product.conf create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/content/modules/system/layers/keycloak/org/jboss/as/product/keycloak/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/package.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/pm/wildfly/resources/bin/product.conf create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/pm/wildfly/resources/modules/system/layers/keycloak/org/jboss/as/product/keycloak/dir/META-INF/MANIFEST.MF create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/pm/wildfly/resources/modules/system/layers/keycloak/org/jboss/as/product/keycloak/module.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/pm/wildfly/tasks.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/root/content/LICENSE.txt create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/root/package.xml rename distribution/{server-dist/src/main => galleon-feature-packs/server-galleon-pack/src/main/resources/packages/root/pm/wildfly/resources}/version.txt (100%) create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/root/pm/wildfly/tasks.xml create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/themes/content/themes/README.txt create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/themes/package.xml rename distribution/{server-dist/src/main => galleon-feature-packs/server-galleon-pack/src/main/resources/packages/welcome-content-keycloak/content}/welcome-content/index.html (100%) rename distribution/{server-dist/src/main => galleon-feature-packs/server-galleon-pack/src/main/resources/packages/welcome-content-keycloak/content}/welcome-content/robots.txt (100%) create mode 100644 distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/welcome-content-keycloak/package.xml mode change 100755 => 100644 distribution/server-dist/assembly.xml mode change 100755 => 100644 distribution/server-dist/pom.xml create mode 100644 distribution/server-dist/src/verifier/verifications.xml create mode 100755 distribution/server-legacy-dist/assembly.xml create mode 100755 distribution/server-legacy-dist/pom.xml create mode 100644 distribution/server-legacy-dist/src/main/docs/examples/map-storage-concurrenthashmap.cli rename distribution/{server-dist => server-legacy-dist}/src/main/modules/layers.conf (100%) create mode 100644 distribution/server-legacy-dist/src/main/version.txt create mode 100644 distribution/server-legacy-dist/src/main/welcome-content/index.html create mode 100644 distribution/server-legacy-dist/src/main/welcome-content/robots.txt diff --git a/distribution/adapters/wildfly-adapter/pom.xml b/distribution/adapters/wildfly-adapter/pom.xml index cc17317f80..03e3d05bc5 100644 --- a/distribution/adapters/wildfly-adapter/pom.xml +++ b/distribution/adapters/wildfly-adapter/pom.xml @@ -29,16 +29,6 @@ Keycloak Adapter Overlay Distribution - - - jboss - https://repository.jboss.org/nexus/content/groups/public/ - - false - - - - org.keycloak diff --git a/distribution/feature-packs/pom.xml b/distribution/feature-packs/pom.xml index 9ced9fff8e..fb9bea878a 100644 --- a/distribution/feature-packs/pom.xml +++ b/distribution/feature-packs/pom.xml @@ -32,6 +32,7 @@ adapter-feature-pack + server-feature-pack-dependencies server-feature-pack diff --git a/distribution/feature-packs/server-feature-pack-dependencies/pom.xml b/distribution/feature-packs/server-feature-pack-dependencies/pom.xml new file mode 100644 index 0000000000..ce6d6f6491 --- /dev/null +++ b/distribution/feature-packs/server-feature-pack-dependencies/pom.xml @@ -0,0 +1,417 @@ + + + + org.keycloak + feature-packs-parent + 14.0.0-SNAPSHOT + ../pom.xml + + 4.0.0 + + keycloak-server-feature-pack-dependencies + + Keycloak Feature Pack: Server Dependencies + pom + + + + com.github.ua-parser + uap-java + + + * + * + + + + + com.google.zxing + core + + + * + * + + + + + com.google.zxing + javase + + + * + * + + + + + com.googlecode.owasp-java-html-sanitizer + owasp-java-html-sanitizer + + + * + * + + + + + org.freemarker + freemarker + + + * + * + + + + + org.infinispan + infinispan-jboss-marshalling + + + * + * + + + + + org.jboss.marshalling + jboss-marshalling + + + * + * + + + + + org.jboss.marshalling + jboss-marshalling-river + + + * + * + + + + + org.keycloak + keycloak-authz-policy-common + + + * + * + + + + + org.keycloak + keycloak-common + + + * + * + + + + + org.keycloak + keycloak-core + + + * + * + + + + + org.keycloak + keycloak-js-adapter + + + * + * + + + + + org.keycloak + keycloak-kerberos-federation + + + * + * + + + + + org.keycloak + keycloak-ldap-federation + + + * + * + + + + + org.keycloak + keycloak-model-infinispan + + + * + * + + + + + org.keycloak + keycloak-model-jpa + + + * + * + + + + + org.keycloak + keycloak-model-map + + + * + * + + + + + org.keycloak + keycloak-saml-core + + + * + * + + + + + org.keycloak + keycloak-saml-core-public + + + * + * + + + + + org.keycloak + keycloak-server-spi + + + * + * + + + + + org.keycloak + keycloak-server-spi-private + + + * + * + + + + + org.keycloak + keycloak-services + + + * + * + + + + + org.keycloak + keycloak-sssd-federation + + + * + * + + + + + org.keycloak + keycloak-wildfly-adduser + + + * + * + + + + + org.keycloak + keycloak-wildfly-extensions + + + * + * + + + + + org.keycloak + keycloak-themes + + + * + * + + + + + org.keycloak + keycloak-wildfly-server-subsystem + + + * + * + + + + + org.keycloak + keycloak-client-cli-dist + zip + + + * + * + + + + + org.liquibase + liquibase-core + + + * + * + + + + + org.twitter4j + twitter4j-core + + + * + * + + + + + org.aesh + aesh + + + * + * + + + + + com.openshift + openshift-restclient-java + + + * + * + + + + + com.webauthn4j + webauthn4j-core + + + * + * + + + + + com.webauthn4j + webauthn4j-util + + + * + * + + + + + com.fasterxml.jackson.dataformat + jackson-dataformat-cbor + + + * + * + + + + + org.apache.kerby + kerby-asn1 + + + * + * + + + + + commons-lang + commons-lang + + + * + * + + + + + org.apache.commons + commons-lang3 + + + * + * + + + + + + + diff --git a/distribution/feature-packs/server-feature-pack/pom.xml b/distribution/feature-packs/server-feature-pack/pom.xml index 2a49161074..c5f8cfa7ab 100644 --- a/distribution/feature-packs/server-feature-pack/pom.xml +++ b/distribution/feature-packs/server-feature-pack/pom.xml @@ -30,374 +30,11 @@ pom - - com.github.ua-parser - uap-java - - - * - * - - - - - com.google.zxing - core - - - * - * - - - - - com.google.zxing - javase - - - * - * - - - - - com.googlecode.owasp-java-html-sanitizer - owasp-java-html-sanitizer - - - * - * - - - - - org.freemarker - freemarker - - - * - * - - - - - org.infinispan - infinispan-jboss-marshalling - - - * - * - - - - - - org.jboss.marshalling - jboss-marshalling - - - * - * - - - - - org.jboss.marshalling - jboss-marshalling-river - - - * - * - - - org.keycloak - keycloak-authz-policy-common - - - * - * - - - - - org.keycloak - keycloak-common - - - * - * - - - - - org.keycloak - keycloak-core - - - * - * - - - - - org.keycloak - keycloak-js-adapter - - - * - * - - - - - org.keycloak - keycloak-kerberos-federation - - - * - * - - - - - org.keycloak - keycloak-ldap-federation - - - * - * - - - - - org.keycloak - keycloak-model-infinispan - - - * - * - - - - - org.keycloak - keycloak-model-jpa - - - * - * - - - - - org.keycloak - keycloak-saml-core - - - * - * - - - - - org.keycloak - keycloak-saml-core-public - - - * - * - - - - - org.keycloak - keycloak-server-spi - - - * - * - - - - - org.keycloak - keycloak-server-spi-private - - - * - * - - - - - org.keycloak - keycloak-services - - - * - * - - - - - org.keycloak - keycloak-sssd-federation - - - * - * - - - - - org.keycloak - keycloak-wildfly-adduser - - - * - * - - - - - org.keycloak - keycloak-wildfly-extensions - - - * - * - - - - - org.keycloak - keycloak-themes - - - * - * - - - - - org.keycloak - keycloak-wildfly-server-subsystem - - - * - * - - - - - org.keycloak - keycloak-client-cli-dist - zip - - - * - * - - - - - org.liquibase - liquibase-core - - - * - * - - - - - org.twitter4j - twitter4j-core - - - * - * - - - - - org.aesh - aesh - - - * - * - - - - - com.openshift - openshift-restclient-java - - - com.webauthn4j - webauthn4j-core - - - * - * - - - - - com.webauthn4j - webauthn4j-util - - - * - * - - - - - com.fasterxml.jackson.dataformat - jackson-dataformat-cbor - - - * - * - - - - - org.apache.kerby - kerby-asn1 - - - * - * - - - - - commons-lang - commons-lang - - - * - * - - - - - org.apache.commons - commons-lang3 - - - * - * - - + keycloak-server-feature-pack-dependencies + ${project.version} + pom diff --git a/distribution/galleon-feature-packs/adapter-galleon-pack/pom.xml b/distribution/galleon-feature-packs/adapter-galleon-pack/pom.xml index 0e017a1000..aa0192a11e 100644 --- a/distribution/galleon-feature-packs/adapter-galleon-pack/pom.xml +++ b/distribution/galleon-feature-packs/adapter-galleon-pack/pom.xml @@ -23,7 +23,7 @@ 4.0.0 - + ${galleon-adapter-group-id} keycloak-adapter-galleon-pack @@ -258,15 +258,6 @@ org.keycloak - - - jboss - https://repository.jboss.org/nexus/content/groups/public/ - - false - - - org.wildfly diff --git a/distribution/galleon-feature-packs/pom.xml b/distribution/galleon-feature-packs/pom.xml index 7b18a5245f..307e98a1b2 100644 --- a/distribution/galleon-feature-packs/pom.xml +++ b/distribution/galleon-feature-packs/pom.xml @@ -23,7 +23,7 @@ 14.0.0-SNAPSHOT - Feature Pack Builds + Galleon Feature Pack Builds 4.0.0 @@ -32,5 +32,6 @@ adapter-galleon-pack - + server-galleon-pack + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/assembly.xml b/distribution/galleon-feature-packs/server-galleon-pack/assembly.xml new file mode 100644 index 0000000000..a4f8e11c46 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/assembly.xml @@ -0,0 +1,39 @@ + + + galleon-pack-src + + zip + + false + + + src/main/resources + + + + + target/unpacked-themes/theme + content/themes + + + target/keycloak-client-tools/bin + content/bin + + + src/main/resources/identity/module + + **/** + + modules/system/layers/keycloak/org/jboss/as/product/${product.slot} + true + + + src/main/resources/identity + + product.conf + + content/bin + true + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/keycloak-server-galleon-pack-build.xml b/distribution/galleon-feature-packs/server-galleon-pack/keycloak-server-galleon-pack-build.xml new file mode 100644 index 0000000000..a8fb68e29e --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/keycloak-server-galleon-pack-build.xml @@ -0,0 +1,78 @@ + + + + + + org.wildfly:wildfly-ee-galleon-pack + + + + + + + + + + org.wildfly:wildfly-galleon-pack + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.keycloak.keycloak-server-subsystem + + + org.keycloak.keycloak-server-subsystem + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/pom.xml b/distribution/galleon-feature-packs/server-galleon-pack/pom.xml new file mode 100644 index 0000000000..6e9bd8bcbd --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/pom.xml @@ -0,0 +1,434 @@ + + + + + 4.0.0 + + + org.keycloak + galleon-feature-packs-parent + 14.0.0-SNAPSHOT + + + org.keycloak + keycloak-server-galleon-pack + + Keycloak Galleon Feature Pack: Server + pom + + + ${project.build.directory}/resources/content/docs/licenses + + + + + + + org.wildfly.core + wildfly-core-feature-pack-common + pom + provided + + + + org.wildfly.core + wildfly-core-feature-pack-ee-8-api + pom + provided + + + + org.wildfly.core + wildfly-core-feature-pack-galleon-common + pom + provided + + + + org.wildfly.core + wildfly-core-feature-pack-galleon-pruned + pom + provided + + + + org.wildfly.core + wildfly-core-galleon-pack + pom + provided + + + + org.wildfly + wildfly-ee-galleon-pack + zip + + + + org.wildfly + wildfly-servlet-galleon-pack + zip + + + + org.wildfly.galleon-plugins + wildfly-galleon-plugins + provided + + + + org.wildfly.galleon-plugins + wildfly-config-gen + provided + + + + + org.keycloak + keycloak-server-feature-pack-dependencies + ${project.version} + pom + provided + + + + org.keycloak + keycloak-client-registration-cli + provided + + + + org.keycloak + keycloak-admin-cli + provided + + + + + + + + + maven-clean-plugin + + + auto-clean + initialize + + clean + + + + + + org.apache.maven.plugins + maven-resources-plugin + + + copy-resources + process-resources + + copy-resources + + + ${basedir}/target/resources + + + ${basedir}/src/main/resources + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-theme + process-resources + + unpack + + + + + org.keycloak + keycloak-themes + target/resources/packages/themes/content/themes + theme/*/** + + + ^\Qtheme/\E + ./ + + + + + + + + unpack-cli + process-resources + + unpack + + + + + org.keycloak + keycloak-client-cli-dist + zip + */** + + + ^\Qkeycloak-client-tools/\E + ./ + + + target/resources/packages/client-cli/content + + + + + + + + + + org.wildfly.galleon-plugins + wildfly-galleon-maven-plugin + + + keycloak-server-galleon-pack-build + + build-feature-pack + + prepare-package + + Keycloak + ${galleon.fork.embedded} + keycloak-server-galleon-pack-build.xml + + ${product.name} + ${product.name.full} + ${product.slot} + ${product.wildfly.console.slot} + ${project.version} + ${project.basedir} + + + + + + + + + + + community + + + !product + + + + + org.wildfly:wildfly-galleon-pack + + + + + org.wildfly + wildfly-galleon-pack + zip + + + * + * + + + + + + + + product + + + product + + + + + org.jboss.eap:wildfly-galleon-pack + + + + + org.jboss.eap + wildfly-galleon-pack + ${eap.version} + zip + + + * + * + + + + + + + + enforce + + + !skip-enforce + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-transitive-deps + + enforce + + + + + + + com.sun:tools + sun.jdk:jconsole + + org.keycloak:keycloak-server-feature-pack-dependencies + org.wildfly.core:wildfly-core-feature-pack-common + org.wildfly.core:wildfly-core-feature-pack-ee-8-api + org.keycloak:keycloak-client-registration-cli + org.keycloak:keycloak-admin-cli + + + + + + + + + + + + + enforce-product + + + enforce-product + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + org.jboss.maven.plugins.enforcer.rules + version-enforcer-rule + 1.0.0 + + + + + ban-non-product-deps + + enforce + + + + + ^((?!redhat).)*$ + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/license/keycloak-server-galleon-pack-licenses.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/license/keycloak-server-galleon-pack-licenses.xml new file mode 100644 index 0000000000..b04569f63d --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/license/keycloak-server-galleon-pack-licenses.xml @@ -0,0 +1,1236 @@ + + + + + + com.openshift + openshift-restclient-java + 8.0.0.Final + + + Eclipse Public License 1.0 + https://raw.githubusercontent.com/openshift/openshift-restclient-java/openshift-restclient-java-8.0.0.Final/license + + + + + com.googlecode.owasp-java-html-sanitizer + owasp-java-html-sanitizer + 20191001.1 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/OWASP/java-html-sanitizer/release-20191001.1/COPYING + + + + + com.google.zxing + core + 3.4.0 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/zxing/zxing/zxing-3.4.0/LICENSE + + + + + com.google.zxing + javase + 3.4.0 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/zxing/zxing/zxing-3.4.0/LICENSE + + + + + org.liquibase + liquibase-core + 3.5.5 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/liquibase/liquibase/liquibase-parent-3.5.5/LICENSE.txt + + + + + org.twitter4j + twitter4j-core + 4.0.7 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/yusuke/twitter4j/4.0.7/LICENSE.txt + + + + + org.freemarker + freemarker + 2.3.29 + + + Apache Software License 2.0 + https://git-wip-us.apache.org/repos/asf?p=freemarker.git;a=blob_plain;f=LICENSE;hb=v2.3.29 + + + + + aopalliance + aopalliance + 1.0 + + + Public Domain + http://aopalliance.sourceforge.net/ + + + + + org.codehaus.plexus + plexus-classworlds + 2.5.2 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/sonatype/plexus-classworlds/plexus-classworlds-2.5.2/LICENSE-2.0.txt + + + + + org.codehaus.plexus + plexus-utils + 3.1.1 + + + Apache Software License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.codehaus.plexus + plexus-component-annotations + 1.6.0 + + + Apache Software License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.codehaus.plexus + plexus-interpolation + 1.21 + + + Apache Software License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.apache.ant + ant-launcher + 1.8.4 + + + Apache Software License 2.0 + https://git-wip-us.apache.org/repos/asf?p=ant.git;a=blob_plain;f=LICENSE;hb=rel/1.8.4 + + + + + org.apache.ant + ant + 1.8.4 + + + Apache Software License 2.0 + https://git-wip-us.apache.org/repos/asf?p=ant.git;a=blob_plain;f=LICENSE;hb=rel/1.8.4 + + + + + org.apache.maven.wagon + wagon-http-shared + 3.0 + + + Apache Software License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.apache.maven.wagon + wagon-provider-api + 3.0 + + + Apache Software License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.apache.maven.wagon + wagon-http + 3.0 + + + Apache Software License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.apache.maven + maven-compat + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-model-builder + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-core + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-model + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-artifact + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-plugin-api + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-settings + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-repository-metadata + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-aether-provider + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-settings-builder + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + com.google.inject.extensions + guice-servlet + 4.0 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/google/guice/4.0/COPYING + + + + + org.eclipse.sisu + org.eclipse.sisu.plexus + 0.3.2 + + + Eclipse Public License 1.0 + http://git.eclipse.org/c/sisu/org.eclipse.sisu.inject.git/plain/LICENSE.txt?h=releases/0.3.2 + + + + + org.eclipse.sisu + org.eclipse.sisu.inject + 0.3.2 + + + Eclipse Public License 1.0 + http://git.eclipse.org/c/sisu/org.eclipse.sisu.inject.git/plain/LICENSE.txt?h=releases/0.3.2 + + + + + org.eclipse.aether + aether-util + 1.1.0 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.eclipse.aether + aether-impl + 1.1.0 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.eclipse.aether + aether-transport-wagon + 1.1.0 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.eclipse.aether + aether-connector-basic + 1.1.0 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.eclipse.aether + aether-transport-file + 1.1.0 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.eclipse.aether + aether-api + 1.1.0 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.eclipse.aether + aether-spi + 1.1.0 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.eclipse.aether + aether-transport-http + 1.1.0 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.eclipse.jdt.core.compiler + ecj + 4.6.1 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.sonatype.plexus + plexus-cipher + 1.7 + + + Apache Software License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.sonatype.plexus + plexus-sec-dispatcher + 1.3 + + + Apache Software License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.antlr + antlr-runtime + 3.5.2 + + + BSD 3-clause New or Revised License + https://raw.githubusercontent.com/antlr/antlr3/3.5.2/runtime/Python/LICENSE + + + + + org.kie + kie-api + 7.11.0.Final + + + Apache Software License 2.0 + https://raw.githubusercontent.com/kiegroup/drools/7.11.0.Final/LICENSE-ASL-2.0.txt + + + + + org.kie + kie-ci + 7.11.0.Final + + + Apache Software License 2.0 + https://raw.githubusercontent.com/kiegroup/droolsjbpm-knowledge/7.11.0.Final/LICENSE-ASL-2.0.txt + + + + + org.kie + kie-internal + 7.11.0.Final + + + Apache Software License 2.0 + https://raw.githubusercontent.com/kiegroup/droolsjbpm-knowledge/7.11.0.Final/LICENSE-ASL-2.0.txt + + + + + org.drools + drools-compiler + 7.11.0.Final + + + Apache Software License 2.0 + https://raw.githubusercontent.com/kiegroup/drools/7.11.0.Final/LICENSE-ASL-2.0.txt + + + + + org.drools + drools-core + 7.11.0.Final + + + Apache Software License 2.0 + https://raw.githubusercontent.com/kiegroup/drools/7.11.0.Final/LICENSE-ASL-2.0.txt + + + + + com.webauthn4j + webauthnj4-core + 0.12.0.RELEASE + + + Apache Software License 2.0 + https://raw.githubusercontent.com/webauthn4j/webauthn4j/0.12.0.RELEASE/LICENSE.txt + + + + + com.webauthn4j + webauthnj4-util + 0.12.0.RELEASE + + + Apache Software License 2.0 + https://raw.githubusercontent.com/webauthn4j/webauthn4j/0.12.0.RELEASE/LICENSE.txt + + + + + org.apache.kerby + kerby-asn1 + 2.0.0 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/apache/directory-kerby/kerby-all-2.0.0/LICENSE + + + + + org.infinispan + infinispan-jboss-marshalling + 10.1.8.Final + + + Apache Software License 2.0 + https://raw.githubusercontent.com/infinispan/infinispan/master/LICENSE.md + + + + + org.jboss.marshalling + jboss-marshalling + 2.0.11.Final + + + Apache Software License 2.0 + https://raw.githubusercontent.com/jboss-remoting/jboss-marshalling/main/LICENSE.txt + + + + + org.jboss.marshalling + jboss-marshalling-river + 2.0.11.Final + + + Apache Software License 2.0 + https://raw.githubusercontent.com/jboss-remoting/jboss-marshalling/main/LICENSE.txt + + + + + com.fasterxml.jackson.dataformat + jackson-dataformat-cbor + 2.10.1 + + + Apache Software License 2.0 + https://www.apache.org/licenses/LICENSE-2.0.txt + + + + + + + jQuery + + themes/keycloak/common/resources/node_modules/jquery/dist + + + + MIT License + https://raw.githubusercontent.com/jquery/jquery/3.2.1/LICENSE.txt + + + + + AngularJS + + themes/keycloak/common/resources/lib/angular + + + + MIT License + https://raw.githubusercontent.com/angular/angular.js/v1.4.4/LICENSE + + + + + angular-translate + + themes/keycloak/common/resources/node_modules/angular-translate/dist + themes/keycloak/common/resources/node_modules/angular-translate-loader-url + themes/keycloak/common/resources/node_modules/angular-translate/dist/angular-translate-loader-partial + + + + MIT License + https://raw.githubusercontent.com/angular-translate/angular-translate/2.15.1/LICENSE + + + + + ui-select2 + + themes/keycloak/common/resources/node_modules/angular-ui-select2 + + + + MIT License + https://raw.githubusercontent.com/angular-ui/ui-select2/v0.0.5/LICENSE + + + + + angular-ui-bootstrap + + themes/keycloak/common/resources/lib/angular/ui-bootstrap-tpls-0.11.0.js + + + + MIT License + https://raw.githubusercontent.com/angular-ui/bootstrap/0.11.0/LICENSE + + + + + Angular Treeview + + themes/keycloak/common/resources/lib/angular/treeview + + + + MIT License + https://raw.githubusercontent.com/eu81273/angular.treeview/master/LICENSE + + + + + safename + + themes/src/main/resources/theme/keycloak/common/resources/node_modules/safename + + + + MIT License + https://raw.githubusercontent.com/jacoborus/safename/master/LICENSE + + + + + Select2 + + themes/keycloak/common/resources/node_modules/select2 + + + + Apache Software License 2.0 + https://raw.githubusercontent.com/select2/select2/3.4.1/LICENSE + + + GNU General Public License v2.0 only + https://raw.githubusercontent.com/select2/select2/3.4.1/LICENSE + + + + + text-security + + themes/src/main/resources/theme/keycloak/common/resources/node_modules/text-security + + + + MIT License + https://raw.githubusercontent.com/noppa/text-security/master/LICENSE.txt + + + + + FileSaver.js + + themes/keycloak/common/resources/lib/filesaver/FileSaver.js + + + + MIT License + https://raw.githubusercontent.com/eligrey/FileSaver.js/1.3.2/LICENSE.md + + + + + angular-file-upload + + themes/keycloak/common/resources/lib/fileupload + + + + MIT License + https://raw.githubusercontent.com/danialfarid/ng-file-upload/1.1.10/LICENSE + + + + + UI.Ace + + themes/keycloak/common/resources/lib/ui-ace/ui-ace.min.js + themes/keycloak/common/resources/lib/ui-ace/ui-ace.js + + + + MIT License + https://raw.githubusercontent.com/angular-ui/ui-ace/src0.2.3/LICENSE + + + + + Ace Code Editor + + themes/keycloak/common/resources/lib/ui-ace + + + + BSD 3-clause New or Revised License + https://raw.githubusercontent.com/ajaxorg/ace-builds/v1.2.3/LICENSE + + + + + Font Awesome (Font) + + themes/src/main/resources/theme/keycloak/common/resources/node_modules/font-awesome/fonts + + + + SIL Open Font License 1.1 + https://raw.githubusercontent.com/FortAwesome/Font-Awesome/v4.3.0/README.md + + + + + RCUE + + themes/src/main/resources/theme/keycloak/common/resources/node_modules/rcue + + + + Apache Software License 2.0 + https://raw.githubusercontent.com/redhat-rcue/rcue/master/LICENSE.txt + + + + + Glyphicons Halflings + + themes/keycloak/common/resources/lib/components/bootstrap/dist/fonts + + + + MIT License + https://raw.githubusercontent.com/twbs/bootstrap/v3.3.1-130-gadd44ca/LICENSE + + + + + Patternfly + + themes/keycloak/common/resources/lib/patternfly + + + + MIT License + https://raw.githubusercontent.com/patternfly/patternfly/v3.59.4/LICENSE.txt + + + + + OpenSans + + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-BoldItalic-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Semibold-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBoldItalic-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBoldItalic-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBoldItalic-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-BoldItalic-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Italic-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBoldItalic-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Regular-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Italic-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-LightItalic-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBold-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Light-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Regular-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBold-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Regular-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-LightItalic-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Italic-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Light-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Regular-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Semibold-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Light-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBold-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Semibold-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Light-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-BoldItalic-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-LightItalic-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBold-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBold-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-LightItalic-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Regular-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Italic-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Semibold-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-LightItalic-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Italic-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Semibold-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Light-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-BoldItalic-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-BoldItalic-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBoldItalic-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.woff2 + + + + Apache Software License 2.0 + https://raw.githubusercontent.com/google/fonts/master/apache/opensans/LICENSE.txt + + + + + Zocial + + themes/keycloak/common/resources/lib/zocial + + + + MIT License + https://raw.githubusercontent.com/smcllns/css-social-buttons/547237515694d05eaa38aeae3fb4d2eb4dee1ac9/README.md + + + + + rfc4648.js + + services/src/main/resources/theme-resources/resources/base64url.js + + + + MIT License + https://raw.githubusercontent.com/swansontec/rfc4648.js/master/package.json + + + + + @emotion + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/emotion-js/emotion/master/LICENSE + + + + + stylis-rule-sheet + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/thysultan/stylis.js/master/LICENSE + + + + + change-case + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/blakeembrey/change-case/master/LICENSE + + + + + @patternfly + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/patternfly/patternfly-react/master/LICENSE + + + + + tabbable + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/davidtheclark/tabbable/master/LICENSE + + + + + xtend + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/Raynos/xtend/master/LICENSE + + + + + focus-trap + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/davidtheclark/focus-trap/master/LICENSE + + + + + prop-types + + themes/keycloak/common/resources/web_modules/common/index-fd2ed651.js + + + + MIT + https://raw.githubusercontent.com/facebook/prop-types/master/LICENSE + + + + + popper.js + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/FezVrasta/popper.js/master/LICENSE.md + + + + + tippy.js + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/atomiks/tippyjs/master/LICENSE + + + + + tslib + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + Apache-2.0 + https://raw.githubusercontent.com/Microsoft/tslib/master/LICENSE.txt + + + + + file-selector + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/react-dropzone/file-selector/master/LICENSE + + + + + attr-accept + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/okonet/attr-accept/master/LICENSE + + + + + react-dropzone + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/react-dropzone/react-dropzone/master/LICENSE + + + + + @pika-react + + themes/keycloak/common/resources/web_modules/react.js + + + + MIT + https://raw.githubusercontent.com/facebook/react/master/LICENSE + + + + + @pika-react-dom + + themes/keycloak/common/resources/web_modules/react-dom.js + + + + MIT + https://raw.githubusercontent.com/facebook/react/master/LICENSE + + + + + warning + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://github.com/BerkeleyTrue/warning/raw/master/LICENSE.md + + + + + invariant + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://raw.githubusercontent.com/zertosh/invariant/master/LICENSE + + + + + resolve-pathname + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://raw.githubusercontent.com/mjackson/resolve-pathname/master/LICENSE + + + + + value-equal + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://raw.githubusercontent.com/mjackson/value-equal/master/LICENSE + + + + + history + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://raw.githubusercontent.com/ReactTraining/history/master/LICENSE + + + + + react-router + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://raw.githubusercontent.com/ReactTraining/react-router/master/LICENSE + + + + + react-router-dom + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://raw.githubusercontent.com/ReactTraining/react-router/master/LICENSE + + + + + isarray + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://raw.githubusercontent.com/juliangruber/isarray/master/LICENSE + + + + + path-to-regexp + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://raw.githubusercontent.com/pillarjs/path-to-regexp/master/LICENSE + + + + + hoist-non-react-statics + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + BSD-3-Clause + https://raw.githubusercontent.com/mridgway/hoist-non-react-statics/master/LICENSE.md + + + + + object-assign + + themes/keycloak/common/resources/web_modules/common/index-fd2ed651.js + + + + MIT + https://raw.githubusercontent.com/sindresorhus/object-assign/master/license + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/license/rh-sso-server-galleon-pack-licenses.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/license/rh-sso-server-galleon-pack-licenses.xml new file mode 100644 index 0000000000..1cbd8f2577 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/license/rh-sso-server-galleon-pack-licenses.xml @@ -0,0 +1,1221 @@ + + + + + com.openshift + openshift-restclient-java + 8.0.0.Final-redhat-00001 + + + Eclipse Public License 1.0 + https://raw.githubusercontent.com/openshift/openshift-restclient-java/openshift-restclient-java-8.0.0.Final/license + + + + + com.googlecode.owasp-java-html-sanitizer + owasp-java-html-sanitizer + 20191001.1.0.redhat-00001 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/OWASP/java-html-sanitizer/release-20191001.1/COPYING + + + + + com.google.zxing + core + 3.4.0.redhat-00001 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/zxing/zxing/zxing-3.4.0/LICENSE + + + + + com.google.zxing + javase + 3.4.0.redhat-00001 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/zxing/zxing/zxing-3.4.0/LICENSE + + + + + org.liquibase + liquibase-core + 3.5.5.redhat-1 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/liquibase/liquibase/liquibase-parent-3.5.5/LICENSE.txt + + + + + org.twitter4j + twitter4j-core + 4.0.7.redhat-00002 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/yusuke/twitter4j/4.0.7/LICENSE.txt + + + + + org.freemarker + freemarker + 2.3.29.redhat-00001 + + + Apache Software License 2.0 + https://git-wip-us.apache.org/repos/asf?p=freemarker.git;a=blob_plain;f=LICENSE;hb=v2.3.29 + + + + + aopalliance + aopalliance + 1.0 + + + Public Domain + http://aopalliance.sourceforge.net/ + + + + + org.codehaus.plexus + plexus-classworlds + 2.5.2 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/sonatype/plexus-classworlds/plexus-classworlds-2.5.2/LICENSE-2.0.txt + + + + + org.codehaus.plexus + plexus-utils + 3.0.22 + + + Apache Software License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.codehaus.plexus + plexus-component-annotations + 1.6.0 + + + Apache Software License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.codehaus.plexus + plexus-interpolation + 1.21 + + + Apache Software License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.apache.ant + ant-launcher + 1.8.4 + + + Apache Software License 2.0 + https://git-wip-us.apache.org/repos/asf?p=ant.git;a=blob_plain;f=LICENSE;hb=rel/1.8.4 + + + + + org.apache.ant + ant + 1.8.4 + + + Apache Software License 2.0 + https://git-wip-us.apache.org/repos/asf?p=ant.git;a=blob_plain;f=LICENSE;hb=rel/1.8.4 + + + + + org.apache.maven.wagon + wagon-http-shared + 3.0 + + + Apache Software License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.apache.maven.wagon + wagon-provider-api + 3.0 + + + Apache Software License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.apache.maven.wagon + wagon-http + 3.0 + + + Apache Software License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.apache.maven + maven-compat + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-model-builder + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-core + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-model + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-artifact + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-plugin-api + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-settings + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-repository-metadata + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-aether-provider + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + org.apache.maven + maven-settings-builder + 3.3.9 + + + Apache Software License 2.0 + https://gitbox.apache.org/repos/asf?p=maven.git;a=blob_plain;f=LICENSE;hb=maven-3.3.9 + + + + + com.google.inject.extensions + guice-servlet + 4.0 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/google/guice/4.0/COPYING + + + + + org.eclipse.sisu + org.eclipse.sisu.plexus + 0.3.2 + + + Eclipse Public License 1.0 + http://git.eclipse.org/c/sisu/org.eclipse.sisu.inject.git/plain/LICENSE.txt?h=releases/0.3.2 + + + + + org.eclipse.sisu + org.eclipse.sisu.inject + 0.3.2 + + + Eclipse Public License 1.0 + http://git.eclipse.org/c/sisu/org.eclipse.sisu.inject.git/plain/LICENSE.txt?h=releases/0.3.2 + + + + + org.eclipse.aether + aether-util + 1.1.0 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.eclipse.aether + aether-impl + 1.1.0 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.eclipse.aether + aether-transport-wagon + 1.1.0 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.eclipse.aether + aether-connector-basic + 1.1.0 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.eclipse.aether + aether-transport-file + 1.1.0 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.eclipse.aether + aether-api + 1.1.0 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.eclipse.aether + aether-spi + 1.1.0 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.eclipse.aether + aether-transport-http + 1.1.0 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.eclipse.jdt.core.compiler + ecj + 4.6.1.redhat-1 + + + Eclipse Public License 1.0 + https://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt + + + + + org.sonatype.plexus + plexus-cipher + 1.7 + + + Apache Software License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.sonatype.plexus + plexus-sec-dispatcher + 1.3 + + + Apache Software License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + org.antlr + antlr-runtime + 3.5.2 + + + BSD 3-clause New or Revised License + https://raw.githubusercontent.com/antlr/antlr3/3.5.2/runtime/Python/LICENSE + + + + + org.kie + kie-api + 7.11.0.Final + + + Apache Software License 2.0 + https://raw.githubusercontent.com/kiegroup/drools/7.11.0.Final/LICENSE-ASL-2.0.txt + + + + + org.kie + kie-ci + 7.11.0.Final + + + Apache Software License 2.0 + https://raw.githubusercontent.com/kiegroup/droolsjbpm-knowledge/7.11.0.Final/LICENSE-ASL-2.0.txt + + + + + org.kie + kie-internal + 7.11.0.Final + + + Apache Software License 2.0 + https://raw.githubusercontent.com/kiegroup/droolsjbpm-knowledge/7.11.0.Final/LICENSE-ASL-2.0.txt + + + + + org.drools + drools-compiler + 7.11.0.Final + + + Apache Software License 2.0 + https://raw.githubusercontent.com/kiegroup/drools/7.11.0.Final/LICENSE-ASL-2.0.txt + + + + + org.drools + drools-core + 7.11.0.Final + + + Apache Software License 2.0 + https://raw.githubusercontent.com/kiegroup/drools/7.11.0.Final/LICENSE-ASL-2.0.txt + + + + + com.webauthn4j + webauthnj4-core + 0.12.0.RELEASE-redhat-00001 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/webauthn4j/webauthn4j/0.12.0.RELEASE/LICENSE.txt + + + + + com.webauthn4j + webauthnj4-util + 0.12.0.RELEASE-redhat-00001 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/webauthn4j/webauthn4j/0.12.0.RELEASE/LICENSE.txt + + + + + org.apache.kerby + kerby-asn1 + 2.0.0.redhat-00001 + + + Apache Software License 2.0 + https://raw.githubusercontent.com/apache/directory-kerby/kerby-all-2.0.0/LICENSE + + + + + org.infinispan + infinispan-jboss-marshalling + 10.1.8.Final + + + Apache Software License 2.0 + https://raw.githubusercontent.com/infinispan/infinispan/master/LICENSE.md + + + + + org.jboss.marshalling + jboss-marshalling + 2.0.11.Final + + + Apache Software License 2.0 + https://raw.githubusercontent.com/jboss-remoting/jboss-marshalling/main/LICENSE.txt + + + + + org.jboss.marshalling + jboss-marshalling-river + 2.0.11.Final + + + Apache Software License 2.0 + https://raw.githubusercontent.com/jboss-remoting/jboss-marshalling/main/LICENSE.txt + + + + + com.fasterxml.jackson.dataformat + jackson-dataformat-cbor + 2.9.10.redhat-00003 + + + Apache Software License 2.0 + https://www.apache.org/licenses/LICENSE-2.0.txt + + + + + + + jQuery + + themes/keycloak/common/resources/node_modules/jquery/dist + + + + MIT License + https://raw.githubusercontent.com/jquery/jquery/3.2.1/LICENSE.txt + + + + + AngularJS + + themes/keycloak/common/resources/lib/angular + + + + MIT License + https://raw.githubusercontent.com/angular/angular.js/v1.4.4/LICENSE + + + + + angular-translate + + themes/keycloak/common/resources/node_modules/angular-translate/dist + themes/keycloak/common/resources/node_modules/angular-translate-loader-url + themes/keycloak/common/resources/node_modules/angular-translate/dist/angular-translate-loader-partial + + + + MIT License + https://raw.githubusercontent.com/angular-translate/angular-translate/2.15.1/LICENSE + + + + + ui-select2 + + themes/keycloak/common/resources/node_modules/angular-ui-select2 + + + + MIT License + https://raw.githubusercontent.com/angular-ui/ui-select2/v0.0.5/LICENSE + + + + + angular-ui-bootstrap + + themes/keycloak/common/resources/lib/angular/ui-bootstrap-tpls-0.11.0.js + + + + MIT License + https://raw.githubusercontent.com/angular-ui/bootstrap/0.11.0/LICENSE + + + + + Angular Treeview + + themes/keycloak/common/resources/lib/angular/treeview + + + + MIT License + https://raw.githubusercontent.com/eu81273/angular.treeview/master/LICENSE + + + + + safename + + themes/src/main/resources/theme/keycloak/common/resources/node_modules/safename + + + + MIT License + https://raw.githubusercontent.com/jacoborus/safename/master/LICENSE + + + + + Select2 + + themes/keycloak/common/resources/node_modules/select2 + + + + Apache Software License 2.0 + https://raw.githubusercontent.com/select2/select2/3.4.1/LICENSE + + + GNU General Public License v2.0 only + https://raw.githubusercontent.com/select2/select2/3.4.1/LICENSE + + + + + text-security + + themes/src/main/resources/theme/keycloak/common/resources/node_modules/text-security + + + + MIT License + https://raw.githubusercontent.com/noppa/text-security/master/LICENSE.txt + + + + + FileSaver.js + + themes/keycloak/common/resources/lib/filesaver/FileSaver.js + + + + MIT License + https://raw.githubusercontent.com/eligrey/FileSaver.js/1.3.2/LICENSE.md + + + + + angular-file-upload + + themes/keycloak/common/resources/lib/fileupload + + + + MIT License + https://raw.githubusercontent.com/danialfarid/ng-file-upload/1.1.10/LICENSE + + + + + UI.Ace + + themes/keycloak/common/resources/lib/ui-ace/ui-ace.min.js + themes/keycloak/common/resources/lib/ui-ace/ui-ace.js + + + + MIT License + https://raw.githubusercontent.com/angular-ui/ui-ace/src0.2.3/LICENSE + + + + + Ace Code Editor + + themes/keycloak/common/resources/lib/ui-ace + + + + BSD 3-clause New or Revised License + https://raw.githubusercontent.com/ajaxorg/ace-builds/v1.2.3/LICENSE + + + + + Font Awesome (Font) + + themes/src/main/resources/theme/keycloak/common/resources/node_modules/font-awesome/fonts + + + + SIL Open Font License 1.1 + https://raw.githubusercontent.com/FortAwesome/Font-Awesome/v4.3.0/README.md + + + + + RCUE + + themes/src/main/resources/theme/keycloak/common/resources/node_modules/rcue + + + + Apache Software License 2.0 + https://raw.githubusercontent.com/redhat-rcue/rcue/master/LICENSE.txt + + + + + Glyphicons Halflings + + themes/keycloak/common/resources/lib/components/bootstrap/dist/fonts + + + + MIT License + https://raw.githubusercontent.com/twbs/bootstrap/v3.3.1-130-gadd44ca/LICENSE + + + + + Patternfly + + themes/keycloak/common/resources/lib/patternfly + + + + MIT License + https://raw.githubusercontent.com/patternfly/patternfly/v3.59.4/LICENSE.txt + + + + + OpenSans + + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-BoldItalic-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Semibold-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBoldItalic-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBoldItalic-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBoldItalic-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-BoldItalic-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Italic-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBoldItalic-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Regular-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Italic-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-LightItalic-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBold-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Light-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Regular-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBold-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Regular-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-LightItalic-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Italic-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Light-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Regular-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Semibold-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Light-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBold-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Semibold-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Light-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-BoldItalic-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-LightItalic-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBold-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBold-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-LightItalic-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Regular-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Italic-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Semibold-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-LightItalic-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Italic-webfont.woff + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Semibold-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Light-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-BoldItalic-webfont.ttf + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-BoldItalic-webfont.eot + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.svg + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-ExtraBoldItalic-webfont.woff2 + themes/src/main/resources/theme/keycloak/common/resources/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.woff2 + + + + Apache Software License 2.0 + https://raw.githubusercontent.com/google/fonts/master/apache/opensans/LICENSE.txt + + + + + Zocial + + themes/keycloak/common/resources/lib/zocial + + + + MIT License + https://raw.githubusercontent.com/smcllns/css-social-buttons/547237515694d05eaa38aeae3fb4d2eb4dee1ac9/README.md + + + + + rfc4648.js + + services/src/main/resources/theme-resources/resources/base64url.js + + + + MIT License + https://raw.githubusercontent.com/swansontec/rfc4648.js/master/package.json + + + + + @emotion + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/emotion-js/emotion/master/LICENSE + + + + + stylis-rule-sheet + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/thysultan/stylis.js/master/LICENSE + + + + + change-case + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/blakeembrey/change-case/master/LICENSE + + + + + @patternfly + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/patternfly/patternfly-react/master/LICENSE + + + + + tabbable + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/davidtheclark/tabbable/master/LICENSE + + + + + xtend + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/Raynos/xtend/master/LICENSE + + + + + focus-trap + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/davidtheclark/focus-trap/master/LICENSE + + + + + prop-types + + themes/keycloak/common/resources/web_modules/common/index-fd2ed651.js + + + + MIT + https://raw.githubusercontent.com/facebook/prop-types/master/LICENSE + + + + + popper.js + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/FezVrasta/popper.js/master/LICENSE.md + + + + + tippy.js + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/atomiks/tippyjs/master/LICENSE + + + + + tslib + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + Apache-2.0 + https://raw.githubusercontent.com/Microsoft/tslib/master/LICENSE.txt + + + + + file-selector + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/react-dropzone/file-selector/master/LICENSE + + + + + attr-accept + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/okonet/attr-accept/master/LICENSE + + + + + react-dropzone + + themes/keycloak/common/resources/web_modules/@patternfly/react-core.js + + + + MIT + https://raw.githubusercontent.com/react-dropzone/react-dropzone/master/LICENSE + + + + + @pika-react + + themes/keycloak/common/resources/web_modules/react.js + + + + MIT + https://raw.githubusercontent.com/facebook/react/master/LICENSE + + + + + @pika-react-dom + + themes/keycloak/common/resources/web_modules/react-dom.js + + + + MIT + https://raw.githubusercontent.com/facebook/react/master/LICENSE + + + + + warning + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://github.com/BerkeleyTrue/warning/raw/master/LICENSE.md + + + + + invariant + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://raw.githubusercontent.com/zertosh/invariant/master/LICENSE + + + + + resolve-pathname + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://raw.githubusercontent.com/mjackson/resolve-pathname/master/LICENSE + + + + + value-equal + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://raw.githubusercontent.com/mjackson/value-equal/master/LICENSE + + + + + history + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://raw.githubusercontent.com/ReactTraining/history/master/LICENSE + + + + + react-router + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://raw.githubusercontent.com/ReactTraining/react-router/master/LICENSE + + + + + react-router-dom + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://raw.githubusercontent.com/ReactTraining/react-router/master/LICENSE + + + + + isarray + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://raw.githubusercontent.com/juliangruber/isarray/master/LICENSE + + + + + path-to-regexp + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + MIT + https://raw.githubusercontent.com/pillarjs/path-to-regexp/master/LICENSE + + + + + hoist-non-react-statics + + themes/keycloak/common/resources/web_modules/react-router-dom.js + + + + BSD-3-Clause + https://raw.githubusercontent.com/mridgway/hoist-non-react-statics/master/LICENSE.md + + + + + object-assign + + themes/keycloak/common/resources/web_modules/common/index-fd2ed651.js + + + + MIT + https://raw.githubusercontent.com/sindresorhus/object-assign/master/license + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/domain/domain.xml/config.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/domain/domain.xml/config.xml new file mode 100644 index 0000000000..61d6fdbb5e --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/domain/domain.xml/config.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/host/host-master.xml/config.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/host/host-master.xml/config.xml new file mode 100644 index 0000000000..59c2a27990 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/host/host-master.xml/config.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/host/host-slave.xml/config.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/host/host-slave.xml/config.xml new file mode 100644 index 0000000000..af8c40a223 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/host/host-slave.xml/config.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/host/host.xml/config.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/host/host.xml/config.xml new file mode 100644 index 0000000000..b42c0e7803 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/host/host.xml/config.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/standalone/model.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/standalone/model.xml new file mode 100644 index 0000000000..7455d294c9 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/standalone/model.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/standalone/standalone-ha.xml/config.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/standalone/standalone-ha.xml/config.xml new file mode 100644 index 0000000000..8731c54806 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/standalone/standalone-ha.xml/config.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/standalone/standalone.xml/config.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/standalone/standalone.xml/config.xml new file mode 100644 index 0000000000..b06b220662 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/configs/standalone/standalone.xml/config.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/add-user-keycloak.bat b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/add-user-keycloak.bat new file mode 100644 index 0000000000..0aa1dc9a63 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/add-user-keycloak.bat @@ -0,0 +1,79 @@ +@echo off +rem ------------------------------------------------------------------------- +rem Add User script for Windows +rem ------------------------------------------------------------------------- +rem +rem A simple utility for adding new users to the properties file used +rem for domain management authentication out of the box. + +rem $Id$ + +@if not "%ECHO%" == "" echo %ECHO% +@if "%OS%" == "Windows_NT" setlocal + +if "%OS%" == "Windows_NT" ( + set "DIRNAME=%~dp0%" +) else ( + set DIRNAME=.\ +) + +pushd "%DIRNAME%.." +set "RESOLVED_JBOSS_HOME=%CD%" +popd + +if "x%JBOSS_HOME%" == "x" ( + set "JBOSS_HOME=%RESOLVED_JBOSS_HOME%" +) + +pushd "%JBOSS_HOME%" +set "SANITIZED_JBOSS_HOME=%CD%" +popd + +if /i "%RESOLVED_JBOSS_HOME%" NEQ "%SANITIZED_JBOSS_HOME%" ( + echo. + echo WARNING: The JBOSS_HOME ^("%SANITIZED_JBOSS_HOME%"^) that this script uses points to a different installation than the one that this script resides in ^("%RESOLVED_JBOSS_HOME%"^). Unpredictable results may occur. + echo. + echo JBOSS_HOME: "%JBOSS_HOME%" + echo. +) + +rem Setup JBoss specific properties +if "x%JAVA_HOME%" == "x" ( + set JAVA=java + echo JAVA_HOME is not set. Unexpected results may occur. + echo Set JAVA_HOME to the directory of your local JDK to avoid this message. +) else ( + set "JAVA=%JAVA_HOME%\bin\java" +) + +rem set default modular jvm parameters +setlocal EnableDelayedExpansion +call "!DIRNAME!common.bat" :setDefaultModularJvmOptions "!JAVA_OPTS!" +set "JAVA_OPTS=!JAVA_OPTS! !DEFAULT_MODULAR_JVM_OPTIONS!" +setlocal DisableDelayedExpansion + +rem Find jboss-modules.jar, or we can't continue +if exist "%JBOSS_HOME%\jboss-modules.jar" ( + set "RUNJAR=%JBOSS_HOME%\jboss-modules.jar" +) else ( + echo Could not locate "%JBOSS_HOME%\jboss-modules.jar". + echo Please check that you are in the bin directory when running this script. + goto END +) + +rem Set default module root paths +if "x%JBOSS_MODULEPATH%" == "x" ( + set "JBOSS_MODULEPATH=%JBOSS_HOME%\modules" +) + +rem Uncomment to override standalone and domain user location +rem set "JAVA_OPTS=%JAVA_OPTS% -Djboss.server.config.user.dir=..\standalone\configuration -Djboss.domain.config.user.dir=..\domain\configuration" + +"%JAVA%" %JAVA_OPTS% ^ + -jar "%JBOSS_HOME%\jboss-modules.jar" ^ + -mp "%JBOSS_MODULEPATH%" ^ + org.keycloak.keycloak-wildfly-adduser ^ + %* + +:END +if "x%NOPAUSE%" == "x" pause diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/add-user-keycloak.sh b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/add-user-keycloak.sh new file mode 100755 index 0000000000..6999848e35 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/add-user-keycloak.sh @@ -0,0 +1,79 @@ +#!/bin/sh + +# Add User Utility +# +# A simple utility for adding new users to the properties file used +# for domain management authentication out of the box. +# + +DIRNAME=`dirname "$0"` +GREP="grep" + + . "$DIRNAME/common.sh" + +# OS specific support (must be 'true' or 'false'). +cygwin=false; +if [ `uname|grep -i CYGWIN` ]; then + cygwin=true; +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$JBOSS_HOME" ] && + JBOSS_HOME=`cygpath --unix "$JBOSS_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$JAVAC_JAR" ] && + JAVAC_JAR=`cygpath --unix "$JAVAC_JAR"` +fi + +# Setup JBOSS_HOME +RESOLVED_JBOSS_HOME=`cd "$DIRNAME/.."; pwd` +if [ "x$JBOSS_HOME" = "x" ]; then + # get the full path (without any relative bits) + JBOSS_HOME=$RESOLVED_JBOSS_HOME +else + SANITIZED_JBOSS_HOME=`cd "$JBOSS_HOME"; pwd` + if [ "$RESOLVED_JBOSS_HOME" != "$SANITIZED_JBOSS_HOME" ]; then + echo "WARNING: The JBOSS_HOME ($SANITIZED_JBOSS_HOME) that this script uses points to a different installation than the one that this script resides in ($RESOLVED_JBOSS_HOME). Unpredictable results may occur." + echo "" + fi +fi +export JBOSS_HOME + +# Setup the JVM +if [ "x$JAVA" = "x" ]; then + if [ "x$JAVA_HOME" != "x" ]; then + JAVA="$JAVA_HOME/bin/java" + else + JAVA="java" + fi +fi + +# Set default modular JVM options +setDefaultModularJvmOptions $JAVA_OPTS +JAVA_OPTS="$JAVA_OPTS $DEFAULT_MODULAR_JVM_OPTIONS" + +if [ "x$JBOSS_MODULEPATH" = "x" ]; then + JBOSS_MODULEPATH="$JBOSS_HOME/modules" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"` + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + JBOSS_MODULEPATH=`cygpath --path --windows "$JBOSS_MODULEPATH"` +fi + +# Sample JPDA settings for remote socket debugging +#JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=y" +# Uncomment to override standalone and domain user location +#JAVA_OPTS="$JAVA_OPTS -Djboss.server.config.user.dir=../standalone/configuration -Djboss.domain.config.user.dir=../domain/configuration" + +JAVA_OPTS="$JAVA_OPTS" + +eval \"$JAVA\" $JAVA_OPTS \ + -jar \""$JBOSS_HOME"/jboss-modules.jar\" \ + -mp \""${JBOSS_MODULEPATH}"\" \ + org.keycloak.keycloak-wildfly-adduser \ + '"$@"' diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/federation-sssd-setup.sh b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/federation-sssd-setup.sh new file mode 100644 index 0000000000..1eddb95978 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/federation-sssd-setup.sh @@ -0,0 +1,44 @@ +#!/bin/sh + +# Setup for SSSD +SSSD_FILE="/etc/sssd/sssd.conf" + +if [ -f "$SSSD_FILE" ]; +then + + if ! grep -q ^ldap_user_extra_attrs $SSSD_FILE; then + sed -i '/ldap_tls_cacert/a ldap_user_extra_attrs = mail:mail, sn:sn, givenname:givenname, telephoneNumber:telephoneNumber' $SSSD_FILE + fi + + if ! grep -q ^services.*ifp.* /etc/sssd/sssd.conf; then + sed -i '/^services/ s/$/, ifp/' $SSSD_FILE + fi + + if ! grep -q ^allowed_uids $SSSD_FILE; then + sed -i '/\[ifp\]/a allowed_uids = root' $SSSD_FILE + fi + + if ! grep -q ^user_attributes $SSSD_FILE; then + sed -i '/allowed_uids/a user_attributes = +mail, +telephoneNumber, +givenname, +sn' $SSSD_FILE + fi + + systemctl restart sssd + +else + echo "Please make sure you have $SSSD_FILE into your system! Aborting." + exit 1 +fi + +# Setup for PAM +PAM_FILE="/etc/pam.d/keycloak" + +if [ ! -f "$PAM_FILE" ]; +then +cat < $PAM_FILE + auth required pam_sss.so + account required pam_sss.so +EOF +else + echo "$PAM_FILE already exists. Skipping it..." + exit 0 +fi diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-domain-clustered.cli b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-domain-clustered.cli new file mode 100644 index 0000000000..3530730068 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-domain-clustered.cli @@ -0,0 +1,753 @@ +embed-host-controller --domain-config=domain.xml + +# Early versions of keycloak used "ha" for the clustered profile name. +# Yours maybe be something completely different. +set clusteredProfile=auth-server-clustered + +# keycloak-server.json is not normally on this path. +set pathToJson=../domain/configuration/keycloak-server.json + + +echo +echo *** Begin Migration of /profile=$clusteredProfile *** +echo + +# Migrate from 1.8.1 to 1.9.1 +if (outcome == failed) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/replicated-cache=work/:read-resource + echo Adding replicated-cache=work to keycloak cache container... + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/replicated-cache=work/:add(mode=SYNC) + echo +end-if +# realmVersions cache deprecated in 2.1.0 +#if (outcome == failed) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/:read-resource +# echo Adding local-cache=realmVersions to keycloak cache container... +# /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/:add(indexing=NONE,start=LAZY) +# /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/component=transaction/:write-attribute(name=mode,value=BATCH) +# echo +#end-if + +# Migrate from 1.9.1 to 1.9.2 +if (result == NONE) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/invalidation-cache=users/component=eviction/:read-attribute(name=strategy) + echo Adding eviction strategy to keycloak users cache container... + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/invalidation-cache=users/component=eviction/:write-attribute(name=strategy,value=LRU) + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/invalidation-cache=users/component=eviction/:write-attribute(name=max-entries,value=10000) + echo +end-if + +# Migrate from 1.9.2 to 2.0.0 +# NO CHANGES + +# Migrate from 2.0.0 to 2.1.0 +if (outcome == success) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/:read-resource + echo Removing deprecated cache 'realmVersions' + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/:remove + echo +end-if + +# Migrate kecloak-server.json (deprecated in 2.2.0) +if (result == []) of /profile=$clusteredProfile/subsystem=keycloak-server/:read-children-names(child-type=spi) + echo Migrating keycloak-server.json to keycloak-server subsystem... + /profile=$clusteredProfile/subsystem=keycloak-server/:migrate-json(file=$pathToJson) + echo +end-if +if (result == [expression "classpath:${jboss.server.config.dir}/providers/*"]) of /profile=$clusteredProfile/subsystem=keycloak-server/:read-attribute(name=providers) + echo Updating provider to default value + /profile=$clusteredProfile/subsystem=keycloak-server/:write-attribute(name=providers,value=[classpath:${jboss.home.dir}/providers/*]) + echo +end-if +if (result == keycloak) of /profile=$clusteredProfile/subsystem=keycloak-server/theme=defaults:read-attribute(name=default) + echo Undefining default theme... + /profile=$clusteredProfile/subsystem=keycloak-server/theme=defaults:undefine-attribute(name=default) + echo +end-if +if (result == expression "${jboss.server.config.dir}/themes") of /profile=$clusteredProfile/subsystem=keycloak-server/theme=defaults:read-attribute(name=dir) + echo Updating theme dir to default value + /profile=$clusteredProfile/subsystem=keycloak-server/theme=defaults/:write-attribute(name=dir,value=${jboss.home.dir}/themes) + echo +end-if + +set persistenceProvider=jpa + +# Migrate from 2.1.0 to 2.2.0 +if (outcome == failed) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/distributed-cache=authorization/:read-resource + # In migration from 3.0.0 to 3.2.0 there is authorization distributed-cache replaced with local-cache + try + echo + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/distributed-cache=authorization/:add(mode=SYNC,owners=1) + echo Added distributed-cache=authorization + catch + end-try +end-if + +if (result == update) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-get(name=properties,key=databaseSchema) + echo Updating connectionsJpa default properties... + /profile=$clusteredProfile/subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-remove(name=properties,key=databaseSchema) + /profile=$clusteredProfile/subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-put(name=properties,key=initializeEmpty,value=true) + /profile=$clusteredProfile/subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-put(name=properties,key=migrationStrategy,value=update) + /profile=$clusteredProfile/subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-put(name=properties,key=migrationExport,value=${jboss.home.dir}/keycloak-database-update.sql) + echo +end-if +if (outcome == failed) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=userFederatedStorage/:read-resource + echo Adding spi=userFederatedStorage... + /profile=$clusteredProfile/subsystem=keycloak-server/spi=userFederatedStorage/:add(default-provider=$persistenceProvider) + echo +end-if +if (outcome == failed) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=jta-lookup/:read-resource + echo Adding spi=jta-lookup... + /profile=$clusteredProfile/subsystem=keycloak-server/spi=jta-lookup/:add(default-provider=${keycloak.jta.lookup.provider:jboss}) + /profile=$clusteredProfile/subsystem=keycloak-server/spi=jta-lookup/provider=jboss/:add(enabled=true) + echo +end-if + +# Migrate from 2.2.0 to 2.2.1 +# NO CHANGES + +# Migrate from 2.2.1 to 2.3.0 +if (outcome == failed) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/:read-resource + echo Adding local-cache=keys to keycloak cache container... + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/:add(indexing=NONE,start=LAZY) + echo +end-if +if (result == undefined) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/component=eviction/:read-attribute(name=strategy,include-defaults=false) + echo Updating eviction and expiration in local-cache=keys... + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/component=eviction/:write-attribute(name=strategy,value=LRU) + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/component=eviction/:write-attribute(name=max-entries,value=1000) + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/component=expiration/:write-attribute(name=max-idle,value=3600000) + echo +end-if +if (outcome == failed) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=publicKeyStorage/:read-resource + echo Adding spi=publicKeyStorage... + /profile=$clusteredProfile/subsystem=keycloak-server/spi=publicKeyStorage/:add + /profile=$clusteredProfile/subsystem=keycloak-server/spi=publicKeyStorage/provider=infinispan/:add(properties={minTimeBetweenRequests => "10"},enabled=true) + echo +end-if + +# Migrate from 2.3.0 to 2.4.0 +if (outcome == success) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/invalidation-cache=users/:read-resource + echo Replacing invalidation-cache=users with local-cache=users + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/invalidation-cache=users/:remove + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=users/:add + echo +end-if +if (result == undefined) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=users/component=eviction/:read-attribute(name=strategy,include-defaults=false) + echo Updating eviction in local-cache=users + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=users/component=eviction/:write-attribute(name=strategy,value=LRU) + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=users/component=eviction/:write-attribute(name=max-entries,value=10000) + echo +end-if +if (outcome == success) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/invalidation-cache=realms/:read-resource + echo Replacing invalidation-cache=realms with local-cache=realms + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/invalidation-cache=realms/:remove + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realms/:add + echo +end-if + + +# Migrate from 2.4.0 to 2.5.0 +if (result == NONE) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realms/component=eviction/:read-attribute(name=strategy) + echo Adding eviction strategy to keycloak realms cache... + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realms/component=eviction/:write-attribute(name=strategy,value=LRU) + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realms/component=eviction/:write-attribute(name=max-entries,value=10000) + echo +end-if + +# Migrate from 2.5.0 to 2.5.1 +# NO CHANGES + +# Migrate 2.5.1 to 2.5.4 +if (result != REPEATABLE_READ) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=ejb/local-cache=persistent/component=locking/:read-attribute(name=isolation) + echo Changing ejb cache locking to REPEATABLE_READ + /profile=$clusteredProfile/subsystem=infinispan/cache-container=ejb/local-cache=persistent/component=locking/:write-attribute(name=isolation,value=REPEATABLE_READ) + echo +end-if + +if (outcome == success) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate/local-cache=immutable-entity/:read-resource + echo Removing Hibernate immutable-entity cache + /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate/local-cache=immutable-entity/:remove +end-if + + +# Migrate from 2.5.4 to 3.0.0 +if (result == jpa) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=eventsStore/:read-attribute(name=default-provider,include-defaults=false) + echo Removing default provider for eventsStore + /profile=$clusteredProfile/subsystem=keycloak-server/spi=eventsStore/:undefine-attribute(name=default-provider) + echo +end-if + +if ((outcome == success) && (result.default-provider == jpa) && (result.provider == undefined)) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=realm/:read-resource(recursive=false,include-defaults=false) + echo Removing declaration for user SPI + /profile=$clusteredProfile/subsystem=keycloak-server/spi=realm/:remove + echo +end-if + +if ((outcome == success) && (result.default-provider == jpa) && (result.provider == undefined)) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=user/:read-resource(recursive=false,include-defaults=false) + echo Removing declaration for user SPI + /profile=$clusteredProfile/subsystem=keycloak-server/spi=user/:remove + echo +end-if + +if ((outcome == success) && (result.default-provider == jpa) && (result.provider == undefined)) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=userFederatedStorage/:read-resource(recursive=false,include-defaults=false) + echo Removing declaration for userFederatedStorage SPI + /profile=$clusteredProfile/subsystem=keycloak-server/spi=userFederatedStorage/:remove + echo +end-if + +if ((outcome == success) && (result.default-provider == jpa) && (result.provider == undefined)) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=authorizationPersister/:read-resource(recursive=false,include-defaults=false) + echo Removing declaration for authorizationPersister SPI + /profile=$clusteredProfile/subsystem=keycloak-server/spi=authorizationPersister/:remove + echo +end-if + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=userCache/:read-resource + echo Adding userCache SPI + /profile=$clusteredProfile/subsystem=keycloak-server/spi=userCache/:add + /profile=$clusteredProfile/subsystem=keycloak-server/spi=userCache/provider=default/:add(enabled=true) + echo +end-if + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=realmCache/:read-resource + echo Adding realmCache SPI + /profile=$clusteredProfile/subsystem=keycloak-server/spi=realmCache/:add + /profile=$clusteredProfile/subsystem=keycloak-server/spi=realmCache/provider=default/:add(enabled=true) + echo +end-if + +if ((result.default-provider == undefined) && (result.provider.default.enabled == true)) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=connectionsInfinispan/:read-resource(recursive=true,include-defaults=false) + echo Adding 'default' as default provider for connectionsInfinispan + /profile=$clusteredProfile/subsystem=keycloak-server/spi=connectionsInfinispan/:write-attribute(name=default-provider,value=default) + echo +end-if + +# Migrate from 3.0.0 to 3.1.0 +# NO CHANGES + +# Migrate from 3.1.0 to 3.2.0 +if (outcome == failed) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/distributed-cache=authenticationSessions/:read-resource + echo Adding distributed-cache=authenticationSessions to keycloak cache container... + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/distributed-cache=authenticationSessions/:add(mode=SYNC,owners=1) + echo +end-if + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/distributed-cache=actionTokens/:read-resource + echo Adding distributed-cache=actionTokens to keycloak cache container... + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/distributed-cache=actionTokens/:add(indexing=NONE,mode=SYNC,owners=2) + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/distributed-cache=actionTokens/component=eviction/:write-attribute(name=strategy,value=NONE) + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/distributed-cache=actionTokens/component=eviction/:write-attribute(name=max-entries,value=-1) + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/distributed-cache=actionTokens/component=expiration/:write-attribute(name=interval,value=300000) + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/distributed-cache=actionTokens/component=expiration/:write-attribute(name=max-idle,value=-1) + echo +end-if + +if (outcome == success) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/distributed-cache=authorization/:read-resource + echo Replacing distributed-cache=authorization with local-cache=authorization + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/distributed-cache=authorization/:remove + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authorization/:add + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authorization/component=eviction/:write-attribute(name=strategy,value=LRU) + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authorization/component=eviction/:write-attribute(name=max-entries,value=10000) + echo +end-if + +# Migrate from 3.2.0 to 3.2.1 +# NO CHANGES + +# Migrate from 3.2.1 to 3.3.0 +if (outcome == failed) of /profile=$clusteredProfile/subsystem=core-management/:read-resource + try + echo Trying to add core-management extension + /extension=org.wildfly.extension.core-management/:add + echo + catch + echo Wasn't able to add core-management extension, it should be already added by migrate-domain-standalone.cli + echo + end-try + echo Adding subsystem core-management + /profile=$clusteredProfile/subsystem=core-management/:add + echo +end-if + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=elytron/:read-resource + try + echo Trying to add elytron extension + /extension=org.wildfly.extension.elytron/:add + echo + catch + echo Wasn't able to add elytron extension, it should be already added by migrate-domain-standalone.cli + echo + end-try + echo Adding subsystem elytron + /profile=$clusteredProfile/subsystem=elytron/:add + /profile=$clusteredProfile/subsystem=elytron/provider-loader=elytron/:add(module=org.wildfly.security.elytron) + /profile=$clusteredProfile/subsystem=elytron/provider-loader=openssl/:add(module=org.wildfly.openssl) + /profile=$clusteredProfile/subsystem=elytron/aggregate-providers=combined-providers/:add(providers=[elytron,openssl]) + /profile=$clusteredProfile/subsystem=elytron/file-audit-log=local-audit/:add(path=audit.log,relative-to=jboss.server.log.dir,format=JSON) + /profile=$clusteredProfile/subsystem=elytron/identity-realm=local/:add(identity="$local") + /profile=$clusteredProfile/subsystem=elytron/properties-realm=ApplicationRealm/:add(users-properties={path=application-users.properties,relative-to=jboss.domain.config.dir,digest-realm-name=ApplicationRealm},groups-properties={path=application-roles.properties,relative-to=jboss.domain.config.dir}) + /profile=$clusteredProfile/subsystem=elytron/simple-permission-mapper=default-permission-mapper/:add(mapping-mode=first,permission-mappings=[{principals=[anonymous],permissions=[{class-name=org.wildfly.extension.batch.jberet.deployment.BatchPermission,module=org.wildfly.extension.batch.jberet,target-name=*},{class-name=org.wildfly.transaction.client.RemoteTransactionPermission,module=org.wildfly.transaction.client},{class-name=org.jboss.ejb.client.RemoteEJBPermission,module=org.jboss.ejb-client}]},{match-all=true,permissions=[{class-name=org.wildfly.security.auth.permission.LoginPermission},{class-name=org.wildfly.extension.batch.jberet.deployment.BatchPermission,module=org.wildfly.extension.batch.jberet,target-name=*},{class-name=org.wildfly.transaction.client.RemoteTransactionPermission,module=org.wildfly.transaction.client},{class-name=org.jboss.ejb.client.RemoteEJBPermission,module=org.jboss.ejb-client}]}]) + /profile=$clusteredProfile/subsystem=elytron/constant-realm-mapper=local/:add(realm-name=local) + /profile=$clusteredProfile/subsystem=elytron/simple-role-decoder=groups-to-roles/:add(attribute=groups) + /profile=$clusteredProfile/subsystem=elytron/constant-role-mapper=super-user-mapper/:add(roles=[SuperUser]) + /profile=$clusteredProfile/subsystem=elytron/security-domain=ApplicationDomain/:add(default-realm=ApplicationRealm,permission-mapper=default-permission-mapper,realms=[{realm=ApplicationRealm,role-decoder=groups-to-roles},{realm=local}]) + /profile=$clusteredProfile/subsystem=elytron/provider-http-server-mechanism-factory=global/:add + /profile=$clusteredProfile/subsystem=elytron/http-authentication-factory=application-http-authentication/:add(http-server-mechanism-factory=global,security-domain=ApplicationDomain,mechanism-configurations=[{mechanism-name=BASIC,mechanism-realm-configurations=[{realm-name=Application Realm}]},{mechanism-name=FORM}]) + /profile=$clusteredProfile/subsystem=elytron/provider-sasl-server-factory=global/:add + /profile=$clusteredProfile/subsystem=elytron/mechanism-provider-filtering-sasl-server-factory=elytron/:add(sasl-server-factory=global,filters=[{provider-name=WildFlyElytron}]) + /profile=$clusteredProfile/subsystem=elytron/configurable-sasl-server-factory=configured/:add(sasl-server-factory=elytron,properties={wildfly.sasl.local-user.default-user => "$local"}) + /profile=$clusteredProfile/subsystem=elytron/sasl-authentication-factory=application-sasl-authentication/:add(sasl-server-factory=configured,security-domain=ApplicationDomain,mechanism-configurations=[{mechanism-name=JBOSS-LOCAL-USER,realm-mapper=local},{mechanism-name=DIGEST-MD5,mechanism-realm-configurations=[{realm-name=ApplicationRealm}]}]) + /profile=$clusteredProfile/subsystem=elytron/:write-attribute(name=final-providers,value=combined-providers) + /profile=$clusteredProfile/subsystem=elytron/:write-attribute(name=disallowed-providers,value=[OracleUcrypto]) + echo +end-if + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:read-resource + echo Adding channel-creation-options READ_TIMEOUT to ejb3 remote + /profile=$clusteredProfile/subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:add(value="${prop.remoting-connector.read.timeout:20}",type=xnio) + echo +end-if + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=ejb3/service=remote/channel-creation-options=MAX_OUTBOUND_MESSAGES/:read-resource + echo Adding channel-creation-options MAX_OUTBOUND_MESSAGES to ejb3 remote + /profile=$clusteredProfile/subsystem=ejb3/service=remote/channel-creation-options=MAX_OUTBOUND_MESSAGES/:add(value=1234,type=remoting) + echo +end-if + +if (result == ASYNC) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=web/distributed-cache=dist:read-attribute(name=mode) + echo Setting SYNC mode for web cache-container + /profile=$clusteredProfile/subsystem=infinispan/cache-container=web/distributed-cache=dist:write-attribute(name=mode,value=SYNC) + echo +end-if + +if (result == ASYNC) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=ejb/distributed-cache=dist:read-attribute(name=mode) + echo Setting SYNC mode for ejb cache-container + /profile=$clusteredProfile/subsystem=infinispan/cache-container=ejb/distributed-cache=dist:write-attribute(name=mode,value=SYNC) + echo +end-if + +if (result == undefined) of /profile=$clusteredProfile/subsystem=jgroups/channel=ee/:read-attribute(name=cluster) + echo Setting cluster attribute to ejb in jgroups subsystem + /profile=$clusteredProfile/subsystem=jgroups/channel=ee/:write-attribute(name=cluster,value=ejb) + echo +end-if + +if (result != undefined) of /profile=$clusteredProfile/subsystem=jgroups/stack=udp/protocol=FD_SOCK/:read-attribute(name=socket-binding) + echo Unsetting socket-binding from udp FD_SOCK protocol + # it has to be done via remove and add, because socket-binding is not writable attribute + /profile=$clusteredProfile/subsystem=jgroups/stack=udp/protocol=FD_SOCK/:remove + /profile=$clusteredProfile/subsystem=jgroups/stack=udp/protocol=FD_SOCK/:add + echo +end-if + +if (outcome == success) of /profile=$clusteredProfile/subsystem=jgroups/stack=tcp/protocol=FD/:read-resource + echo Replacing tcp FD protocol with FD_ALL + /profile=$clusteredProfile/subsystem=jgroups/stack=tcp/protocol=FD/:remove + /profile=$clusteredProfile/subsystem=jgroups/stack=tcp/protocol=FD_ALL/:add + echo +end-if + +if (result != undefined) of /profile=$clusteredProfile/subsystem=jgroups/stack=tcp/protocol=FD_SOCK/:read-attribute(name=socket-binding) + echo Unsetting socket-binding from tcp FD_SOCK protocol + # it has to be done via remove and add, because socket-binding is not writable attribute + /profile=$clusteredProfile/subsystem=jgroups/stack=tcp/protocol=FD_SOCK/:remove + /profile=$clusteredProfile/subsystem=jgroups/stack=tcp/protocol=FD_SOCK/:add + echo +end-if + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=undertow/server=default-server/host=default-host/setting=http-invoker/:read-resource + echo Adding http-invoker to default-host + /profile=$clusteredProfile/subsystem=undertow/server=default-server/host=default-host/setting=http-invoker/:add(security-realm=ApplicationRealm) + echo +end-if + +if (result == false) of /profile=$clusteredProfile/subsystem=undertow/server=default-server/http-listener=default/:read-attribute(name=enable-http2) + echo Enabling http2 for default http-listener + /profile=$clusteredProfile/subsystem=undertow/server=default-server/http-listener=default/:write-attribute(name=enable-http2,value=true) + echo +end-if + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=undertow/server=default-server/https-listener=https/:read-resource + echo Adding https-listener + /profile=$clusteredProfile/subsystem=undertow/server=default-server/https-listener=https/:add(socket-binding=https,security-realm=ApplicationRealm,enable-http2=true) + echo +end-if + +if (result == 224.0.1.105) of /socket-binding-group=ha-sockets/socket-binding=modcluster/:read-attribute(name=multicast-address) + echo Adding jboss.modcluster.multicast.address property to modcluster multicast-address + /socket-binding-group=ha-sockets/socket-binding=modcluster/:write-attribute(name=multicast-address,value=${jboss.modcluster.multicast.address:224.0.1.105}) + echo +end-if + +# Migrate from 3.3.0 to 3.4.0 +if (outcome == success) of /profile=$clusteredProfile/subsystem=undertow/server=default-server/host=default-host/filter-ref=server-header/:read-resource + echo Removing X-Powered-By and Server headers from Keycloak responses... + /profile=$clusteredProfile/subsystem=undertow/server=default-server/host=default-host/filter-ref=server-header/:remove + /profile=$clusteredProfile/subsystem=undertow/server=default-server/host=default-host/filter-ref=x-powered-by-header/:remove + /profile=$clusteredProfile/subsystem=undertow/configuration=filter/response-header=x-powered-by-header/:remove + /profile=$clusteredProfile/subsystem=undertow/configuration=filter/response-header=server-header/:remove +end-if + +if (outcome == success) of /profile=$clusteredProfile/subsystem=jdr/:read-resource + echo Removing jdr subsystem and extension + /profile=$clusteredProfile/subsystem=jdr/:remove + echo + try + echo Trying to remove jdr extension + /extension=org.jboss.as.jdr/:remove + echo + catch + echo Wasn't able to remove jdr extension, Should be removed by migrate-domain-standalone.cli + echo + end-try +end-if + +if (outcome == success) of /profile=$clusteredProfile/subsystem=jsf/:read-resource + echo Removing jsf subsystem and extension + /profile=$clusteredProfile/subsystem=jsf/:remove + echo + try + echo Trying to remove jsf extension + /extension=org.jboss.as.jsf/:remove + echo + catch + echo Wasn't able to remove jsf extension, Should be removed by migrate-domain-standalone.cli + echo + end-try +end-if + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/distributed-cache=offlineClientSessions/:read-resource + echo Adding distributed-cache=offlineClientSessions to keycloak cache container... + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/distributed-cache=offlineClientSessions/:add(mode=SYNC,owners=1) + echo +end-if + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/distributed-cache=clientSessions/:read-resource + echo Adding distributed-cache=clientSessions to keycloak cache container... + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/distributed-cache=clientSessions/:add(mode=SYNC,owners=1) + echo +end-if + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=x509cert-lookup/:read-resource + echo Adding spi=x509cert-lookup... + /profile=$clusteredProfile/subsystem=keycloak-server/spi=x509cert-lookup/:add(default-provider=${keycloak.x509cert.lookup.provider:default}) + /profile=$clusteredProfile/subsystem=keycloak-server/spi=x509cert-lookup/provider=default/:add(enabled=true) + echo +end-if + +# Migrate from 4.2.0 to 4.3.0 +if (outcome == failed) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=hostname/:read-resource + echo Adding spi=hostname... + /profile=$clusteredProfile/subsystem=keycloak-server/spi=hostname/:add(default-provider=request) + /profile=$clusteredProfile/subsystem=keycloak-server/spi=hostname/provider=fixed/:add(properties={hostname => "localhost",httpPort => "-1",httpsPort => "-1"},enabled=true) + echo +end-if + +# Migrate from 4.3.0 to 4.4.0 +if (outcome == failed) of /profile=$clusteredProfile/subsystem=elytron/permission-set=login-permission/:read-resource + echo Adding permission-set=login-permission to elytron + /profile=$clusteredProfile/subsystem=elytron/permission-set=login-permission:add(permissions=[{class-name=org.wildfly.security.auth.permission.LoginPermission}]) + /profile=$clusteredProfile/subsystem=elytron/permission-set=default-permissions/:add(permissions=[{class-name=org.wildfly.extension.batch.jberet.deployment.BatchPermission,module=org.wildfly.extension.batch.jberet,target-name=*},{class-name=org.wildfly.transaction.client.RemoteTransactionPermission,module=org.wildfly.transaction.client},{class-name=org.jboss.ejb.client.RemoteEJBPermission,module=org.jboss.ejb-client}]) + /profile=$clusteredProfile/subsystem=elytron/simple-permission-mapper=default-permission-mapper/:undefine-attribute(name=permission-mappings) + /profile=$clusteredProfile/subsystem=elytron/simple-permission-mapper=default-permission-mapper:write-attribute(name=permission-mappings,value=[{permission-sets=[{permission-set=login-permission},{permission-set=default-permissions}],match-all=true},{permission-sets=[{permission-set=default-permissions}],principals=[anonymous]}]) + echo +end-if + +if (result == org.hibernate.infinispan) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate:read-attribute(name=module) + echo Update hibernate cache module + /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate:write-attribute(name=module, value=org.infinispan.hibernate-cache) + echo +end-if +if (outcome == success) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate:read-attribute(name=default-cache) + echo Remove default cache from hibernate cache + /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate:undefine-attribute(name=default-cache) + echo +end-if +if (result == ASYNC) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate/replicated-cache=timestamps:read-attribute(name=mode) + echo Switching mode for timestamps cache from ASYNC to SYNC + /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate/replicated-cache=timestamps:write-attribute(name=mode, value=SYNC) + echo +end-if + +if (outcome == success) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate/local-cache=entity/eviction=EVICTION:read-resource + echo Removing eviction from hibernate entity cache and replacing with object-memory + /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate/local-cache=entity/eviction=EVICTION:remove + /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate/local-cache=entity/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate/distributed-cache=local-query/eviction=EVICTION:read-resource + echo Removing eviction from hibernate local-query cache and replacing with object-memory + /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate/local-cache=local-query/eviction=EVICTION:remove + /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate/local-cache=local-query/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realms/eviction=EVICTION:read-resource + echo Removing eviction from keycloak realms cache and replacing with object-memory + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realms/eviction=EVICTION:remove + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realms/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=users/eviction=EVICTION:read-resource + echo Removing eviction from keycloak users cache and replacing with object-memory + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=users/eviction=EVICTION:remove + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=users/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authorization/eviction=EVICTION:read-resource + echo Removing eviction from keycloak authorization cache and replacing with object-memory + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authorization/eviction=EVICTION:remove + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authorization/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/eviction=EVICTION:read-resource + echo Removing eviction from keycloak keys cache and replacing with object-memory + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/eviction=EVICTION:remove + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/memory=object:add(size=1000) + echo +end-if + +if (outcome == success) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=connectionsInfinispan/provider=default:read-resource + echo Changing JNDI reference in connectionsInfinispan SPI + /profile=$clusteredProfile/subsystem=keycloak-server/spi=connectionsInfinispan/provider=default:undefine-attribute(name=properties) + /profile=$clusteredProfile/subsystem=keycloak-server/spi=connectionsInfinispan/provider=default:write-attribute(name=properties,value={cacheContainer=java:jboss/infinispan/container/keycloak}) + echo +end-if + +if (outcome == success) of /profile=$clusteredProfile/subsystem=jgroups/stack=tcp/protocol=FRAG2:read-resource + echo Upgrade jgroups protocol from FRAG2 to FRAG3 for tcp stack + /profile=$clusteredProfile/subsystem=jgroups/stack=tcp/protocol=FRAG2:remove + /profile=$clusteredProfile/subsystem=jgroups/stack=tcp/protocol=FRAG3:add() + echo +end-if +if (outcome == success) of /profile=$clusteredProfile/subsystem=jgroups/stack=udp/protocol=FRAG2:read-resource + echo Upgrade jgroups protocol from FRAG2 to FRAG3 for udp stack + /profile=$clusteredProfile/subsystem=jgroups/stack=udp/protocol=FRAG2:remove + /profile=$clusteredProfile/subsystem=jgroups/stack=udp/protocol=FRAG3:add() + echo +end-if +if (outcome == success) of /profile=$clusteredProfile/subsystem=remoting/configuration=endpoint:read-resource + echo Remove endpoint from remoting configuration + /profile=$clusteredProfile/subsystem=remoting/configuration=endpoint:remove + echo +end-if +if (outcome == success) of /profile=$clusteredProfile/socket-binding-group=$clusteredProfile-sockets/socket-binding=jgroups-mping:read-attribute(name=port) + /profile=$clusteredProfile/socket-binding-group=$clusteredProfile-sockets/socket-binding=jgroups-mping:undefine-attribute(name=port) +end-if +if (outcome == success) of /socket-binding-group=$clusteredProfile-sockets/socket-binding=modcluster:read-attribute(name=port) + /profile=$clusteredProfile/socket-binding-group=$clusteredProfile-sockets/socket-binding=modcluster:undefine-attribute(name=port) +end-if + +# Migrate from 4.5.0 to 4.6.0 +if (outcome == success) of /profile=$clusteredProfile/subsystem=elytron/http-authentication-factory=application-http-authentication/:read-resource + echo Removing application-http-authentication from elytron subsystem + /profile=$clusteredProfile/subsystem=elytron/http-authentication-factory=application-http-authentication:remove + echo +end-if + +if (result == undefined) of /profile=$clusteredProfile/subsystem=transactions/:read-attribute(name=node-identifier,include-defaults=false) + echo Setting node-identifier attribute of core-environment element in transactions subsystem + /profile=$clusteredProfile/subsystem=transactions/:write-attribute(name=node-identifier,value=expression "${jboss.tx.node.id:1}") + echo +end-if + +if (outcome == success) of /profile=$clusteredProfile/subsystem=jgroups/stack=udp/transport=UDP/property=port_range:read-attribute(name=value) + try + /profile=$clusteredProfile/subsystem=jgroups/stack=udp/transport=UDP/property=port_range:remove + echo Remove port_range property from UDP transport type of udp stack + catch + echo + end-try +end-if + +if (outcome == success) of /profile=$clusteredProfile/subsystem=jgroups/stack=tcp/transport=TCP/property=port_range:read-attribute(name=value) + try + /profile=$clusteredProfile/subsystem=jgroups/stack=tcp/transport=TCP/property=port_range:remove + echo Remove port_range property from TCP transport type of tcp stack + catch + echo + end-try +end-if + +# Migrate from 4.8.3 to 5.0.0 +if (outcome == failed) of /profile=$clusteredProfile/subsystem=logging/logger=io.jaegertracing.Configuration/:read-resource + echo Adding io.jaegertracing.Configuration logger + /profile=$clusteredProfile/subsystem=logging/logger=io.jaegertracing.Configuration/:add(category=io.jaegertracing.Configuration,level=WARN) + echo +end-if + +# Migrate from 5.0.0 to 6.0.0 +if (result == NON_XA) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate/local-cache=entity/component=transaction/:read-attribute(name=mode) + echo Removing NON_XA transaction mode from infinispan/hibernate/entity + /profile=$clusteredProfile/subsystem=infinispan/cache-container=hibernate/local-cache=entity/component=transaction/:undefine-attribute(name=mode) + echo +end-if + +if (result == false) of /profile=$clusteredProfile/subsystem=datasources/data-source=ExampleDS/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to ExampleDS datasource + /profile=$clusteredProfile/subsystem=datasources/data-source=ExampleDS/:write-attribute(name=statistics-enabled,value=${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /profile=$clusteredProfile/subsystem=datasources/data-source=KeycloakDS/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to KeycloakDS datasource + /profile=$clusteredProfile/subsystem=datasources/data-source=KeycloakDS/:write-attribute(name=statistics-enabled,value=${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /profile=$clusteredProfile/subsystem=ejb3/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to ejb3 subsystem + /profile=$clusteredProfile/subsystem=ejb3/:write-attribute(name=statistics-enabled,value=${wildfly.ejb3.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /profile=$clusteredProfile/subsystem=transactions/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to transactions subsystem + /profile=$clusteredProfile/subsystem=transactions/:write-attribute(name=statistics-enabled,value=${wildfly.transactions.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /profile=$clusteredProfile/subsystem=undertow/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to undertow subsystem + /profile=$clusteredProfile/subsystem=undertow/:write-attribute(name=statistics-enabled,value=${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /profile=$clusteredProfile/subsystem=webservices/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to webservices subsystem + /profile=$clusteredProfile/subsystem=webservices/:write-attribute(name=statistics-enabled,value=${wildfly.webservices.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +# Migrate from 6.0.1 to 7.0.0 +if (outcome == success) of /profile=$clusteredProfile/subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:read-resource + echo Removing READ_TIMEOUT option from remote service from ejb3 subsystem + /profile=$clusteredProfile/subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:remove + echo +end-if + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=web/distributed-cache=routing:read-resource + echo Adding distributed cache routing to web cache container to infinispan subsystem + /profile=$clusteredProfile/subsystem=infinispan/cache-container=web/distributed-cache=routing/:add + echo +end-if + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=web/replicated-cache=sso:read-resource + echo Adding replicated cache sso to web cache container to infinispan subsystem + /profile=$clusteredProfile/subsystem=infinispan/cache-container=web/replicated-cache=sso/:add + /profile=$clusteredProfile/subsystem=infinispan/cache-container=web/replicated-cache=sso/component=locking/:add(isolation=REPEATABLE_READ) + /profile=$clusteredProfile/subsystem=infinispan/cache-container=web/replicated-cache=sso/component=transaction/:add(mode=BATCH) + echo +end-if + +if (outcome == failed) of /socket-binding-group=ha-sockets/socket-binding=jgroups-tcp-fd/:read-resource + echo Adding jgroups-tcp-fd socket binding to ha-sockets binding group + /socket-binding-group=ha-sockets/socket-binding=jgroups-tcp-fd/:add(interface=private,port=57600) + echo +end-if + +if (outcome == failed) of /socket-binding-group=ha-sockets/socket-binding=jgroups-udp-fd/:read-resource + echo Adding jgroups-udp-fd socket binding to ha-sockets binding group + /socket-binding-group=ha-sockets/socket-binding=jgroups-udp-fd/:add(interface=private,port=54200) + echo +end-if + +if (result == undefined) of /profile=$clusteredProfile/subsystem=jgroups/stack=tcp/protocol=FD_SOCK/:read-attribute(name=socket-binding) + echo Adding socket-binding for FD_SOCK protocol for tcp stack in jgroups subsystem + /profile=$clusteredProfile/subsystem=jgroups/stack=tcp/protocol=FD_SOCK/:write-attribute(name=socket-binding,value=jgroups-tcp-fd) + echo +end-if + +if (result == undefined) of /profile=$clusteredProfile/subsystem=jgroups/stack=udp/protocol=FD_SOCK/:read-attribute(name=socket-binding) + echo Adding socket-binding for FD_SOCK protocol for udp stack in jgroups subsystem + /profile=$clusteredProfile/subsystem=jgroups/stack=udp/protocol=FD_SOCK/:write-attribute(name=socket-binding,value=jgroups-udp-fd) + echo +end-if + +if (result == "true") of /subsystem=keycloak-server/spi=truststore/provider=file:map-get(name=properties, key=disabled) + echo Disabling Truststore Provider + /subsystem=keycloak-server/spi=truststore/provider=file:write-attribute(name=enabled, value=false) + echo Removing deprecated option + /subsystem=keycloak-server/spi=truststore/provider=file:map-remove(name=properties, key=disabled) + echo +end-if + +# Migrate from 7.0.0 to 8.0.0 + +if ((result.time == 100L) && (result.unit == MILLISECONDS)) of /profile=$clusteredProfile/subsystem=ejb3/thread-pool=default:read-attribute(name=keepalive-time) + echo Changing thread pool keepalive of ejb3 subsystem + /profile=$clusteredProfile/subsystem=ejb3/thread-pool=default:write-attribute(name=keepalive-time.time, value=60) + /profile=$clusteredProfile/subsystem=ejb3/thread-pool=default:write-attribute(name=keepalive-time.unit,value=SECONDS) + echo +end-if + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=hostname/provider=default/:read-resource + echo Adding default hostname provider + /profile=$clusteredProfile/subsystem=keycloak-server/spi=hostname/provider=default/:add(properties={frontendUrl => "${keycloak.frontendUrl:}",forceBackendUrlToFrontendUrl => "false"},enabled=true) +end-if + +if (result == request) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=hostname/:read-attribute(name=default-provider) + echo Switching from request to default hostname provider + + /profile=$clusteredProfile/subsystem=keycloak-server/spi=hostname/:write-attribute(name=default-provider,value=default) +end-if + +if (result != fixed) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=hostname/:read-attribute(name=default-provider) + try + /profile=$clusteredProfile/subsystem=keycloak-server/spi=hostname/provider=fixed:remove + echo Removed config for unused fixed hostname provider + catch + end-try +end-if + +# Migrate from 10.0.2 to 11.0.0 (migration changes for infinispan update from 9.4.18.Final to 10.1.8.Final) + +if (result != org.keycloak.keycloak-model-infinispan) of /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak:read-attribute(name=module) + echo Setting class loader for keycloak cache-container in auth-server-clustered profile so JBoss Marshalling works properly with Infinispan 10.x + /profile=$clusteredProfile/subsystem=infinispan/cache-container=keycloak:write-attribute(name=module,value=org.keycloak.keycloak-model-infinispan) + echo +end-if + +# Migrate from 12.0.0 to 13.0.0 + +## Add ability to make use of automatically generated self-signed certificate with Elytron, +## introduced by WFCORE-5095 in Wildfly Core 14.0.0.Final + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=elytron/key-store=applicationKS:read-resource + echo Adding key store for the feature of auto-generation of self-signed certificate to Elytron subsystem... + /profile=$clusteredProfile/subsystem=elytron/key-store=applicationKS:add(credential-reference={clear-text=password},type=JKS) + /profile=$clusteredProfile/subsystem=elytron/key-store=applicationKS:write-attribute(name=path,value=application.keystore) + /profile=$clusteredProfile/subsystem=elytron/key-store=applicationKS:write-attribute(name=relative-to,value=jboss.domain.config.dir) + echo +end-if + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=elytron/key-manager=applicationKM:read-resource + echo Adding key manager for the feature of auto-generation of self-signed certificate to Elytron subsystem... + /profile=$clusteredProfile/subsystem=elytron/key-manager=applicationKM:add(key-store=applicationKS, credential-reference={clear-text=password}) + /profile=$clusteredProfile/subsystem=elytron/key-manager=applicationKM:write-attribute(name=generate-self-signed-certificate-host,value=localhost) + echo +end-if + +if (outcome == failed) of /profile=$clusteredProfile/subsystem=elytron/server-ssl-context=applicationSSC:read-resource + echo Adding SSL context for the feature of auto-generation of self-signed certificate to Elytron subsystem... + /profile=$clusteredProfile/subsystem=elytron/server-ssl-context=applicationSSC:add(key-manager=applicationKM) + echo +end-if + +## Convert type of 'hung-task-termination-period' attribute for 'managed-executor-service' from INT to LONG +if (result == 0) of /profile=$clusteredProfile/subsystem=ee/managed-executor-service=default:read-attribute(name=hung-task-termination-period) + echo Setting period for automatic termination of hung tasks for managed executor service to default value (0 miliseconds) + /profile=$clusteredProfile/subsystem=ee/managed-executor-service=default:write-attribute(name=hung-task-termination-period,value=0L) + echo +end-if + +## Convert type of 'hung-task-termination-period' attribute for 'managed-scheduled-executor-service' from INT to LONG +if (result == 0) of /profile=$clusteredProfile/subsystem=ee/managed-scheduled-executor-service=default:read-attribute(name=hung-task-termination-period) + echo Setting period for automatic termination of hung tasks for managed scheduled executor service to default value (0 miliseconds) + /profile=$clusteredProfile/subsystem=ee/managed-scheduled-executor-service=default:write-attribute(name=hung-task-termination-period,value=0L) + echo +end-if + +## Set value of JPA default-datasource from empty string to 'undefined' +if (outcome == success) && (result == "") of /profile=$clusteredProfile/subsystem=jpa:read-attribute(name=default-datasource) + echo Setting value of to default-datasource attribute in JPA subsystem to 'undefined' + /profile=$clusteredProfile/subsystem=jpa:undefine-attribute(name=default-datasource) + echo +end-if + +echo *** End Migration of /profile=$clusteredProfile *** diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-domain-standalone.cli b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-domain-standalone.cli new file mode 100644 index 0000000000..8b98178988 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-domain-standalone.cli @@ -0,0 +1,654 @@ +embed-host-controller --domain-config=domain.xml + +# Early versions of keycloak used "default" for the standalone profile name. +# Yours maybe be something completely different. +set standaloneProfile=auth-server-standalone + +# keycloak-server.json is not normally on this path. +set pathToJson=../domain/configuration/keycloak-server.json + + +echo *** Begin Migration of /profile=$standaloneProfile *** +echo + +# Migrate from 1.8.1 to 1.9.1 +if (outcome == failed) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=work/:read-resource + echo Adding local-cache=work to keycloak cache container... + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=work/:add(indexing=NONE,start=LAZY) + echo +end-if +# realmVersions cache deprecated in 2.1.0 +#if (outcome == failed) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/:read-resource +# echo Adding local-cache=realmVersions to keycloak cache container... +# /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/:add(indexing=NONE,start=LAZY) +# /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/component=transaction/:write-attribute(name=mode,value=BATCH) +# echo +#end-if + + +# Migrate from 1.9.1 to 1.9.2 +if (result == NONE) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=users/component=eviction/:read-attribute(name=strategy) + echo Adding eviction strategy to keycloak users cache container... + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=users/component=eviction/:write-attribute(name=strategy,value=LRU) + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=users/component=eviction/:write-attribute(name=max-entries,value=10000) + echo +end-if + +# Migrate from 1.9.2 to 1.9.8 +# NO CHANGES + +# Migrate from 1.9.8 to 2.0.0 +if (outcome == failed) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authorization/:read-resource + echo Adding local-cache=authorization to keycloak cache container... + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authorization/:add(indexing=NONE,start=LAZY) + echo +end-if +if (result == undefined) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authorization/component=eviction/:read-attribute(name=strategy,include-defaults=false) + echo Updating authorization cache container.. + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authorization/component=eviction/:write-attribute(name=strategy,value=LRU) + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authorization/component=eviction/:write-attribute(name=max-entries,value=100) + echo +end-if + +# Migrate from 2.0.0 to 2.1.0 +if (outcome == success) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/:read-resource + echo Removing deprecated cache 'realmVersions' + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/:remove + echo +end-if + +# Migrate kecloak-server.json (deprecated in 2.2.0) +if (result == []) of /profile=$standaloneProfile/subsystem=keycloak-server/:read-children-names(child-type=spi) + echo Migrating keycloak-server.json to keycloak-server subsystem... + /profile=$standaloneProfile/subsystem=keycloak-server/:migrate-json(file=$pathToJson) + echo +end-if +if (result == [expression "classpath:${jboss.server.config.dir}/providers/*"]) of /profile=$standaloneProfile/subsystem=keycloak-server/:read-attribute(name=providers) + echo Updating provider to default value + /profile=$standaloneProfile/subsystem=keycloak-server/:write-attribute(name=providers,value=[classpath:${jboss.home.dir}/providers/*]) + echo +end-if +if (result == keycloak) of /profile=$standaloneProfile/subsystem=keycloak-server/theme=defaults:read-attribute(name=default) + echo Undefining default theme... + /profile=$standaloneProfile/subsystem=keycloak-server/theme=defaults:undefine-attribute(name=default) + echo +end-if +if (result == expression "${jboss.server.config.dir}/themes") of /profile=$standaloneProfile/subsystem=keycloak-server/theme=defaults:read-attribute(name=dir) + echo Updating theme dir to default value + /profile=$standaloneProfile/subsystem=keycloak-server/theme=defaults/:write-attribute(name=dir,value=${jboss.home.dir}/themes) + echo +end-if + +set persistenceProvider=jpa + +# Migrate from 2.1.0 to 2.2.0 +if (result == update) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-get(name=properties,key=databaseSchema) + echo Updating connectionsJpa default properties... + /profile=$standaloneProfile/subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-remove(name=properties,key=databaseSchema) + /profile=$standaloneProfile/subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-put(name=properties,key=initializeEmpty,value=true) + /profile=$standaloneProfile/subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-put(name=properties,key=migrationStrategy,value=update) + /profile=$standaloneProfile/subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-put(name=properties,key=migrationExport,value=${jboss.home.dir}/keycloak-database-update.sql) + echo +end-if +if (outcome == failed) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=userFederatedStorage/:read-resource + echo Adding spi=userFederatedStorage... + /profile=$standaloneProfile/subsystem=keycloak-server/spi=userFederatedStorage/:add(default-provider=$persistenceProvider) + echo +end-if +if (outcome == failed) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=jta-lookup/:read-resource + echo Adding spi=jta-lookup... + /profile=$standaloneProfile/subsystem=keycloak-server/spi=jta-lookup/:add(default-provider=${keycloak.jta.lookup.provider:jboss}) + /profile=$standaloneProfile/subsystem=keycloak-server/spi=jta-lookup/provider=jboss/:add(enabled=true) + echo +end-if + +# Migrate from 2.2.0 to 2.2.1 +# NO CHANGES + +# Migrate from 2.2.1 to 2.3.0 +if (outcome == failed) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/:read-resource + echo Adding local-cache=keys to keycloak cache container... + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/:add(indexing=NONE,start=LAZY) + echo +end-if +if (result == undefined) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/component=eviction/:read-attribute(name=strategy,include-defaults=false) + echo Updating eviction and expiration in local-cache=keys... + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/component=eviction/:write-attribute(name=strategy,value=LRU) + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/component=eviction/:write-attribute(name=max-entries,value=1000) + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/component=expiration/:write-attribute(name=max-idle,value=3600000) + echo +end-if +if (outcome == failed) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=publicKeyStorage/:read-resource + echo Adding spi=publicKeyStorage... + /profile=$standaloneProfile/subsystem=keycloak-server/spi=publicKeyStorage/:add + /profile=$standaloneProfile/subsystem=keycloak-server/spi=publicKeyStorage/provider=infinispan/:add(properties={minTimeBetweenRequests => "10"},enabled=true) + echo +end-if + +# Migrate from 2.3.0 to 2.4.0 +# NO CHANGES + +# Migrate from 2.4.0 to 2.5.0 +if (result == NONE) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realms/component=eviction/:read-attribute(name=strategy) + echo Adding eviction strategy to keycloak realms cache... + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realms/component=eviction/:write-attribute(name=strategy,value=LRU) + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realms/component=eviction/:write-attribute(name=max-entries,value=10000) + echo +end-if + +# Migrate from 2.5.0 to 2.5.1 +# NO CHANGES + +# Migrate 2.5.1 to 2.5.4 +if (result != REPEATABLE_READ) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=ejb/local-cache=persistent/component=locking/:read-attribute(name=isolation) + echo Changing ejb cache locking to REPEATABLE_READ + /profile=$standaloneProfile/subsystem=infinispan/cache-container=ejb/local-cache=persistent/component=locking/:write-attribute(name=isolation,value=REPEATABLE_READ) + echo +end-if + +if (outcome == success) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=hibernate/local-cache=immutable-entity/:read-resource + echo Removing Hibernate immutable-entity cache + /profile=$standaloneProfile/subsystem=infinispan/cache-container=hibernate/local-cache=immutable-entity/:remove +end-if + + +# Migrate from 2.5.4 to 3.0.0 +if (result == jpa) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=eventsStore/:read-attribute(name=default-provider,include-defaults=false) + echo Removing default provider for eventsStore + /profile=$standaloneProfile/subsystem=keycloak-server/spi=eventsStore/:undefine-attribute(name=default-provider) + echo +end-if + +if ((outcome == success) && (result.default-provider == jpa) && (result.provider == undefined)) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=realm/:read-resource(recursive=false,include-defaults=false) + echo Removing declaration for user SPI + /profile=$standaloneProfile/subsystem=keycloak-server/spi=realm/:remove + echo +end-if + +if ((outcome == success) && (result.default-provider == jpa) && (result.provider == undefined)) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=user/:read-resource(recursive=false,include-defaults=false) + echo Removing declaration for user SPI + /profile=$standaloneProfile/subsystem=keycloak-server/spi=user/:remove + echo +end-if + +if ((outcome == success) && (result.default-provider == jpa) && (result.provider == undefined)) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=userFederatedStorage/:read-resource(recursive=false,include-defaults=false) + echo Removing declaration for userFederatedStorage SPI + /profile=$standaloneProfile/subsystem=keycloak-server/spi=userFederatedStorage/:remove + echo +end-if + +if ((outcome == success) && (result.default-provider == jpa) && (result.provider == undefined)) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=authorizationPersister/:read-resource(recursive=false,include-defaults=false) + echo Removing declaration for authorizationPersister SPI + /profile=$standaloneProfile/subsystem=keycloak-server/spi=authorizationPersister/:remove + echo +end-if + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=userCache/:read-resource + echo Adding userCache SPI + /profile=$standaloneProfile/subsystem=keycloak-server/spi=userCache/:add + /profile=$standaloneProfile/subsystem=keycloak-server/spi=userCache/provider=default/:add(enabled=true) + echo +end-if + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=realmCache/:read-resource + echo Adding realmCache SPI + /profile=$standaloneProfile/subsystem=keycloak-server/spi=realmCache/:add + /profile=$standaloneProfile/subsystem=keycloak-server/spi=realmCache/provider=default/:add(enabled=true) + echo +end-if + +if ((result.default-provider == undefined) && (result.provider.default.enabled == true)) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=connectionsInfinispan/:read-resource(recursive=true,include-defaults=false) + echo Adding 'default' as default provider for connectionsInfinispan + /profile=$standaloneProfile/subsystem=keycloak-server/spi=connectionsInfinispan/:write-attribute(name=default-provider,value=default) + echo +end-if + +# Migrate from 3.0.0 to 3.1.0 +# NO CHANGES + +# Migrate from 3.1.0 to 3.2.0 +if (outcome == failed) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authenticationSessions/:read-resource + echo Adding local-cache=authenticationSessions to keycloak cache container... + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authenticationSessions/:add(indexing=NONE,start=LAZY) + echo +end-if + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=actionTokens/:read-resource + echo Adding local-cache=actionTokens to keycloak cache container... + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=actionTokens/:add(indexing=NONE,start=LAZY) + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=actionTokens/component=eviction/:write-attribute(name=strategy,value=NONE) + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=actionTokens/component=eviction/:write-attribute(name=max-entries,value=-1) + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=actionTokens/component=expiration/:write-attribute(name=interval,value=300000) + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=actionTokens/component=expiration/:write-attribute(name=max-idle,value=-1) + echo +end-if + +if (result == 100L) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authorization/component=eviction/:read-attribute(name=max-entries) + echo Updating eviction in local-cache=authorization... + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authorization/component=eviction/:write-attribute(name=max-entries,value=10000) + echo +end-if + +# Migrate from 3.2.0 to 3.2.1 +# NO CHANGES + +# Migrate from 3.2.1 to 3.3.0 +if (outcome == failed) of /profile=$standaloneProfile/subsystem=core-management/:read-resource + try + echo Trying to add core-management extension + /extension=org.wildfly.extension.core-management/:add + echo + catch + echo Wasn't able to add core-management extension, it should be already added by migrate-domain-standalone.cli + echo + end-try + echo Adding subsystem core-management + /profile=$standaloneProfile/subsystem=core-management/:add + echo +end-if + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=elytron/:read-resource + try + echo Trying to add elytron extension + /extension=org.wildfly.extension.elytron/:add + echo + catch + echo Wasn't able to add elytron extension, it should be already added by migrate-domain-standalone.cli + echo + end-try + echo Adding subsystem elytron + /profile=$standaloneProfile/subsystem=elytron/:add + /profile=$standaloneProfile/subsystem=elytron/provider-loader=elytron/:add(module=org.wildfly.security.elytron) + /profile=$standaloneProfile/subsystem=elytron/provider-loader=openssl/:add(module=org.wildfly.openssl) + /profile=$standaloneProfile/subsystem=elytron/aggregate-providers=combined-providers/:add(providers=[elytron,openssl]) + /profile=$standaloneProfile/subsystem=elytron/file-audit-log=local-audit/:add(path=audit.log,relative-to=jboss.server.log.dir,format=JSON) + /profile=$standaloneProfile/subsystem=elytron/identity-realm=local/:add(identity="$local") + /profile=$standaloneProfile/subsystem=elytron/properties-realm=ApplicationRealm/:add(users-properties={path=application-users.properties,relative-to=jboss.domain.config.dir,digest-realm-name=ApplicationRealm},groups-properties={path=application-roles.properties,relative-to=jboss.domain.config.dir}) + /profile=$standaloneProfile/subsystem=elytron/simple-permission-mapper=default-permission-mapper/:add(mapping-mode=first,permission-mappings=[{principals=[anonymous],permissions=[{class-name=org.wildfly.extension.batch.jberet.deployment.BatchPermission,module=org.wildfly.extension.batch.jberet,target-name=*},{class-name=org.wildfly.transaction.client.RemoteTransactionPermission,module=org.wildfly.transaction.client},{class-name=org.jboss.ejb.client.RemoteEJBPermission,module=org.jboss.ejb-client}]},{match-all=true,permissions=[{class-name=org.wildfly.security.auth.permission.LoginPermission},{class-name=org.wildfly.extension.batch.jberet.deployment.BatchPermission,module=org.wildfly.extension.batch.jberet,target-name=*},{class-name=org.wildfly.transaction.client.RemoteTransactionPermission,module=org.wildfly.transaction.client},{class-name=org.jboss.ejb.client.RemoteEJBPermission,module=org.jboss.ejb-client}]}]) + /profile=$standaloneProfile/subsystem=elytron/constant-realm-mapper=local/:add(realm-name=local) + /profile=$standaloneProfile/subsystem=elytron/simple-role-decoder=groups-to-roles/:add(attribute=groups) + /profile=$standaloneProfile/subsystem=elytron/constant-role-mapper=super-user-mapper/:add(roles=[SuperUser]) + /profile=$standaloneProfile/subsystem=elytron/security-domain=ApplicationDomain/:add(default-realm=ApplicationRealm,permission-mapper=default-permission-mapper,realms=[{realm=ApplicationRealm,role-decoder=groups-to-roles},{realm=local}]) + /profile=$standaloneProfile/subsystem=elytron/provider-http-server-mechanism-factory=global/:add + /profile=$standaloneProfile/subsystem=elytron/http-authentication-factory=application-http-authentication/:add(http-server-mechanism-factory=global,security-domain=ApplicationDomain,mechanism-configurations=[{mechanism-name=BASIC,mechanism-realm-configurations=[{realm-name=Application Realm}]},{mechanism-name=FORM}]) + /profile=$standaloneProfile/subsystem=elytron/provider-sasl-server-factory=global/:add + /profile=$standaloneProfile/subsystem=elytron/mechanism-provider-filtering-sasl-server-factory=elytron/:add(sasl-server-factory=global,filters=[{provider-name=WildFlyElytron}]) + /profile=$standaloneProfile/subsystem=elytron/configurable-sasl-server-factory=configured/:add(sasl-server-factory=elytron,properties={wildfly.sasl.local-user.default-user => "$local"}) + /profile=$standaloneProfile/subsystem=elytron/sasl-authentication-factory=application-sasl-authentication/:add(sasl-server-factory=configured,security-domain=ApplicationDomain,mechanism-configurations=[{mechanism-name=JBOSS-LOCAL-USER,realm-mapper=local},{mechanism-name=DIGEST-MD5,mechanism-realm-configurations=[{realm-name=ApplicationRealm}]}]) + /profile=$standaloneProfile/subsystem=elytron/:write-attribute(name=final-providers,value=combined-providers) + /profile=$standaloneProfile/subsystem=elytron/:write-attribute(name=disallowed-providers,value=[OracleUcrypto]) + echo +end-if + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:read-resource + echo Adding channel-creation-options READ_TIMEOUT to ejb3 remote + /profile=$standaloneProfile/subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:add(value="${prop.remoting-connector.read.timeout:20}",type=xnio) + echo +end-if + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=ejb3/service=remote/channel-creation-options=MAX_OUTBOUND_MESSAGES/:read-resource + echo Adding channel-creation-options MAX_OUTBOUND_MESSAGES to ejb3 remote + /profile=$standaloneProfile/subsystem=ejb3/service=remote/channel-creation-options=MAX_OUTBOUND_MESSAGES/:add(value=1234,type=remoting) + echo +end-if + +if (outcome == success) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=web/local-cache=persistent:read-resource + echo Removing local-cache persistent from web cache-container + /profile=$standaloneProfile/subsystem=infinispan/cache-container=web/local-cache=persistent:remove + echo +end-if + +if (outcome == success) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=ejb/local-cache=persistent:read-resource + echo Removing local-cache persistent from ejb cache-container + /profile=$standaloneProfile/subsystem=infinispan/cache-container=ejb/local-cache=persistent:remove + echo +end-if + +if (result == local-query) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=hibernate/:read-attribute(name=default-cache) + echo Removing default-cache from hibernate cache-container + /profile=$standaloneProfile/subsystem=infinispan/cache-container=hibernate/:undefine-attribute(name=default-cache) + echo +end-if + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=undertow/server=default-server/host=default-host/setting=http-invoker/:read-resource + echo Adding http-invoker to default-host + /profile=$standaloneProfile/subsystem=undertow/server=default-server/host=default-host/setting=http-invoker/:add(security-realm=ApplicationRealm) + echo +end-if + +if (result == false) of /profile=$standaloneProfile/subsystem=undertow/server=default-server/http-listener=default/:read-attribute(name=enable-http2) + echo Enabling http2 for default http-listener + /profile=$standaloneProfile/subsystem=undertow/server=default-server/http-listener=default/:write-attribute(name=enable-http2,value=true) + echo +end-if + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=undertow/server=default-server/https-listener=https/:read-resource + echo Adding https-listener + /profile=$standaloneProfile/subsystem=undertow/server=default-server/https-listener=https/:add(socket-binding=https,security-realm=ApplicationRealm,enable-http2=true) + echo +end-if + +if (result == 224.0.1.105) of /socket-binding-group=ha-sockets/socket-binding=modcluster/:read-attribute(name=multicast-address) + echo Adding jboss.modcluster.multicast.address property to modcluster multicast-address + /socket-binding-group=ha-sockets/socket-binding=modcluster/:write-attribute(name=multicast-address,value=${jboss.modcluster.multicast.address:224.0.1.105}) + echo +end-if + +# Migrate from 3.3.0 to 3.4.0 +if (outcome == success) of /profile=$standaloneProfile/subsystem=undertow/server=default-server/host=default-host/filter-ref=server-header/:read-resource + echo Removing X-Powered-By and Server headers from Keycloak responses... + /profile=$standaloneProfile/subsystem=undertow/server=default-server/host=default-host/filter-ref=server-header/:remove + /profile=$standaloneProfile/subsystem=undertow/server=default-server/host=default-host/filter-ref=x-powered-by-header/:remove + /profile=$standaloneProfile/subsystem=undertow/configuration=filter/response-header=x-powered-by-header/:remove + /profile=$standaloneProfile/subsystem=undertow/configuration=filter/response-header=server-header/:remove + echo +end-if + +if (outcome == success) of /profile=$standaloneProfile/subsystem=jdr/:read-resource + echo Removing jdr subsystem and extension + /profile=$standaloneProfile/subsystem=jdr/:remove + echo + try + echo Trying to remove jdr extension + /extension=org.jboss.as.jdr/:remove + echo + catch + echo Wasn't able to remove jdr extension, it should be removed by migrate-domain-standalone.cli + echo + end-try +end-if + +if (outcome == success) of /profile=$standaloneProfile/subsystem=jsf/:read-resource + echo Removing jsf subsystem and extension + /profile=$standaloneProfile/subsystem=jsf/:remove + echo + try + echo Trying to remove jsf extension + /extension=org.jboss.as.jsf/:remove + echo + catch + echo Wasn't able to remove jsf extension, Should be removed by migrate-domain-standalone.cli + echo + end-try +end-if + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=clientSessions/:read-resource + echo Adding local-cache=clientSessions to keycloak cache container... + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=clientSessions/:add(indexing=NONE,start=LAZY) + echo +end-if + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=offlineClientSessions/:read-resource + echo Adding local-cache=offlineClientSessions to keycloak cache container... + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=offlineClientSessions/:add(indexing=NONE,start=LAZY) + echo +end-if + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=x509cert-lookup/:read-resource + echo Adding spi=x509cert-lookup... + /profile=$standaloneProfile/subsystem=keycloak-server/spi=x509cert-lookup/:add(default-provider=${keycloak.x509cert.lookup.provider:default}) + /profile=$standaloneProfile/subsystem=keycloak-server/spi=x509cert-lookup/provider=default/:add(enabled=true) + echo +end-if + +# Migrate from 4.2.0 to 4.3.0 +if (outcome == failed) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=hostname/:read-resource + echo Adding spi=hostname... + /profile=$standaloneProfile/subsystem=keycloak-server/spi=hostname/:add(default-provider=request) + /profile=$standaloneProfile/subsystem=keycloak-server/spi=hostname/provider=fixed/:add(properties={hostname => "localhost",httpPort => "-1",httpsPort => "-1"},enabled=true) + echo +end-if + +# Migrate from 4.3.0 to 4.4.0 +if (outcome == failed) of /profile=$standaloneProfile/subsystem=elytron/permission-set=login-permission/:read-resource + echo Adding permission-set=login-permission to elytron + /profile=$standaloneProfile/subsystem=elytron/permission-set=login-permission:add(permissions=[{class-name=org.wildfly.security.auth.permission.LoginPermission}]) + /profile=$standaloneProfile/subsystem=elytron/permission-set=default-permissions/:add(permissions=[{class-name=org.wildfly.extension.batch.jberet.deployment.BatchPermission,module=org.wildfly.extension.batch.jberet,target-name=*},{class-name=org.wildfly.transaction.client.RemoteTransactionPermission,module=org.wildfly.transaction.client},{class-name=org.jboss.ejb.client.RemoteEJBPermission,module=org.jboss.ejb-client}]) + /profile=$standaloneProfile/subsystem=elytron/simple-permission-mapper=default-permission-mapper/:undefine-attribute(name=permission-mappings) + /profile=$standaloneProfile/subsystem=elytron/simple-permission-mapper=default-permission-mapper:write-attribute(name=permission-mappings,value=[{permission-sets=[{permission-set=login-permission},{permission-set=default-permissions}],match-all=true},{permission-sets=[{permission-set=default-permissions}],principals=[anonymous]}]) + echo +end-if + +if (result == org.hibernate.infinispan) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=hibernate:read-attribute(name=module) + echo Update hibernate cache module + /profile=$standaloneProfile/subsystem=infinispan/cache-container=hibernate:write-attribute(name=module, value=org.infinispan.hibernate-cache) + echo +end-if +if (outcome == success) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=hibernate/local-cache=entity/eviction=EVICTION:read-resource + echo Removing eviction from hibernate entity cache and replacing with object-memory + /profile=$standaloneProfile/subsystem=infinispan/cache-container=hibernate/local-cache=entity/eviction=EVICTION:remove + /profile=$standaloneProfile/subsystem=infinispan/cache-container=hibernate/local-cache=entity/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=hibernate/local-cache=local-query/eviction=EVICTION:read-resource + echo Removing eviction from hibernate local-query cache and replacing with object-memory + /profile=$standaloneProfile/subsystem=infinispan/cache-container=hibernate/local-cache=local-query/eviction=EVICTION:remove + /profile=$standaloneProfile/subsystem=infinispan/cache-container=hibernate/local-cache=local-query/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realms/eviction=EVICTION:read-resource + echo Removing eviction from keycloak realms cache and replacing with object-memory + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realms/eviction=EVICTION:remove + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=realms/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=users/eviction=EVICTION:read-resource + echo Removing eviction from keycloak users cache and replacing with object-memory + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=users/eviction=EVICTION:remove + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=users/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authorization/eviction=EVICTION:read-resource + echo Removing eviction from keycloak authorization cache and replacing with object-memory + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authorization/eviction=EVICTION:remove + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=authorization/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/eviction=EVICTION:read-resource + echo Removing eviction from keycloak keys cache and replacing with object-memory + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/eviction=EVICTION:remove + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak/local-cache=keys/memory=object:add(size=1000) + echo +end-if + +if (outcome == success) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=connectionsInfinispan/provider=default:read-resource + echo Changing JNDI reference in connectionsInfinispan SPI + /profile=$standaloneProfile/subsystem=keycloak-server/spi=connectionsInfinispan/provider=default:undefine-attribute(name=properties) + /profile=$standaloneProfile/subsystem=keycloak-server/spi=connectionsInfinispan/provider=default:write-attribute(name=properties,value={cacheContainer=java:jboss/infinispan/container/keycloak}) + echo +end-if + +# Migrate from 4.5.0 to 4.6.0 +if (outcome == success) of /profile=$standaloneProfile/subsystem=elytron/http-authentication-factory=application-http-authentication/:read-resource + echo Removing application-http-authentication from elytron subsystem + /profile=$standaloneProfile/subsystem=elytron/http-authentication-factory=application-http-authentication:remove + echo +end-if + +if (result == undefined) of /profile=$standaloneProfile/subsystem=transactions/:read-attribute(name=node-identifier,include-defaults=false) + echo Setting node-identifier attribute of core-environment element in transactions subsystem + /profile=$standaloneProfile/subsystem=transactions/:write-attribute(name=node-identifier,value=expression "${jboss.tx.node.id:1}") + echo +end-if + +if (outcome == success) of /profile=$standaloneProfile/subsystem=jgroups/stack=udp/transport=UDP/property=port_range:read-attribute(name=value) + try + /profile=$standaloneProfile/subsystem=jgroups/stack=udp/transport=UDP/property=port_range:remove + echo Remove port_range property from UDP transport type of udp stack + catch + echo + end-try +end-if + +if (outcome == success) of /profile=$standaloneProfile/subsystem=jgroups/stack=tcp/transport=TCP/property=port_range:read-attribute(name=value) + try + /profile=$standaloneProfile/subsystem=jgroups/stack=tcp/transport=TCP/property=port_range:remove + echo Remove port_range property from TCP transport type of tcp stack + catch + echo + end-try +end-if + +# Migrate from 4.8.3 to 5.0.0 +if (outcome == failed) of /profile=$standaloneProfile/subsystem=logging/logger=io.jaegertracing.Configuration/:read-resource + echo Adding io.jaegertracing.Configuration logger + /profile=$standaloneProfile/subsystem=logging/logger=io.jaegertracing.Configuration/:add(category=io.jaegertracing.Configuration,level=WARN) + echo +end-if + +# Migrate from 5.0.0 to 6.0.0 +if (result == NON_XA) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=hibernate/local-cache=entity/component=transaction/:read-attribute(name=mode) + echo Removing NON_XA transaction mode from infinispan/hibernate/entity + /profile=$standaloneProfile/subsystem=infinispan/cache-container=hibernate/local-cache=entity/component=transaction/:undefine-attribute(name=mode) + echo +end-if + +if (result == false) of /profile=$standaloneProfile/subsystem=datasources/data-source=ExampleDS/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to ExampleDS datasource + /profile=$standaloneProfile/subsystem=datasources/data-source=ExampleDS/:write-attribute(name=statistics-enabled,value=${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /profile=$standaloneProfile/subsystem=datasources/data-source=KeycloakDS/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to KeycloakDS datasource + /profile=$standaloneProfile/subsystem=datasources/data-source=KeycloakDS/:write-attribute(name=statistics-enabled,value=${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /profile=$standaloneProfile/subsystem=ejb3/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to ejb3 subsystem + /profile=$standaloneProfile/subsystem=ejb3/:write-attribute(name=statistics-enabled,value=${wildfly.ejb3.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /profile=$standaloneProfile/subsystem=transactions/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to transactions subsystem + /profile=$standaloneProfile/subsystem=transactions/:write-attribute(name=statistics-enabled,value=${wildfly.transactions.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /profile=$standaloneProfile/subsystem=undertow/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to undertow subsystem + /profile=$standaloneProfile/subsystem=undertow/:write-attribute(name=statistics-enabled,value=${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /profile=$standaloneProfile/subsystem=webservices/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to webservices subsystem + /profile=$standaloneProfile/subsystem=webservices/:write-attribute(name=statistics-enabled,value=${wildfly.webservices.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +# Migrate from 6.0.1 to 7.0.0 +if (outcome == success) of /profile=$standaloneProfile/subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:read-resource + echo Removing READ_TIMEOUT option from remote service from ejb3 subsystem + /profile=$standaloneProfile/subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:remove + echo +end-if + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=web/local-cache=routing:read-resource + echo Adding local cache routing to web cache container to infinispan subsystem + /profile=$standaloneProfile/subsystem=infinispan/cache-container=web/local-cache=routing/:add + echo +end-if + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=web/local-cache=sso:read-resource + echo Adding local cache sso to web cache container to infinispan subsystem + /profile=$standaloneProfile/subsystem=infinispan/cache-container=web/local-cache=sso/:add + /profile=$standaloneProfile/subsystem=infinispan/cache-container=web/local-cache=sso/component=locking/:add(isolation=REPEATABLE_READ) + /profile=$standaloneProfile/subsystem=infinispan/cache-container=web/local-cache=sso/component=transaction/:add(mode=BATCH) + echo +end-if + +if (result == "true") of /subsystem=keycloak-server/spi=truststore/provider=file:map-get(name=properties, key=disabled) + echo Disabling Truststore Provider + /subsystem=keycloak-server/spi=truststore/provider=file:write-attribute(name=enabled, value=false) + echo Removing deprecated option + /subsystem=keycloak-server/spi=truststore/provider=file:map-remove(name=properties, key=disabled) + echo +end-if + +# Migrate from 7.0.0 to 8.0.0 + +if ((result.time == 100L) && (result.unit == MILLISECONDS)) of /profile=$standaloneProfile/subsystem=ejb3/thread-pool=default:read-attribute(name=keepalive-time) + echo Changing thread pool keepalive of ejb3 subsystem + /profile=$standaloneProfile/subsystem=ejb3/thread-pool=default:write-attribute(name=keepalive-time.time, value=60) + /profile=$standaloneProfile/subsystem=ejb3/thread-pool=default:write-attribute(name=keepalive-time.unit,value=SECONDS) + echo +end-if + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=hostname/provider=default/:read-resource + echo Adding default hostname provider + /profile=$standaloneProfile/subsystem=keycloak-server/spi=hostname/provider=default/:add(properties={frontendUrl => "${keycloak.frontendUrl:}",forceBackendUrlToFrontendUrl => "false"},enabled=true) +end-if + +if (result == request) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=hostname/:read-attribute(name=default-provider) + echo Switching from request to default hostname provider + + /profile=$standaloneProfile/subsystem=keycloak-server/spi=hostname/:write-attribute(name=default-provider,value=default) +end-if + +if (result != fixed) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=hostname/:read-attribute(name=default-provider) + try + /profile=$standaloneProfile/subsystem=keycloak-server/spi=hostname/provider=fixed:remove + echo Removed config for unused fixed hostname provider + catch + end-try +end-if + +# Migrate from 10.0.2 to 11.0.0 (migration changes for infinispan update from 9.4.18.Final to 10.1.8.Final) + +if (result != org.keycloak.keycloak-model-infinispan) of /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak:read-attribute(name=module) + echo Setting class loader for keycloak cache-container so JBoss Marshalling works properly with Infinispan 10.x + /profile=$standaloneProfile/subsystem=infinispan/cache-container=keycloak:write-attribute(name=module,value=org.keycloak.keycloak-model-infinispan) + echo +end-if + +# Migrate from 12.0.0 to 13.0.0 + +## Add ability to make use of automatically generated self-signed certificate with Elytron, +## introduced by WFCORE-5095 in Wildfly Core 14.0.0.Final + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=elytron/key-store=applicationKS:read-resource + echo Adding key store for the feature of auto-generation of self-signed certificate to Elytron subsystem... + /profile=$standaloneProfile/subsystem=elytron/key-store=applicationKS:add(credential-reference={clear-text=password},type=JKS) + /profile=$standaloneProfile/subsystem=elytron/key-store=applicationKS:write-attribute(name=path,value=application.keystore) + /profile=$standaloneProfile/subsystem=elytron/key-store=applicationKS:write-attribute(name=relative-to,value=jboss.domain.config.dir) + echo +end-if + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=elytron/key-manager=applicationKM:read-resource + echo Adding key manager for the feature of auto-generation of self-signed certificate to Elytron subsystem... + /profile=$standaloneProfile/subsystem=elytron/key-manager=applicationKM:add(key-store=applicationKS, credential-reference={clear-text=password}) + /profile=$standaloneProfile/subsystem=elytron/key-manager=applicationKM:write-attribute(name=generate-self-signed-certificate-host,value=localhost) + echo +end-if + +if (outcome == failed) of /profile=$standaloneProfile/subsystem=elytron/server-ssl-context=applicationSSC:read-resource + echo Adding SSL context for the feature of auto-generation of self-signed certificate to Elytron subsystem... + /profile=$standaloneProfile/subsystem=elytron/server-ssl-context=applicationSSC:add(key-manager=applicationKM) + echo +end-if + +## Convert type of 'hung-task-termination-period' attribute for 'managed-executor-service' from INT to LONG +if (result == 0) of /profile=$standaloneProfile/subsystem=ee/managed-executor-service=default:read-attribute(name=hung-task-termination-period) + echo Setting period for automatic termination of hung tasks for managed executor service to default value (0 miliseconds) + /profile=$standaloneProfile/subsystem=ee/managed-executor-service=default:write-attribute(name=hung-task-termination-period,value=0L) + echo +end-if + +## Convert type of 'hung-task-termination-period' attribute for 'managed-scheduled-executor-service' from INT to LONG +if (result == 0) of /profile=$standaloneProfile/subsystem=ee/managed-scheduled-executor-service=default:read-attribute(name=hung-task-termination-period) + echo Setting period for automatic termination of hung tasks for managed scheduled executor service to default value (0 miliseconds) + /profile=$standaloneProfile/subsystem=ee/managed-scheduled-executor-service=default:write-attribute(name=hung-task-termination-period,value=0L) + echo +end-if + +## Set value of JPA default-datasource from empty string to 'undefined' +if (outcome == success) && (result == "") of /profile=$standaloneProfile/subsystem=jpa:read-attribute(name=default-datasource) + echo Setting value of to default-datasource attribute in JPA subsystem to 'undefined' + /profile=$standaloneProfile/subsystem=jpa:undefine-attribute(name=default-datasource) + echo +end-if + +echo *** End Migration of /profile=$standaloneProfile *** diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-standalone-ha.cli b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-standalone-ha.cli new file mode 100644 index 0000000000..ed1bae1735 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-standalone-ha.cli @@ -0,0 +1,891 @@ +echo +echo *** WARNING *** +echo +echo ** If the following embed-server command fails, manual intervention is needed. +echo ** In such case, remove any and declarations referring +echo ** to the removed smallrye modules from the standalone-ha.xml file and rerun this script. +echo ** For details, see Migration Changes section in the Upgrading guide. +echo ** We apologize for this inconvenience. +echo + +embed-server --server-config=standalone-ha.xml + +echo *** Begin Migration *** +echo + +# Migrate from 1.8.1 to 1.9.1 +if (outcome == failed) of /subsystem=infinispan/cache-container=keycloak/replicated-cache=work/:read-resource + echo Adding replicated-cache=work to keycloak cache container... + /subsystem=infinispan/cache-container=keycloak/replicated-cache=work/:add(mode=SYNC) + echo +end-if +# realmVersions cache deprecated in 2.1.0 +#if (outcome == failed) of /subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/:read-resource +# echo Adding local-cache=realmVersions to keycloak cache container... +# /subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/:add(indexing=NONE,start=LAZY) +# /subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/component=transaction/:write-attribute(name=mode,value=BATCH) +# echo +#end-if + +# Migrate from 1.9.1 to 1.9.2 +if (result == NONE) of /subsystem=infinispan/cache-container=keycloak/invalidation-cache=users/component=eviction/:read-attribute(name=strategy) + echo Adding eviction strategy to keycloak users cache container... + /subsystem=infinispan/cache-container=keycloak/invalidation-cache=users/component=eviction/:write-attribute(name=strategy,value=LRU) + /subsystem=infinispan/cache-container=keycloak/invalidation-cache=users/component=eviction/:write-attribute(name=max-entries,value=10000) + echo +end-if + +# Migrate from 1.9.2 to 2.0.0 +# NO CHANGES + +# Migrate from 2.0.0 to 2.1.0 +if (outcome == success) of /subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/:read-resource + echo Removing deprecated cache 'realmVersions' + /subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/:remove + echo +end-if + +# Migrate kecloak-server.json (deprecated in 2.2.0) +if (result == []) of /subsystem=keycloak-server/:read-children-names(child-type=spi) + echo Migrating keycloak-server.json to server cofig xml... + /subsystem=keycloak-server/:migrate-json + echo +end-if + +set persistenceProvider=jpa +if (result == [expression "classpath:${jboss.server.config.dir}/providers/*"]) of /subsystem=keycloak-server/:read-attribute(name=providers) + echo Updating provider to default value + /subsystem=keycloak-server/:write-attribute(name=providers,value=[classpath:${jboss.home.dir}/providers/*]) + echo +end-if +if (result == keycloak) of /subsystem=keycloak-server/theme=defaults:read-attribute(name=default) + echo Undefining default theme... + /subsystem=keycloak-server/theme=defaults:undefine-attribute(name=default) + echo +end-if +if (result == expression "${jboss.server.config.dir}/themes") of /subsystem=keycloak-server/theme=defaults:read-attribute(name=dir) + echo Updating theme dir to default value + /subsystem=keycloak-server/theme=defaults/:write-attribute(name=dir,value=${jboss.home.dir}/themes) + echo +end-if + +# Migrate from 2.1.0 to 2.2.0 +if (outcome == failed) of /extension=org.jboss.as.deployment-scanner/:read-resource + echo Adding deployment-scanner extension... + /extension=org.jboss.as.deployment-scanner/:add(module=org.jboss.as.deployment-scanner) + echo +end-if +if (outcome == failed) of /subsystem=deployment-scanner/:read-resource + echo Adding deployment-scanner... + /subsystem=deployment-scanner/:add + echo +end-if +if (outcome == failed) of /subsystem=deployment-scanner/scanner=default/:read-resource + echo Adding scanner=default + /subsystem=deployment-scanner/scanner=default/:add(path=deployments,relative-to=jboss.server.base.dir,runtime-failure-causes-rollback=${jboss.deployment.scanner.rollback.on.failure:false},scan-interval=5000) + echo +end-if + +if (outcome == failed) of /subsystem=infinispan/cache-container=keycloak/distributed-cache=authorization/:read-resource + # In migration from 3.0.0 to 3.2.0 there is authorization distributed-cache replaced with local-cache + try + echo + /subsystem=infinispan/cache-container=keycloak/distributed-cache=authorization/:add(mode=SYNC,owners=1) + echo Added distributed-cache=authorization + catch + end-try +end-if + +if (result == update) of /subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-get(name=properties,key=databaseSchema) + echo Updating connectionsJpa default properties... + /subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-remove(name=properties,key=databaseSchema) + /subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-put(name=properties,key=initializeEmpty,value=true) + /subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-put(name=properties,key=migrationStrategy,value=update) + /subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-put(name=properties,key=migrationExport,value=${jboss.home.dir}/keycloak-database-update.sql) + echo +end-if +if (outcome == failed) of /subsystem=keycloak-server/spi=userFederatedStorage/:read-resource + echo Adding spi=userFederatedStorage... + /subsystem=keycloak-server/spi=userFederatedStorage/:add(default-provider=$persistenceProvider) + echo +end-if +if (outcome == failed) of /subsystem=keycloak-server/spi=jta-lookup/:read-resource + echo Adding spi=jta-lookup... + /subsystem=keycloak-server/spi=jta-lookup/:add(default-provider=${keycloak.jta.lookup.provider:jboss}) + /subsystem=keycloak-server/spi=jta-lookup/provider=jboss/:add(enabled=true) + echo +end-if + +# Migrate from 2.2.0 to 2.2.1 +# NO CHANGES + +# Migrate from 2.2.1 to 2.3.0 +if (outcome == failed) of /subsystem=infinispan/cache-container=keycloak/local-cache=keys/:read-resource + echo Adding local-cache=keys to keycloak cache container... + /subsystem=infinispan/cache-container=keycloak/local-cache=keys/:add(indexing=NONE,start=LAZY) + echo +end-if +if (result == undefined) of /subsystem=infinispan/cache-container=keycloak/local-cache=keys/component=eviction/:read-attribute(name=strategy,include-defaults=false) + echo Updating eviction and expiration in local-cache=keys... + /subsystem=infinispan/cache-container=keycloak/local-cache=keys/component=eviction/:write-attribute(name=strategy,value=LRU) + /subsystem=infinispan/cache-container=keycloak/local-cache=keys/component=eviction/:write-attribute(name=max-entries,value=1000) + /subsystem=infinispan/cache-container=keycloak/local-cache=keys/component=expiration/:write-attribute(name=max-idle,value=3600000) + echo +end-if +if (outcome == failed) of /subsystem=keycloak-server/spi=publicKeyStorage/:read-resource + echo Adding spi=publicKeyStorage... + /subsystem=keycloak-server/spi=publicKeyStorage/:add + /subsystem=keycloak-server/spi=publicKeyStorage/provider=infinispan/:add(properties={minTimeBetweenRequests => "10"},enabled=true) + echo +end-if + +# Migrate from 2.3.0 to 2.4.0 +if (outcome == success) of /subsystem=infinispan/cache-container=keycloak/invalidation-cache=users/:read-resource + echo Replacing invalidation-cache=users with local-cache=users + /subsystem=infinispan/cache-container=keycloak/invalidation-cache=users/:remove + /subsystem=infinispan/cache-container=keycloak/local-cache=users/:add + echo +end-if +if (result == undefined) of /subsystem=infinispan/cache-container=keycloak/local-cache=users/component=eviction/:read-attribute(name=strategy,include-defaults=false) + echo Updating eviction in local-cache=users + /subsystem=infinispan/cache-container=keycloak/local-cache=users/component=eviction/:write-attribute(name=strategy,value=LRU) + /subsystem=infinispan/cache-container=keycloak/local-cache=users/component=eviction/:write-attribute(name=max-entries,value=10000) + echo +end-if +if (outcome == success) of /subsystem=infinispan/cache-container=keycloak/invalidation-cache=realms/:read-resource + echo Replacing invalidation-cache=realms with local-cache=realms + /subsystem=infinispan/cache-container=keycloak/invalidation-cache=realms/:remove + /subsystem=infinispan/cache-container=keycloak/local-cache=realms/:add + echo +end-if + + +# Migrate from 2.4.0 to 2.5.0 +if (result == NONE) of /subsystem=infinispan/cache-container=keycloak/local-cache=realms/component=eviction/:read-attribute(name=strategy) + echo Adding eviction strategy to keycloak realms cache... + /subsystem=infinispan/cache-container=keycloak/local-cache=realms/component=eviction/:write-attribute(name=strategy,value=LRU) + /subsystem=infinispan/cache-container=keycloak/local-cache=realms/component=eviction/:write-attribute(name=max-entries,value=10000) + echo +end-if + +# Migrate from 2.5.0 to 2.5.1 +# NO CHANGES + +# Migrate 2.5.1 to 2.5.4 +if (result != REPEATABLE_READ) of /subsystem=infinispan/cache-container=ejb/local-cache=persistent/component=locking/:read-attribute(name=isolation) + echo Changing ejb cache locking to REPEATABLE_READ + /subsystem=infinispan/cache-container=ejb/local-cache=persistent/component=locking/:write-attribute(name=isolation,value=REPEATABLE_READ) + echo +end-if + +if (outcome == success) of /subsystem=infinispan/cache-container=hibernate/local-cache=immutable-entity/:read-resource + echo Removing Hibernate immutable-entity cache + /subsystem=infinispan/cache-container=hibernate/local-cache=immutable-entity/:remove +end-if + + +# Migrate from 2.5.4 to 3.0.0 +if (result == jpa) of /subsystem=keycloak-server/spi=eventsStore/:read-attribute(name=default-provider,include-defaults=false) + echo Removing default provider for eventsStore + /subsystem=keycloak-server/spi=eventsStore/:undefine-attribute(name=default-provider) + echo +end-if + +if ((outcome == success) && (result.default-provider == jpa) && (result.provider == undefined)) of /subsystem=keycloak-server/spi=realm/:read-resource(recursive=false,include-defaults=false) + echo Removing declaration for user SPI + /subsystem=keycloak-server/spi=realm/:remove + echo +end-if + +if ((outcome == success) && (result.default-provider == jpa) && (result.provider == undefined)) of /subsystem=keycloak-server/spi=user/:read-resource(recursive=false,include-defaults=false) + echo Removing declaration for user SPI + /subsystem=keycloak-server/spi=user/:remove + echo +end-if + +if ((outcome == success) && (result.default-provider == jpa) && (result.provider == undefined)) of /subsystem=keycloak-server/spi=userFederatedStorage/:read-resource(recursive=false,include-defaults=false) + echo Removing declaration for userFederatedStorage SPI + /subsystem=keycloak-server/spi=userFederatedStorage/:remove + echo +end-if + +if ((outcome == success) && (result.default-provider == jpa) && (result.provider == undefined)) of /subsystem=keycloak-server/spi=authorizationPersister/:read-resource(recursive=false,include-defaults=false) + echo Removing declaration for authorizationPersister SPI + /subsystem=keycloak-server/spi=authorizationPersister/:remove + echo +end-if + +if (outcome == failed) of /subsystem=keycloak-server/spi=userCache/:read-resource + echo Adding userCache SPI + /subsystem=keycloak-server/spi=userCache/:add + /subsystem=keycloak-server/spi=userCache/provider=default/:add(enabled=true) + echo +end-if + +if (outcome == failed) of /subsystem=keycloak-server/spi=realmCache/:read-resource + echo Adding realmCache SPI + /subsystem=keycloak-server/spi=realmCache/:add + /subsystem=keycloak-server/spi=realmCache/provider=default/:add(enabled=true) + echo +end-if + +if ((result.default-provider == undefined) && (result.provider.default.enabled == true)) of /subsystem=keycloak-server/spi=connectionsInfinispan/:read-resource(recursive=true,include-defaults=false) + echo Adding 'default' as default provider for connectionsInfinispan + /subsystem=keycloak-server/spi=connectionsInfinispan/:write-attribute(name=default-provider,value=default) + echo +end-if + +# Migrate from 3.0.0 to 3.2.0 +if (outcome == failed) of /subsystem=infinispan/cache-container=keycloak/distributed-cache=authenticationSessions/:read-resource + echo Adding distributed-cache=authenticationSessions to keycloak cache container... + /subsystem=infinispan/cache-container=keycloak/distributed-cache=authenticationSessions/:add(mode=SYNC,owners=1) + echo +end-if + +if (outcome == failed) of /subsystem=infinispan/cache-container=keycloak/distributed-cache=actionTokens/:read-resource + echo Adding distributed-cache=actionTokens to keycloak cache container... + /subsystem=infinispan/cache-container=keycloak/distributed-cache=actionTokens/:add(indexing=NONE,mode=SYNC,owners=2) + /subsystem=infinispan/cache-container=keycloak/distributed-cache=actionTokens/component=eviction/:write-attribute(name=strategy,value=NONE) + /subsystem=infinispan/cache-container=keycloak/distributed-cache=actionTokens/component=eviction/:write-attribute(name=max-entries,value=-1) + /subsystem=infinispan/cache-container=keycloak/distributed-cache=actionTokens/component=expiration/:write-attribute(name=interval,value=300000) + /subsystem=infinispan/cache-container=keycloak/distributed-cache=actionTokens/component=expiration/:write-attribute(name=max-idle,value=-1) + echo +end-if + +if (outcome == success) of /subsystem=infinispan/cache-container=keycloak/distributed-cache=authorization/:read-resource + echo Replacing distributed-cache=authorization with local-cache=authorization + /subsystem=infinispan/cache-container=keycloak/distributed-cache=authorization/:remove + /subsystem=infinispan/cache-container=keycloak/local-cache=authorization/:add + /subsystem=infinispan/cache-container=keycloak/local-cache=authorization/component=eviction/:write-attribute(name=strategy,value=LRU) + /subsystem=infinispan/cache-container=keycloak/local-cache=authorization/component=eviction/:write-attribute(name=max-entries,value=10000) + echo +end-if + +# Migrate from 3.2.0 to 3.2.1 +# NO CHANGES + +# Migrate from 3.2.1 to 3.3.0 +if (outcome == failed) of /core-service=management/security-realm=ApplicationRealm/server-identity=ssl:read-resource + echo Adding keystore to ApplicationRealm... + /core-service=management/security-realm=ApplicationRealm/server-identity=ssl:add(keystore-path=application.keystore,keystore-relative-to=jboss.server.config.dir,keystore-password=password,alias=server,key-password=password,generate-self-signed-certificate-host=localhost) + echo +end-if + +if (outcome == failed) of /extension=org.wildfly.extension.elytron/:read-resource + echo Adding elytron extension... + /extension=org.wildfly.extension.elytron/:add(module=org.wildfly.extension.elytron) + echo +end-if + +if (outcome == failed) of /subsystem=elytron/:read-resource + echo Adding elytron subsystem + /subsystem=elytron:add + /subsystem=elytron/provider-loader=elytron/:add(module=org.wildfly.security.elytron) + /subsystem=elytron/provider-loader=openssl/:add(module=org.wildfly.openssl) + /subsystem=elytron/aggregate-providers=combined-providers/:add(providers=[elytron,openssl]) + /subsystem=elytron/file-audit-log=local-audit/:add(path=audit.log,relative-to=jboss.server.log.dir,format=JSON) + /subsystem=elytron/identity-realm=local/:add(identity="$local") + /subsystem=elytron/properties-realm=ApplicationRealm/:add(users-properties={path=application-users.properties,relative-to=jboss.server.config.dir,digest-realm-name=ApplicationRealm},groups-properties={path=application-roles.properties,relative-to=jboss.server.config.dir}) + /subsystem=elytron/properties-realm=ManagementRealm/:add(users-properties={path=mgmt-users.properties,relative-to=jboss.server.config.dir,digest-realm-name=ManagementRealm},groups-properties={path=mgmt-groups.properties,relative-to=jboss.server.config.dir}) + /subsystem=elytron/simple-permission-mapper=default-permission-mapper/:add(mapping-mode=first,permission-mappings=[{principals=[anonymous],permissions=[{class-name=org.wildfly.extension.batch.jberet.deployment.BatchPermission,module=org.wildfly.extension.batch.jberet,target-name=*},{class-name=org.wildfly.transaction.client.RemoteTransactionPermission,module=org.wildfly.transaction.client},{class-name=org.jboss.ejb.client.RemoteEJBPermission,module=org.jboss.ejb-client}]},{match-all=true,permissions=[{class-name=org.wildfly.security.auth.permission.LoginPermission},{class-name=org.wildfly.extension.batch.jberet.deployment.BatchPermission,module=org.wildfly.extension.batch.jberet,target-name=*},{class-name=org.wildfly.transaction.client.RemoteTransactionPermission,module=org.wildfly.transaction.client},{class-name=org.jboss.ejb.client.RemoteEJBPermission,module=org.jboss.ejb-client}]}]) + /subsystem=elytron/constant-realm-mapper=local/:add(realm-name=local) + /subsystem=elytron/simple-role-decoder=groups-to-roles/:add(attribute=groups) + /subsystem=elytron/constant-role-mapper=super-user-mapper/:add(roles=[SuperUser]) + /subsystem=elytron/security-domain=ApplicationDomain/:add(default-realm=ApplicationRealm,permission-mapper=default-permission-mapper,realms=[{realm=ApplicationRealm,role-decoder=groups-to-roles},{realm=local}]) + /subsystem=elytron/security-domain=ManagementDomain/:add(default-realm=ManagementRealm,permission-mapper=default-permission-mapper,realms=[{realm=ManagementRealm,role-decoder=groups-to-roles},{realm=local,role-mapper=super-user-mapper}]) + /subsystem=elytron/provider-http-server-mechanism-factory=global/:add + /subsystem=elytron/http-authentication-factory=management-http-authentication/:add(http-server-mechanism-factory=global,security-domain=ManagementDomain,mechanism-configurations=[{mechanism-name=DIGEST,mechanism-realm-configurations=[{realm-name=ManagementRealm}]}]) + /subsystem=elytron/http-authentication-factory=application-http-authentication/:add(http-server-mechanism-factory=global,security-domain=ApplicationDomain,mechanism-configurations=[{mechanism-name=BASIC,mechanism-realm-configurations=[{realm-name=Application Realm}]},{mechanism-name=FORM}]) + /subsystem=elytron/provider-sasl-server-factory=global/:add + /subsystem=elytron/mechanism-provider-filtering-sasl-server-factory=elytron/:add(sasl-server-factory=global,filters=[{provider-name=WildFlyElytron}]) + /subsystem=elytron/configurable-sasl-server-factory=configured/:add(sasl-server-factory=elytron,properties={wildfly.sasl.local-user.default-user => "$local"}) + /subsystem=elytron/sasl-authentication-factory=management-sasl-authentication/:add(sasl-server-factory=configured,security-domain=ManagementDomain,mechanism-configurations=[{mechanism-name=JBOSS-LOCAL-USER,realm-mapper=local},{mechanism-name=DIGEST-MD5,mechanism-realm-configurations=[{realm-name=ManagementRealm}]}]) + /subsystem=elytron/sasl-authentication-factory=application-sasl-authentication/:add(sasl-server-factory=configured,security-domain=ApplicationDomain,mechanism-configurations=[{mechanism-name=JBOSS-LOCAL-USER,realm-mapper=local},{mechanism-name=DIGEST-MD5,mechanism-realm-configurations=[{realm-name=ApplicationRealm}]}]) + /subsystem=elytron/:write-attribute(name=final-providers,value=combined-providers) + /subsystem=elytron/:write-attribute(name=disallowed-providers,value=[OracleUcrypto]) + echo +end-if + +if (outcome == failed) of /subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:read-resource + echo Adding channel-creation-options READ_TIMEOUT to ejb3 remote + /subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:add(value="${prop.remoting-connector.read.timeout:20}",type=xnio) + echo +end-if + +if (outcome == failed) of /subsystem=ejb3/service=remote/channel-creation-options=MAX_OUTBOUND_MESSAGES/:read-resource + echo Adding channel-creation-options MAX_OUTBOUND_MESSAGES to ejb3 remote + /subsystem=ejb3/service=remote/channel-creation-options=MAX_OUTBOUND_MESSAGES/:add(value=1234,type=remoting) + echo +end-if + +if (result == ASYNC) of /subsystem=infinispan/cache-container=web/distributed-cache=dist:read-attribute(name=mode) + echo Setting SYNC mode for web cache-container + /subsystem=infinispan/cache-container=web/distributed-cache=dist:write-attribute(name=mode,value=SYNC) + echo +end-if + +if (result == ASYNC) of /subsystem=infinispan/cache-container=ejb/distributed-cache=dist:read-attribute(name=mode) + echo Setting SYNC mode for ejb cache-container + /subsystem=infinispan/cache-container=ejb/distributed-cache=dist:write-attribute(name=mode,value=SYNC) + echo +end-if + +if (result == undefined) of /subsystem=jgroups/channel=ee/:read-attribute(name=cluster) + echo Setting cluster attribute to ejb in jgroups subsystem + /subsystem=jgroups/channel=ee/:write-attribute(name=cluster,value=ejb) + echo +end-if + +if (result != undefined) of /subsystem=jgroups/stack=udp/protocol=FD_SOCK/:read-attribute(name=socket-binding) + echo Unsetting socket-binding from udp FD_SOCK protocol + # it has to be done via remove and add, because socket-binding is not writable attribute + /subsystem=jgroups/stack=udp/protocol=FD_SOCK/:remove + /subsystem=jgroups/stack=udp/protocol=FD_SOCK/:add + echo +end-if + +if (outcome == success) of /subsystem=jgroups/stack=tcp/protocol=FD/:read-resource + echo Replacing tcp FD protocol with FD_ALL + /subsystem=jgroups/stack=tcp/protocol=FD/:remove + /subsystem=jgroups/stack=tcp/protocol=FD_ALL/:add + echo +end-if + +if (result != undefined) of /subsystem=jgroups/stack=tcp/protocol=FD_SOCK/:read-attribute(name=socket-binding) + echo Unsetting socket-binding from tcp FD_SOCK protocol + # it has to be done via remove and add, because socket-binding is not writable attribute + /subsystem=jgroups/stack=tcp/protocol=FD_SOCK/:remove + /subsystem=jgroups/stack=tcp/protocol=FD_SOCK/:add + echo +end-if + +if (outcome == failed) of /subsystem=undertow/server=default-server/host=default-host/setting=http-invoker/:read-resource + echo Adding http-invoker to default-host + /subsystem=undertow/server=default-server/host=default-host/setting=http-invoker/:add(security-realm=ApplicationRealm) + echo +end-if + +if (result == false) of /subsystem=undertow/server=default-server/http-listener=default/:read-attribute(name=enable-http2) + echo Enabling http2 for default http-listener + /subsystem=undertow/server=default-server/http-listener=default/:write-attribute(name=enable-http2,value=true) + echo +end-if + +if (outcome == failed) of /subsystem=undertow/server=default-server/https-listener=https/:read-resource + echo Adding https-listener + /subsystem=undertow/server=default-server/https-listener=https/:add(socket-binding=https,security-realm=ApplicationRealm,enable-http2=true) + echo +end-if + +if (outcome == success) of /socket-binding-group=standard-sockets/socket-binding=jgroups-tcp-fd/:read-resource + echo Removing socket-binding jgroups-tcp-fd + /socket-binding-group=standard-sockets/socket-binding=jgroups-tcp-fd/:remove + echo +end-if + +if (outcome == success) of /socket-binding-group=standard-sockets/socket-binding=jgroups-udp-fd/:read-resource + echo Removing socket-binding jgroups-udp-fd + /socket-binding-group=standard-sockets/socket-binding=jgroups-udp-fd/:remove + echo +end-if + +if (result == 224.0.1.105) of /socket-binding-group=standard-sockets/socket-binding=modcluster/:read-attribute(name=multicast-address) + echo Adding jboss.modcluster.multicast.address property to modcluster multicast-address + /socket-binding-group=standard-sockets/socket-binding=modcluster/:write-attribute(name=multicast-address,value=${jboss.modcluster.multicast.address:224.0.1.105}) + echo +end-if + +# Migrate from 3.3.0 to 3.4.0 +if (outcome == success) of /subsystem=undertow/server=default-server/host=default-host/filter-ref=server-header/:read-resource + echo Removing X-Powered-By and Server headers from Keycloak responses... + /subsystem=undertow/server=default-server/host=default-host/filter-ref=server-header/:remove + /subsystem=undertow/server=default-server/host=default-host/filter-ref=x-powered-by-header/:remove + /subsystem=undertow/configuration=filter/response-header=x-powered-by-header/:remove + /subsystem=undertow/configuration=filter/response-header=server-header/:remove + echo +end-if + +if (outcome == success) of /subsystem=jdr/:read-resource + echo Removing jdr subsystem and extension + /subsystem=jdr/:remove + /extension=org.jboss.as.jdr/:remove + echo +end-if + +if (outcome == success) of /subsystem=jsf/:read-resource + echo Removing jsf subsystem and extension + /subsystem=jsf/:remove + /extension=org.jboss.as.jsf/:remove + echo +end-if + +if (outcome == failed) of /subsystem=infinispan/cache-container=keycloak/distributed-cache=clientSessions/:read-resource + echo Adding distributed-cache=clientSessions to keycloak cache container... + /subsystem=infinispan/cache-container=keycloak/distributed-cache=clientSessions/:add(mode=SYNC,owners=1) + echo +end-if + +if (outcome == failed) of /subsystem=infinispan/cache-container=keycloak/distributed-cache=offlineClientSessions/:read-resource + echo Adding distributed-cache=offlineClientSessions to keycloak cache container... + /subsystem=infinispan/cache-container=keycloak/distributed-cache=offlineClientSessions/:add(mode=SYNC,owners=1) + echo +end-if + +if (outcome == failed) of /subsystem=keycloak-server/spi=x509cert-lookup/:read-resource + echo Adding spi=x509cert-lookup... + /subsystem=keycloak-server/spi=x509cert-lookup/:add(default-provider=${keycloak.x509cert.lookup.provider:default}) + /subsystem=keycloak-server/spi=x509cert-lookup/provider=default/:add(enabled=true) + echo +end-if + +# Migrate from 4.2.0 to 4.3.0 +if (outcome == failed) of /subsystem=keycloak-server/spi=hostname/:read-resource + echo Adding spi=hostname... + /subsystem=keycloak-server/spi=hostname/:add(default-provider=request) + /subsystem=keycloak-server/spi=hostname/provider=fixed/:add(properties={hostname => "localhost",httpPort => "-1",httpsPort => "-1"},enabled=true) + echo +end-if + +# Migrate from 4.3.0 to 4.4.0 +if (outcome == failed) of /subsystem=elytron/permission-set=login-permission/:read-resource + echo Adding permission-set=login-permission to elytron + /subsystem=elytron/permission-set=login-permission:add(permissions=[{class-name=org.wildfly.security.auth.permission.LoginPermission}]) + /subsystem=elytron/permission-set=default-permissions/:add(permissions=[{class-name=org.wildfly.extension.batch.jberet.deployment.BatchPermission,module=org.wildfly.extension.batch.jberet,target-name=*},{class-name=org.wildfly.transaction.client.RemoteTransactionPermission,module=org.wildfly.transaction.client},{class-name=org.jboss.ejb.client.RemoteEJBPermission,module=org.jboss.ejb-client}]) + /subsystem=elytron/simple-permission-mapper=default-permission-mapper/:undefine-attribute(name=permission-mappings) + /subsystem=elytron/simple-permission-mapper=default-permission-mapper:write-attribute(name=permission-mappings,value=[{permission-sets=[{permission-set=login-permission},{permission-set=default-permissions}],match-all=true},{permission-sets=[{permission-set=default-permissions}],principals=[anonymous]}]) + echo +end-if + + +if (result == org.hibernate.infinispan) of /subsystem=infinispan/cache-container=hibernate:read-attribute(name=module) + echo Update hibernate cache module + /subsystem=infinispan/cache-container=hibernate:write-attribute(name=module, value=org.infinispan.hibernate-cache) + echo +end-if +if (outcome == success) of /subsystem=infinispan/cache-container=hibernate:read-attribute(name=default-cache) + echo Remove default cache from hibernate cache + /subsystem=infinispan/cache-container=hibernate:undefine-attribute(name=default-cache) + echo +end-if +if (result == ASYNC) of /subsystem=infinispan/cache-container=hibernate/replicated-cache=timestamps:read-attribute(name=mode) + echo Switching mode for timestamps cache from ASYNC to SYNC + /subsystem=infinispan/cache-container=hibernate/replicated-cache=timestamps:write-attribute(name=mode, value=SYNC) + echo +end-if + +if (outcome == success) of /subsystem=infinispan/cache-container=hibernate/local-cache=entity/eviction=EVICTION:read-resource + echo Removing eviction from hibernate entity cache and replacing with object-memory + /subsystem=infinispan/cache-container=hibernate/local-cache=entity/eviction=EVICTION:remove + /subsystem=infinispan/cache-container=hibernate/local-cache=entity/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /subsystem=infinispan/cache-container=hibernate/distributed-cache=local-query/eviction=EVICTION:read-resource + echo Removing eviction from hibernate local-query cache and replacing with object-memory + /subsystem=infinispan/cache-container=hibernate/local-cache=local-query/eviction=EVICTION:remove + /subsystem=infinispan/cache-container=hibernate/local-cache=local-query/memory=object:add(size=10000) + echo +end-if + +if (outcome == success) of /subsystem=infinispan/cache-container=keycloak/local-cache=realms/eviction=EVICTION:read-resource + echo Removing eviction from keycloak realms cache and replacing with object-memory + /subsystem=infinispan/cache-container=keycloak/local-cache=realms/eviction=EVICTION:remove + /subsystem=infinispan/cache-container=keycloak/local-cache=realms/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /subsystem=infinispan/cache-container=keycloak/local-cache=users/eviction=EVICTION:read-resource + echo Removing eviction from keycloak users cache and replacing with object-memory + /subsystem=infinispan/cache-container=keycloak/local-cache=users/eviction=EVICTION:remove + /subsystem=infinispan/cache-container=keycloak/local-cache=users/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /subsystem=infinispan/cache-container=keycloak/local-cache=authorization/eviction=EVICTION:read-resource + echo Removing eviction from keycloak authorization cache and replacing with object-memory + /subsystem=infinispan/cache-container=keycloak/local-cache=authorization/eviction=EVICTION:remove + /subsystem=infinispan/cache-container=keycloak/local-cache=authorization/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /subsystem=infinispan/cache-container=keycloak/local-cache=keys/eviction=EVICTION:read-resource + echo Removing eviction from keycloak keys cache and replacing with object-memory + /subsystem=infinispan/cache-container=keycloak/local-cache=keys/eviction=EVICTION:remove + /subsystem=infinispan/cache-container=keycloak/local-cache=keys/memory=object:add(size=1000) + echo +end-if + +if (outcome == success) of /subsystem=jgroups/stack=tcp/protocol=FRAG2:read-resource + echo Upgrade jgroups protocol from FRAG2 to FRAG3 for tcp stack + /subsystem=jgroups/stack=tcp/protocol=FRAG2:remove + /subsystem=jgroups/stack=tcp/protocol=FRAG3:add() + echo +end-if +if (outcome == success) of /subsystem=jgroups/stack=udp/protocol=FRAG2:read-resource + echo Upgrade jgroups protocol from FRAG2 to FRAG3 for udp stack + /subsystem=jgroups/stack=udp/protocol=FRAG2:remove + /subsystem=jgroups/stack=udp/protocol=FRAG3:add() + echo +end-if +if (outcome == success) of /subsystem=remoting/configuration=endpoint:read-resource + echo Remove endpoint from remoting configuration + /subsystem=remoting/configuration=endpoint:remove + echo +end-if +if (outcome == success) of /socket-binding-group=standard-sockets/socket-binding=jgroups-mping:read-attribute(name=port) + /socket-binding-group=standard-sockets/socket-binding=jgroups-mping:undefine-attribute(name=port) +end-if +if (outcome == success) of /socket-binding-group=standard-sockets/socket-binding=modcluster:read-attribute(name=port) + /socket-binding-group=standard-sockets/socket-binding=modcluster:undefine-attribute(name=port) +end-if + +if (outcome == success) of /subsystem=keycloak-server/spi=connectionsInfinispan/provider=default:read-resource + echo Changing JNDI reference in connectionsInfinispan SPI + /subsystem=keycloak-server/spi=connectionsInfinispan/provider=default:undefine-attribute(name=properties) + /subsystem=keycloak-server/spi=connectionsInfinispan/provider=default:write-attribute(name=properties,value={cacheContainer=java:jboss/infinispan/container/keycloak}) + echo +end-if + +# Migrate from 4.4.0 to 4.5.0 +if (outcome == failed) of /subsystem=core-management/:read-resource + echo Adding core-management extension + /extension=org.wildfly.extension.core-management/:add + echo Adding subsystem core-management + /subsystem=core-management/:add + echo +end-if + +# Migrate from 4.5.0 to 4.6.0 +if (outcome == success) of /subsystem=elytron/http-authentication-factory=application-http-authentication/:read-resource + echo Removing application-http-authentication from elytron subsystem + /subsystem=elytron/http-authentication-factory=application-http-authentication:remove + echo +end-if + +if (result == undefined) of /subsystem=transactions/:read-attribute(name=node-identifier,include-defaults=false) + echo Setting node-identifier attribute of core-environment element in transactions subsystem + /subsystem=transactions/:write-attribute(name=node-identifier,value=expression "${jboss.tx.node.id:1}") + echo +end-if + +if (outcome == success) of /subsystem=jgroups/stack=udp/transport=UDP/property=port_range:read-attribute(name=value) + try + /subsystem=jgroups/stack=udp/transport=UDP/property=port_range:remove + echo Remove port_range property from UDP transport type of udp stack + catch + echo + end-try +end-if + +if (outcome == success) of /subsystem=jgroups/stack=tcp/transport=TCP/property=port_range:read-attribute(name=value) + try + /subsystem=jgroups/stack=tcp/transport=TCP/property=port_range:remove + echo Remove port_range property from TCP transport type of tcp stack + catch + echo + end-try +end-if + +# Migrate from 4.8.3 to 5.0.0 +if (outcome == failed) of /subsystem=logging/logger=io.jaegertracing.Configuration/:read-resource + echo Adding io.jaegertracing.Configuration logger + /subsystem=logging/logger=io.jaegertracing.Configuration/:add(category=io.jaegertracing.Configuration,level=WARN) + echo +end-if + +# Migrate from 5.0.0 to 6.0.0 +if (result == NON_XA) of /subsystem=infinispan/cache-container=hibernate/local-cache=entity/component=transaction/:read-attribute(name=mode) + echo Removing NON_XA transaction mode from infinispan/hibernate/entity + /subsystem=infinispan/cache-container=hibernate/local-cache=entity/component=transaction/:undefine-attribute(name=mode) + echo +end-if + +if (result == false) of /subsystem=datasources/data-source=ExampleDS/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to ExampleDS datasource + /subsystem=datasources/data-source=ExampleDS/:write-attribute(name=statistics-enabled,value=${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /subsystem=datasources/data-source=KeycloakDS/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to KeycloakDS datasource + /subsystem=datasources/data-source=KeycloakDS/:write-attribute(name=statistics-enabled,value=${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /subsystem=ejb3/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to ejb3 subsystem + /subsystem=ejb3/:write-attribute(name=statistics-enabled,value=${wildfly.ejb3.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /subsystem=transactions/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to transactions subsystem + /subsystem=transactions/:write-attribute(name=statistics-enabled,value=${wildfly.transactions.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /subsystem=undertow/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to undertow subsystem + /subsystem=undertow/:write-attribute(name=statistics-enabled,value=${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /subsystem=webservices/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to webservices subsystem + /subsystem=webservices/:write-attribute(name=statistics-enabled,value=${wildfly.webservices.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (outcome == failed) of /extension=org.jboss.as.weld/:read-resource + echo Adding weld extension + /extension=org.jboss.as.weld/:add + echo +end-if + +if (outcome == failed) of /subsystem=weld/:read-resource + echo Adding weld subsystem + /subsystem=weld/:add + echo +end-if + +## KEYCLOAK-16723 / KEYCLOAK-16907: +## +## Loading of MicroProfile SmallRye config, health, and metrics extensions & subsystems got removed +## as part of upgrading to Wildfly 22. See [WFLY-14203], [WFLY-14151], and [WFLY-14108] for details + +# Migrate from 6.0.1 to 7.0.0 +if (outcome == success) of /subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:read-resource + echo Removing READ_TIMEOUT option from remote service from ejb3 subsystem + /subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:remove + echo +end-if + +if (outcome == failed) of /subsystem=infinispan/cache-container=web/distributed-cache=routing:read-resource + echo Adding distributed cache routing to web cache container to infinispan subsystem + /subsystem=infinispan/cache-container=web/distributed-cache=routing/:add + echo +end-if + +if (outcome == failed) of /subsystem=infinispan/cache-container=web/replicated-cache=sso:read-resource + echo Adding replicated cache sso to web cache container to infinispan subsystem + /subsystem=infinispan/cache-container=web/replicated-cache=sso/:add + /subsystem=infinispan/cache-container=web/replicated-cache=sso/component=locking/:add(isolation=REPEATABLE_READ) + /subsystem=infinispan/cache-container=web/replicated-cache=sso/component=transaction/:add(mode=BATCH) + echo +end-if + +if (outcome == failed) of /socket-binding-group=standard-sockets/socket-binding=jgroups-tcp-fd/:read-resource + echo Adding jgroups-tcp-fd socket binding to socket binding group + /socket-binding-group=standard-sockets/socket-binding=jgroups-tcp-fd/:add(interface=private,port=57600) + echo +end-if + +if (outcome == failed) of /socket-binding-group=standard-sockets/socket-binding=jgroups-udp-fd/:read-resource + echo Adding jgroups-udp-fd socket binding to socket binding group + /socket-binding-group=standard-sockets/socket-binding=jgroups-udp-fd/:add(interface=private,port=54200) + echo +end-if + +if (result == undefined) of /subsystem=jgroups/stack=tcp/protocol=FD_SOCK/:read-attribute(name=socket-binding) + echo Adding socket-binding for FD_SOCK protocol for tcp stack in jgroups subsystem + /subsystem=jgroups/stack=tcp/protocol=FD_SOCK/:write-attribute(name=socket-binding,value=jgroups-tcp-fd) + echo +end-if + +if (result == undefined) of /subsystem=jgroups/stack=udp/protocol=FD_SOCK/:read-attribute(name=socket-binding) + echo Adding socket-binding for FD_SOCK protocol for udp stack in jgroups subsystem + /subsystem=jgroups/stack=udp/protocol=FD_SOCK/:write-attribute(name=socket-binding,value=jgroups-udp-fd) + echo +end-if + +if (result == "true") of /subsystem=keycloak-server/spi=truststore/provider=file:map-get(name=properties, key=disabled) + echo Disabling Truststore Provider + /subsystem=keycloak-server/spi=truststore/provider=file:write-attribute(name=enabled, value=false) + echo Removing deprecated option + /subsystem=keycloak-server/spi=truststore/provider=file:map-remove(name=properties, key=disabled) + echo +end-if + +# Migrate from 7.0.0 to 8.0.0 + +if ((result.time == 100L) && (result.unit == MILLISECONDS)) of /subsystem=ejb3/thread-pool=default:read-attribute(name=keepalive-time) + echo Changing thread pool keepalive of ejb3 subsystem + /subsystem=ejb3/thread-pool=default:write-attribute(name=keepalive-time.time, value=60) + /subsystem=ejb3/thread-pool=default:write-attribute(name=keepalive-time.unit,value=SECONDS) + echo +end-if + +if (result == UP) of /subsystem=microprofile-health-smallrye:read-attribute(name=empty-liveness-checks-status) + echo Adding empty-liveness-checks-status attribute to microprofile-health-smallrye subsystem + /subsystem=microprofile-health-smallrye:write-attribute(name=empty-liveness-checks-status, value=${env.MP_HEALTH_EMPTY_LIVENESS_CHECKS_STATUS:UP}) + echo +end-if + +if (result == UP) of /subsystem=microprofile-health-smallrye:read-attribute(name=empty-readiness-checks-status) + echo Adding empty-readiness-checks-status attribute to microprofile-health-smallrye subsystem + /subsystem=microprofile-health-smallrye:write-attribute(name=empty-readiness-checks-status, value=${env.MP_HEALTH_EMPTY_READINESS_CHECKS_STATUS:UP}) + echo +end-if + +if (outcome == failed) of /subsystem=keycloak-server/spi=hostname/provider=default/:read-resource + echo Adding default hostname provider + /subsystem=keycloak-server/spi=hostname/provider=default/:add(properties={frontendUrl => "${keycloak.frontendUrl:}",forceBackendUrlToFrontendUrl => "false"},enabled=true) +end-if + +if (result == request) of /subsystem=keycloak-server/spi=hostname/:read-attribute(name=default-provider) + echo Switching from request to default hostname provider + + /subsystem=keycloak-server/spi=hostname/:write-attribute(name=default-provider,value=default) +end-if + +if (result != fixed) of /subsystem=keycloak-server/spi=hostname/:read-attribute(name=default-provider) + try + /subsystem=keycloak-server/spi=hostname/provider=fixed:remove + echo Removed config for unused fixed hostname provider + catch + end-try +end-if + +# Migrate from 10.0.2 to 11.0.0 (migration changes for infinispan update from 9.4.18.Final to 10.1.8.Final) + +if (result != org.keycloak.keycloak-model-infinispan) of /subsystem=infinispan/cache-container=keycloak:read-attribute(name=module) + echo Setting class loader for keycloak cache-container so JBoss Marshalling works properly with Infinispan 10.x + /subsystem=infinispan/cache-container=keycloak:write-attribute(name=module,value=org.keycloak.keycloak-model-infinispan) + echo +end-if + +# Migrate from 11.0.0 to 12.0.0 + +if (result != expression "${jboss.mail.server.host:localhost}") of /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=mail-smtp:read-attribute(name=host) + echo Adding host expression to the SMTP configuration of a remote destination outbound socket binding in the mail subsystem + /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=mail-smtp:write-attribute(name=host, value=expression "${jboss.mail.server.host:localhost}") + echo +end-if + +if (result != expression "${jboss.mail.server.port:25}") of /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=mail-smtp:read-attribute(name=port) + echo Adding port expression to the SMTP configuration of a remote destination outbound socket binding in the mail subsystem + /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=mail-smtp:write-attribute(name=port, value=expression "${jboss.mail.server.port:25}") + echo +end-if + +# Migrate from 12.0.0 to 13.0.0 + +## KEYCLOAK-16723 / KEYCLOAK-16907: +## +## Based on [WFLY-14203], [WFLY-14151], and [WFLY-14108] remove MicroProfile SmallRye config, health, and metrics if present + +if (outcome == success) of /subsystem=microprofile-config-smallrye/:read-resource + echo Removing microprofile-config-smallrye subsystem... + /subsystem=microprofile-config-smallrye/:remove + echo +end-if + +if (outcome == success) of /extension=org.wildfly.extension.microprofile.config-smallrye/:read-resource + echo Removing microprofile.config-smallrye extension... + /extension=org.wildfly.extension.microprofile.config-smallrye/:remove + echo +end-if + +if (outcome == success) of /subsystem=microprofile-health-smallrye/:read-resource + echo Removing microprofile-health-smallrye subsystem... + /subsystem=microprofile-health-smallrye/:remove + echo +end-if + +if (outcome == success) of /extension=org.wildfly.extension.microprofile.health-smallrye/:read-resource + echo Removing microprofile.health-smallrye extension... + /extension=org.wildfly.extension.microprofile.health-smallrye/:remove + echo +end-if + +if (outcome == success) of /subsystem=microprofile-metrics-smallrye/:read-resource + echo Removing microprofile-metrics-smallrye subsystem... + /subsystem=microprofile-metrics-smallrye/:remove + echo +end-if + +if (outcome == success) of /extension=org.wildfly.extension.microprofile.metrics-smallrye/:read-resource + echo Removing microprofile.metrics-smallrye extension... + /extension=org.wildfly.extension.microprofile.metrics-smallrye/:remove + echo +end-if + +## Yet based on [WFLY-14203], [WFLY-14151], and [WFLY-14108] load +## org.wildfly.extension.health/org.wildfly.extension.metrics extensions & subsystems instead + +if (outcome == failed) of /extension=org.wildfly.extension.health:read-resource + echo Adding WildFly extension for health... + /extension=org.wildfly.extension.health:add(module=org.wildfly.extension.health) + echo +end-if + +if (outcome == failed) of /subsystem=health:read-resource + echo Adding Wildfly subsystem for health... + /subsystem=health:add(security-enabled=false) + echo +end-if + +if (outcome == failed) of /extension=org.wildfly.extension.metrics:read-resource + echo Adding Wildfly extension for base metrics... + /extension=org.wildfly.extension.metrics:add(module=org.wildfly.extension.metrics) + echo +end-if + +if (outcome == failed) of /subsystem=metrics:read-resource + echo Adding Wildfly subsystem for base metrics... + /subsystem=metrics:add(exposed-subsystems=[*],security-enabled=false) + echo +end-if + +if (result == "Keycloak") of :read-attribute(name=product-name) + echo Adding base metrics subsystem prefix to Keycloak... + /subsystem=metrics:write-attribute(name=prefix,value=${wildfly.metrics.prefix:wildfly}) + echo +else + echo Adding base metrics subsystem prefix to RH-SSO... + /subsystem=metrics:write-attribute(name=prefix,value=${wildfly.metrics.prefix:jboss}) + echo +end-if + +## Add ability to make use of automatically generated self-signed certificate with Elytron, +## introduced by WFCORE-5095 in Wildfly Core 14.0.0.Final + +if (outcome == failed) of /subsystem=elytron/key-store=applicationKS:read-resource + echo Adding key store for the feature of auto-generation of self-signed certificate to Elytron subsystem... + /subsystem=elytron/key-store=applicationKS:add(credential-reference={clear-text=password},type=JKS) + /subsystem=elytron/key-store=applicationKS:write-attribute(name=path,value=application.keystore) + /subsystem=elytron/key-store=applicationKS:write-attribute(name=relative-to,value=jboss.server.config.dir) + echo +end-if + +if (outcome == failed) of /subsystem=elytron/key-manager=applicationKM:read-resource + echo Adding key manager for the feature of auto-generation of self-signed certificate to Elytron subsystem... + /subsystem=elytron/key-manager=applicationKM:add(key-store=applicationKS, credential-reference={clear-text=password}) + /subsystem=elytron/key-manager=applicationKM:write-attribute(name=generate-self-signed-certificate-host,value=localhost) + echo +end-if + +if (outcome == failed) of /subsystem=elytron/server-ssl-context=applicationSSC:read-resource + echo Adding SSL context for the feature of auto-generation of self-signed certificate to Elytron subsystem... + /subsystem=elytron/server-ssl-context=applicationSSC:add(key-manager=applicationKM) + echo +end-if + +## Convert type of 'hung-task-termination-period' attribute for 'managed-executor-service' from INT to LONG +if (result == 0) of /subsystem=ee/managed-executor-service=default:read-attribute(name=hung-task-termination-period) + echo Setting period for automatic termination of hung tasks for managed executor service to default value (0 miliseconds) + /subsystem=ee/managed-executor-service=default:write-attribute(name=hung-task-termination-period,value=0L) + echo +end-if + +## Convert type of 'hung-task-termination-period' attribute for 'managed-scheduled-executor-service' from INT to LONG +if (result == 0) of /subsystem=ee/managed-scheduled-executor-service=default:read-attribute(name=hung-task-termination-period) + echo Setting period for automatic termination of hung tasks for managed scheduled executor service to default value (0 miliseconds) + /subsystem=ee/managed-scheduled-executor-service=default:write-attribute(name=hung-task-termination-period,value=0L) + echo +end-if + +## Set value of JPA default-datasource from empty string to 'undefined' +if (outcome == success) && (result == "") of /subsystem=jpa:read-attribute(name=default-datasource) + echo Setting value of to default-datasource attribute in JPA subsystem to 'undefined' + /subsystem=jpa:undefine-attribute(name=default-datasource) + echo +end-if + +echo *** End Migration *** diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-standalone.cli b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-standalone.cli new file mode 100644 index 0000000000..d614898d43 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-standalone.cli @@ -0,0 +1,744 @@ +echo +echo *** WARNING *** +echo +echo ** If the following embed-server command fails, manual intervention is needed. +echo ** In such case, remove any and declarations referring +echo ** to the removed smallrye modules from the standalone.xml file and rerun this script. +echo ** For details, see Migration Changes section in the Upgrading guide. +echo ** We apologize for this inconvenience. +echo + +embed-server --server-config=standalone.xml + +echo *** Begin Migration *** +echo + +# Migrate from 1.8.1 to 1.9.1 +if (outcome == failed) of /subsystem=infinispan/cache-container=keycloak/local-cache=work/:read-resource + echo Adding local-cache=work to keycloak cache container... + /subsystem=infinispan/cache-container=keycloak/local-cache=work/:add(indexing=NONE,start=LAZY) + echo +end-if +# realmVersions cache deprecated in 2.1.0 +#if (outcome == failed) of /subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/:read-resource +# echo Adding local-cache=realmVersions to keycloak cache container... +# /subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/:add(indexing=NONE,start=LAZY) +# /subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/component=transaction/:write-attribute(name=mode,value=BATCH) +# echo +#end-if + + +# Migrate from 1.9.1 to 1.9.2 +if (result == NONE) of /subsystem=infinispan/cache-container=keycloak/local-cache=users/component=eviction/:read-attribute(name=strategy) + echo Adding eviction strategy to keycloak users cache container... + /subsystem=infinispan/cache-container=keycloak/local-cache=users/component=eviction/:write-attribute(name=strategy,value=LRU) + /subsystem=infinispan/cache-container=keycloak/local-cache=users/component=eviction/:write-attribute(name=max-entries,value=10000) + echo +end-if + +# Migrate from 1.9.2 to 1.9.8 +# NO CHANGES + +# Migrate from 1.9.8 to 2.0.0 +if (outcome == failed) of /subsystem=infinispan/cache-container=keycloak/local-cache=authorization/:read-resource + echo Adding local-cache=authorization to keycloak cache container... + /subsystem=infinispan/cache-container=keycloak/local-cache=authorization/:add(indexing=NONE,start=LAZY) + echo +end-if +if (result == undefined) of /subsystem=infinispan/cache-container=keycloak/local-cache=authorization/component=eviction/:read-attribute(name=strategy,include-defaults=false) + echo Updating authorization cache container.. + /subsystem=infinispan/cache-container=keycloak/local-cache=authorization/component=eviction/:write-attribute(name=strategy,value=LRU) + /subsystem=infinispan/cache-container=keycloak/local-cache=authorization/component=eviction/:write-attribute(name=max-entries,value=100) + echo +end-if + +# Migrate from 2.0.0 to 2.1.0 +if (outcome == success) of /subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/:read-resource + echo Removing deprecated cache 'realmVersions' + /subsystem=infinispan/cache-container=keycloak/local-cache=realmVersions/:remove + echo +end-if + +# Migrate kecloak-server.json (deprecated in 2.2.0) +if (result == []) of /subsystem=keycloak-server/:read-children-names(child-type=spi) + echo Migrating keycloak-server.json to server cofig xml... + /subsystem=keycloak-server/:migrate-json + echo +end-if +if (result == [expression "classpath:${jboss.server.config.dir}/providers/*"]) of /subsystem=keycloak-server/:read-attribute(name=providers) + echo Updating provider to default value + /subsystem=keycloak-server/:write-attribute(name=providers,value=[classpath:${jboss.home.dir}/providers/*]) + echo +end-if +if (result == keycloak) of /subsystem=keycloak-server/theme=defaults:read-attribute(name=default) + echo Undefining default theme... + /subsystem=keycloak-server/theme=defaults:undefine-attribute(name=default) + echo +end-if +if (result == expression "${jboss.server.config.dir}/themes") of /subsystem=keycloak-server/theme=defaults:read-attribute(name=dir) + echo Updating theme dir to default value + /subsystem=keycloak-server/theme=defaults/:write-attribute(name=dir,value=${jboss.home.dir}/themes) + echo +end-if + +set persistenceProvider=jpa + +# Migrate from 2.1.0 to 2.2.0 +if (outcome == failed) of /extension=org.jboss.as.deployment-scanner/:read-resource + echo Adding deployment-scanner extension... + /extension=org.jboss.as.deployment-scanner/:add(module=org.jboss.as.deployment-scanner) + echo +end-if +if (outcome == failed) of /subsystem=deployment-scanner/:read-resource + echo Adding deployment-scanner... + /subsystem=deployment-scanner/:add + echo +end-if +if (outcome == failed) of /subsystem=deployment-scanner/scanner=default/:read-resource + echo Adding scanner=default + /subsystem=deployment-scanner/scanner=default/:add(path=deployments,relative-to=jboss.server.base.dir,runtime-failure-causes-rollback=${jboss.deployment.scanner.rollback.on.failure:false},scan-interval=5000) + echo +end-if +if (result == update) of /subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-get(name=properties,key=databaseSchema) + echo Updating connectionsJpa default properties... + /subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-remove(name=properties,key=databaseSchema) + /subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-put(name=properties,key=initializeEmpty,value=true) + /subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-put(name=properties,key=migrationStrategy,value=update) + /subsystem=keycloak-server/spi=connectionsJpa/provider=default/:map-put(name=properties,key=migrationExport,value=${jboss.home.dir}/keycloak-database-update.sql) + echo +end-if +if (outcome == failed) of /subsystem=keycloak-server/spi=userFederatedStorage/:read-resource + echo Adding spi=userFederatedStorage... + /subsystem=keycloak-server/spi=userFederatedStorage/:add(default-provider=$persistenceProvider) + echo +end-if +if (outcome == failed) of /subsystem=keycloak-server/spi=jta-lookup/:read-resource + echo Adding spi=jta-lookup... + /subsystem=keycloak-server/spi=jta-lookup/:add(default-provider=${keycloak.jta.lookup.provider:jboss}) + /subsystem=keycloak-server/spi=jta-lookup/provider=jboss/:add(enabled=true) + echo +end-if + +# Migrate from 2.2.0 to 2.2.1 +# NO CHANGES + +# Migrate from 2.2.1 to 2.3.0 +if (outcome == failed) of /subsystem=infinispan/cache-container=keycloak/local-cache=keys/:read-resource + echo Adding local-cache=keys to keycloak cache container... + /subsystem=infinispan/cache-container=keycloak/local-cache=keys/:add(indexing=NONE,start=LAZY) + echo +end-if +if (result == undefined) of /subsystem=infinispan/cache-container=keycloak/local-cache=keys/component=eviction/:read-attribute(name=strategy,include-defaults=false) + echo Updating eviction and expiration in local-cache=keys... + /subsystem=infinispan/cache-container=keycloak/local-cache=keys/component=eviction/:write-attribute(name=strategy,value=LRU) + /subsystem=infinispan/cache-container=keycloak/local-cache=keys/component=eviction/:write-attribute(name=max-entries,value=1000) + /subsystem=infinispan/cache-container=keycloak/local-cache=keys/component=expiration/:write-attribute(name=max-idle,value=3600000) + echo +end-if +if (outcome == failed) of /subsystem=keycloak-server/spi=publicKeyStorage/:read-resource + echo Adding spi=publicKeyStorage... + /subsystem=keycloak-server/spi=publicKeyStorage/:add + /subsystem=keycloak-server/spi=publicKeyStorage/provider=infinispan/:add(properties={minTimeBetweenRequests => "10"},enabled=true) + echo +end-if + +# Migrate from 2.3.0 to 2.4.0 +# NO CHANGES + +# Migrate from 2.4.0 to 2.5.0 +if (result == NONE) of /subsystem=infinispan/cache-container=keycloak/local-cache=realms/component=eviction/:read-attribute(name=strategy) + echo Adding eviction strategy to keycloak realms cache... + /subsystem=infinispan/cache-container=keycloak/local-cache=realms/component=eviction/:write-attribute(name=strategy,value=LRU) + /subsystem=infinispan/cache-container=keycloak/local-cache=realms/component=eviction/:write-attribute(name=max-entries,value=10000) + echo +end-if + +# Migrate from 2.5.0 to 2.5.1 +# NO CHANGES + +# Migrate 2.5.1 to 2.5.4 +if (result != REPEATABLE_READ) of /subsystem=infinispan/cache-container=ejb/local-cache=persistent/component=locking/:read-attribute(name=isolation) + echo Changing ejb cache locking to REPEATABLE_READ + /subsystem=infinispan/cache-container=ejb/local-cache=persistent/component=locking/:write-attribute(name=isolation,value=REPEATABLE_READ) + echo +end-if + +if (outcome == success) of /subsystem=infinispan/cache-container=hibernate/local-cache=immutable-entity/:read-resource + echo Removing Hibernate immutable-entity cache + /subsystem=infinispan/cache-container=hibernate/local-cache=immutable-entity/:remove +end-if + + +# Migrate from 2.5.4 to 3.0.0 +if (result == jpa) of /subsystem=keycloak-server/spi=eventsStore/:read-attribute(name=default-provider,include-defaults=false) + echo Removing default provider for eventsStore + /subsystem=keycloak-server/spi=eventsStore/:undefine-attribute(name=default-provider) + echo +end-if + +if ((outcome == success) && (result.default-provider == jpa) && (result.provider == undefined)) of /subsystem=keycloak-server/spi=realm/:read-resource(recursive=false,include-defaults=false) + echo Removing declaration for user SPI + /subsystem=keycloak-server/spi=realm/:remove + echo +end-if + +if ((outcome == success) && (result.default-provider == jpa) && (result.provider == undefined)) of /subsystem=keycloak-server/spi=user/:read-resource(recursive=false,include-defaults=false) + echo Removing declaration for user SPI + /subsystem=keycloak-server/spi=user/:remove + echo +end-if + +if ((outcome == success) && (result.default-provider == jpa) && (result.provider == undefined)) of /subsystem=keycloak-server/spi=userFederatedStorage/:read-resource(recursive=false,include-defaults=false) + echo Removing declaration for userFederatedStorage SPI + /subsystem=keycloak-server/spi=userFederatedStorage/:remove + echo +end-if + +if ((outcome == success) && (result.default-provider == jpa) && (result.provider == undefined)) of /subsystem=keycloak-server/spi=authorizationPersister/:read-resource(recursive=false,include-defaults=false) + echo Removing declaration for authorizationPersister SPI + /subsystem=keycloak-server/spi=authorizationPersister/:remove + echo +end-if + +if (outcome == failed) of /subsystem=keycloak-server/spi=userCache/:read-resource + echo Adding userCache SPI + /subsystem=keycloak-server/spi=userCache/:add + /subsystem=keycloak-server/spi=userCache/provider=default/:add(enabled=true) + echo +end-if + +if (outcome == failed) of /subsystem=keycloak-server/spi=realmCache/:read-resource + echo Adding realmCache SPI + /subsystem=keycloak-server/spi=realmCache/:add + /subsystem=keycloak-server/spi=realmCache/provider=default/:add(enabled=true) + echo +end-if + +if ((result.default-provider == undefined) && (result.provider.default.enabled == true)) of /subsystem=keycloak-server/spi=connectionsInfinispan/:read-resource(recursive=true,include-defaults=false) + echo Adding 'default' as default provider for connectionsInfinispan + /subsystem=keycloak-server/spi=connectionsInfinispan/:write-attribute(name=default-provider,value=default) + echo +end-if + +# Migrate from 3.0.0 to 3.1.0 +# NO CHANGES + +# Migrate from 3.1.0 to 3.2.0 +if (outcome == failed) of /subsystem=infinispan/cache-container=keycloak/local-cache=authenticationSessions/:read-resource + echo Adding local-cache=authenticationSessions to keycloak cache container... + /subsystem=infinispan/cache-container=keycloak/local-cache=authenticationSessions/:add(indexing=NONE,start=LAZY) + echo +end-if + +if (outcome == failed) of /subsystem=infinispan/cache-container=keycloak/local-cache=actionTokens/:read-resource + echo Adding local-cache=actionTokens to keycloak cache container... + /subsystem=infinispan/cache-container=keycloak/local-cache=actionTokens/:add(indexing=NONE,start=LAZY) + /subsystem=infinispan/cache-container=keycloak/local-cache=actionTokens/component=eviction/:write-attribute(name=strategy,value=NONE) + /subsystem=infinispan/cache-container=keycloak/local-cache=actionTokens/component=eviction/:write-attribute(name=max-entries,value=-1) + /subsystem=infinispan/cache-container=keycloak/local-cache=actionTokens/component=expiration/:write-attribute(name=interval,value=300000) + /subsystem=infinispan/cache-container=keycloak/local-cache=actionTokens/component=expiration/:write-attribute(name=max-idle,value=-1) + echo +end-if + +if (result == 100L) of /subsystem=infinispan/cache-container=keycloak/local-cache=authorization/component=eviction/:read-attribute(name=max-entries) + echo Updating eviction in local-cache=authorization... + /subsystem=infinispan/cache-container=keycloak/local-cache=authorization/component=eviction/:write-attribute(name=max-entries,value=10000) + echo +end-if + +# Migrate from 3.2.0 to 3.2.1 +# NO CHANGES + +# Migrate from 3.2.1 to 3.3.0 +if (outcome == failed) of /core-service=management/security-realm=ApplicationRealm/server-identity=ssl:read-resource + echo Adding keystore to ApplicationRealm... + /core-service=management/security-realm=ApplicationRealm/server-identity=ssl:add(keystore-path=application.keystore,keystore-relative-to=jboss.server.config.dir,keystore-password=password,alias=server,key-password=password,generate-self-signed-certificate-host=localhost) + echo +end-if + +if (outcome == failed) of /extension=org.wildfly.extension.elytron/:read-resource + echo Adding elytron extension... + /extension=org.wildfly.extension.elytron/:add(module=org.wildfly.extension.elytron) + echo +end-if + +if (outcome == failed) of /subsystem=elytron/:read-resource + echo Adding elytron subsystem + /subsystem=elytron:add + /subsystem=elytron/provider-loader=elytron/:add(module=org.wildfly.security.elytron) + /subsystem=elytron/provider-loader=openssl/:add(module=org.wildfly.openssl) + /subsystem=elytron/aggregate-providers=combined-providers/:add(providers=[elytron,openssl]) + /subsystem=elytron/file-audit-log=local-audit/:add(path=audit.log,relative-to=jboss.server.log.dir,format=JSON) + /subsystem=elytron/identity-realm=local/:add(identity="$local") + /subsystem=elytron/properties-realm=ApplicationRealm/:add(users-properties={path=application-users.properties,relative-to=jboss.server.config.dir,digest-realm-name=ApplicationRealm},groups-properties={path=application-roles.properties,relative-to=jboss.server.config.dir}) + /subsystem=elytron/properties-realm=ManagementRealm/:add(users-properties={path=mgmt-users.properties,relative-to=jboss.server.config.dir,digest-realm-name=ManagementRealm},groups-properties={path=mgmt-groups.properties,relative-to=jboss.server.config.dir}) + /subsystem=elytron/simple-permission-mapper=default-permission-mapper/:add(mapping-mode=first,permission-mappings=[{principals=[anonymous],permissions=[{class-name=org.wildfly.extension.batch.jberet.deployment.BatchPermission,module=org.wildfly.extension.batch.jberet,target-name=*},{class-name=org.wildfly.transaction.client.RemoteTransactionPermission,module=org.wildfly.transaction.client},{class-name=org.jboss.ejb.client.RemoteEJBPermission,module=org.jboss.ejb-client}]},{match-all=true,permissions=[{class-name=org.wildfly.security.auth.permission.LoginPermission},{class-name=org.wildfly.extension.batch.jberet.deployment.BatchPermission,module=org.wildfly.extension.batch.jberet,target-name=*},{class-name=org.wildfly.transaction.client.RemoteTransactionPermission,module=org.wildfly.transaction.client},{class-name=org.jboss.ejb.client.RemoteEJBPermission,module=org.jboss.ejb-client}]}]) + /subsystem=elytron/constant-realm-mapper=local/:add(realm-name=local) + /subsystem=elytron/simple-role-decoder=groups-to-roles/:add(attribute=groups) + /subsystem=elytron/constant-role-mapper=super-user-mapper/:add(roles=[SuperUser]) + /subsystem=elytron/security-domain=ApplicationDomain/:add(default-realm=ApplicationRealm,permission-mapper=default-permission-mapper,realms=[{realm=ApplicationRealm,role-decoder=groups-to-roles},{realm=local}]) + /subsystem=elytron/security-domain=ManagementDomain/:add(default-realm=ManagementRealm,permission-mapper=default-permission-mapper,realms=[{realm=ManagementRealm,role-decoder=groups-to-roles},{realm=local,role-mapper=super-user-mapper}]) + /subsystem=elytron/provider-http-server-mechanism-factory=global/:add + /subsystem=elytron/http-authentication-factory=management-http-authentication/:add(http-server-mechanism-factory=global,security-domain=ManagementDomain,mechanism-configurations=[{mechanism-name=DIGEST,mechanism-realm-configurations=[{realm-name=ManagementRealm}]}]) + /subsystem=elytron/http-authentication-factory=application-http-authentication/:add(http-server-mechanism-factory=global,security-domain=ApplicationDomain,mechanism-configurations=[{mechanism-name=BASIC,mechanism-realm-configurations=[{realm-name=Application Realm}]},{mechanism-name=FORM}]) + /subsystem=elytron/provider-sasl-server-factory=global/:add + /subsystem=elytron/mechanism-provider-filtering-sasl-server-factory=elytron/:add(sasl-server-factory=global,filters=[{provider-name=WildFlyElytron}]) + /subsystem=elytron/configurable-sasl-server-factory=configured/:add(sasl-server-factory=elytron,properties={wildfly.sasl.local-user.default-user => "$local"}) + /subsystem=elytron/sasl-authentication-factory=management-sasl-authentication/:add(sasl-server-factory=configured,security-domain=ManagementDomain,mechanism-configurations=[{mechanism-name=JBOSS-LOCAL-USER,realm-mapper=local},{mechanism-name=DIGEST-MD5,mechanism-realm-configurations=[{realm-name=ManagementRealm}]}]) + /subsystem=elytron/sasl-authentication-factory=application-sasl-authentication/:add(sasl-server-factory=configured,security-domain=ApplicationDomain,mechanism-configurations=[{mechanism-name=JBOSS-LOCAL-USER,realm-mapper=local},{mechanism-name=DIGEST-MD5,mechanism-realm-configurations=[{realm-name=ApplicationRealm}]}]) + /subsystem=elytron/:write-attribute(name=final-providers,value=combined-providers) + /subsystem=elytron/:write-attribute(name=disallowed-providers,value=[OracleUcrypto]) + echo +end-if + +if (outcome == failed) of /subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:read-resource + echo Adding channel-creation-options READ_TIMEOUT to ejb3 remote + /subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:add(value="${prop.remoting-connector.read.timeout:20}",type=xnio) + echo +end-if + +if (outcome == failed) of /subsystem=ejb3/service=remote/channel-creation-options=MAX_OUTBOUND_MESSAGES/:read-resource + echo Adding channel-creation-options MAX_OUTBOUND_MESSAGES to ejb3 remote + /subsystem=ejb3/service=remote/channel-creation-options=MAX_OUTBOUND_MESSAGES/:add(value=1234,type=remoting) + echo +end-if + +if (outcome == success) of /subsystem=infinispan/cache-container=web/local-cache=persistent:read-resource + echo Removing local-cache persistent from web cache-container + /subsystem=infinispan/cache-container=web/local-cache=persistent:remove + echo +end-if + +if (outcome == success) of /subsystem=infinispan/cache-container=ejb/local-cache=persistent:read-resource + echo Removing local-cache persistent from ejb cache-container + /subsystem=infinispan/cache-container=ejb/local-cache=persistent:remove + echo +end-if + +if (result == local-query) of /subsystem=infinispan/cache-container=hibernate/:read-attribute(name=default-cache) + echo Removing default-cache from hibernate cache-container + /subsystem=infinispan/cache-container=hibernate/:undefine-attribute(name=default-cache) + echo +end-if + +if (outcome == failed) of /subsystem=undertow/server=default-server/host=default-host/setting=http-invoker/:read-resource + echo Adding http-invoker to default-host + /subsystem=undertow/server=default-server/host=default-host/setting=http-invoker/:add(security-realm=ApplicationRealm) + echo +end-if + +if (result == false) of /subsystem=undertow/server=default-server/http-listener=default/:read-attribute(name=enable-http2) + echo Enabling http2 for default http-listener + /subsystem=undertow/server=default-server/http-listener=default/:write-attribute(name=enable-http2,value=true) + echo +end-if + +if (outcome == failed) of /subsystem=undertow/server=default-server/https-listener=https/:read-resource + echo Adding https-listener + /subsystem=undertow/server=default-server/https-listener=https/:add(socket-binding=https,security-realm=ApplicationRealm,enable-http2=true) + echo +end-if + +# Migrate from 3.3.0 to 3.4.0 +if (outcome == success) of /subsystem=undertow/server=default-server/host=default-host/filter-ref=server-header/:read-resource + echo Removing X-Powered-By and Server headers from Keycloak responses... + /subsystem=undertow/server=default-server/host=default-host/filter-ref=server-header/:remove + /subsystem=undertow/server=default-server/host=default-host/filter-ref=x-powered-by-header/:remove + /subsystem=undertow/configuration=filter/response-header=x-powered-by-header/:remove + /subsystem=undertow/configuration=filter/response-header=server-header/:remove + echo +end-if + +if (outcome == success) of /subsystem=jdr/:read-resource + echo Removing jdr subsystem and extension + /subsystem=jdr/:remove + /extension=org.jboss.as.jdr/:remove + echo +end-if + +if (outcome == success) of /subsystem=jsf/:read-resource + echo Removing jsf subsystem and extension + /subsystem=jsf/:remove + /extension=org.jboss.as.jsf/:remove + echo +end-if + +if (outcome == failed) of /subsystem=infinispan/cache-container=keycloak/local-cache=offlineClientSessions/:read-resource + echo Adding local-cache=offlineClientSessions to keycloak cache container... + /subsystem=infinispan/cache-container=keycloak/local-cache=offlineClientSessions/:add(indexing=NONE,start=LAZY) + echo +end-if + +if (outcome == failed) of /subsystem=infinispan/cache-container=keycloak/local-cache=clientSessions/:read-resource + echo Adding local-cache=clientSessions to keycloak cache container... + /subsystem=infinispan/cache-container=keycloak/local-cache=clientSessions/:add(indexing=NONE,start=LAZY) + echo +end-if + +if (outcome == failed) of /subsystem=keycloak-server/spi=x509cert-lookup/:read-resource + echo Adding spi=x509cert-lookup... + /subsystem=keycloak-server/spi=x509cert-lookup/:add(default-provider=${keycloak.x509cert.lookup.provider:default}) + /subsystem=keycloak-server/spi=x509cert-lookup/provider=default/:add(enabled=true) + echo +end-if + +# Migrate from 4.2.0 to 4.3.0 +if (outcome == failed) of /subsystem=keycloak-server/spi=hostname/:read-resource + echo Adding spi=hostname... + /subsystem=keycloak-server/spi=hostname/:add(default-provider=request) + /subsystem=keycloak-server/spi=hostname/provider=fixed/:add(properties={hostname => "localhost",httpPort => "-1",httpsPort => "-1"},enabled=true) + echo +end-if + +# Migrate from 4.3.0 to 4.4.0 +if (outcome == failed) of /subsystem=elytron/permission-set=login-permission/:read-resource + echo Adding permission-set=login-permission to elytron + /subsystem=elytron/permission-set=login-permission:add(permissions=[{class-name=org.wildfly.security.auth.permission.LoginPermission}]) + /subsystem=elytron/permission-set=default-permissions/:add(permissions=[{class-name=org.wildfly.extension.batch.jberet.deployment.BatchPermission,module=org.wildfly.extension.batch.jberet,target-name=*},{class-name=org.wildfly.transaction.client.RemoteTransactionPermission,module=org.wildfly.transaction.client},{class-name=org.jboss.ejb.client.RemoteEJBPermission,module=org.jboss.ejb-client}]) + /subsystem=elytron/simple-permission-mapper=default-permission-mapper/:undefine-attribute(name=permission-mappings) + /subsystem=elytron/simple-permission-mapper=default-permission-mapper:write-attribute(name=permission-mappings,value=[{permission-sets=[{permission-set=login-permission},{permission-set=default-permissions}],match-all=true},{permission-sets=[{permission-set=default-permissions}],principals=[anonymous]}]) + echo +end-if + +if (result == org.hibernate.infinispan) of /subsystem=infinispan/cache-container=hibernate:read-attribute(name=module) + echo Update hibernate cache module + /subsystem=infinispan/cache-container=hibernate:write-attribute(name=module, value=org.infinispan.hibernate-cache) + echo +end-if +if (outcome == success) of /subsystem=infinispan/cache-container=hibernate/local-cache=entity/eviction=EVICTION:read-resource + echo Removing eviction from hibernate entity cache and replacing with object-memory + /subsystem=infinispan/cache-container=hibernate/local-cache=entity/eviction=EVICTION:remove + /subsystem=infinispan/cache-container=hibernate/local-cache=entity/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /subsystem=infinispan/cache-container=hibernate/local-cache=local-query/eviction=EVICTION:read-resource + echo Removing eviction from hibernate local-query cache and replacing with object-memory + /subsystem=infinispan/cache-container=hibernate/local-cache=local-query/eviction=EVICTION:remove + /subsystem=infinispan/cache-container=hibernate/local-cache=local-query/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /subsystem=infinispan/cache-container=keycloak/local-cache=realms/eviction=EVICTION:read-resource + echo Removing eviction from keycloak realms cache and replacing with object-memory + /subsystem=infinispan/cache-container=keycloak/local-cache=realms/eviction=EVICTION:remove + /subsystem=infinispan/cache-container=keycloak/local-cache=realms/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /subsystem=infinispan/cache-container=keycloak/local-cache=users/eviction=EVICTION:read-resource + echo Removing eviction from keycloak users cache and replacing with object-memory + /subsystem=infinispan/cache-container=keycloak/local-cache=users/eviction=EVICTION:remove + /subsystem=infinispan/cache-container=keycloak/local-cache=users/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /subsystem=infinispan/cache-container=keycloak/local-cache=authorization/eviction=EVICTION:read-resource + echo Removing eviction from keycloak authorization cache and replacing with object-memory + /subsystem=infinispan/cache-container=keycloak/local-cache=authorization/eviction=EVICTION:remove + /subsystem=infinispan/cache-container=keycloak/local-cache=authorization/memory=object:add(size=10000) + echo +end-if +if (outcome == success) of /subsystem=infinispan/cache-container=keycloak/local-cache=keys/eviction=EVICTION:read-resource + echo Removing eviction from keycloak keys cache and replacing with object-memory + /subsystem=infinispan/cache-container=keycloak/local-cache=keys/eviction=EVICTION:remove + /subsystem=infinispan/cache-container=keycloak/local-cache=keys/memory=object:add(size=1000) + echo +end-if + +if (outcome == success) of /subsystem=keycloak-server/spi=connectionsInfinispan/provider=default:read-resource + echo Changing JNDI reference in connectionsInfinispan SPI + /subsystem=keycloak-server/spi=connectionsInfinispan/provider=default:undefine-attribute(name=properties) + /subsystem=keycloak-server/spi=connectionsInfinispan/provider=default:write-attribute(name=properties,value={cacheContainer=java:jboss/infinispan/container/keycloak}) + echo +end-if + +# Migrate from 4.4.0 to 4.5.0 +if (outcome == failed) of /subsystem=core-management/:read-resource + echo Adding core-management extension + /extension=org.wildfly.extension.core-management/:add + echo Adding subsystem core-management + /subsystem=core-management/:add + echo +end-if + +# Migrate from 4.5.0 to 4.6.0 +if (outcome == success) of /subsystem=elytron/http-authentication-factory=application-http-authentication/:read-resource + echo Removing application-http-authentication from elytron subsystem + /subsystem=elytron/http-authentication-factory=application-http-authentication:remove + echo +end-if + +if (result == undefined) of /subsystem=transactions/:read-attribute(name=node-identifier,include-defaults=false) + echo Setting node-identifier attribute of core-environment element in transactions subsystem + /subsystem=transactions/:write-attribute(name=node-identifier,value=expression "${jboss.tx.node.id:1}") + echo +end-if + +# Migrate from 4.8.3 to 5.0.0 +if (outcome == failed) of /subsystem=logging/logger=io.jaegertracing.Configuration/:read-resource + echo Adding io.jaegertracing.Configuration logger + /subsystem=logging/logger=io.jaegertracing.Configuration/:add(category=io.jaegertracing.Configuration,level=WARN) + echo +end-if + +# Migrate from 5.0.0 to 6.0.0 +if (result == NON_XA) of /subsystem=infinispan/cache-container=hibernate/local-cache=entity/component=transaction/:read-attribute(name=mode) + echo Removing NON_XA transaction mode from infinispan/hibernate/entity + /subsystem=infinispan/cache-container=hibernate/local-cache=entity/component=transaction/:undefine-attribute(name=mode) + echo +end-if + +if (result == false) of /subsystem=datasources/data-source=ExampleDS/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to ExampleDS datasource + /subsystem=datasources/data-source=ExampleDS/:write-attribute(name=statistics-enabled,value=${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /subsystem=datasources/data-source=KeycloakDS/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to KeycloakDS datasource + /subsystem=datasources/data-source=KeycloakDS/:write-attribute(name=statistics-enabled,value=${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /subsystem=ejb3/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to ejb3 subsystem + /subsystem=ejb3/:write-attribute(name=statistics-enabled,value=${wildfly.ejb3.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /subsystem=transactions/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to transactions subsystem + /subsystem=transactions/:write-attribute(name=statistics-enabled,value=${wildfly.transactions.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /subsystem=undertow/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to undertow subsystem + /subsystem=undertow/:write-attribute(name=statistics-enabled,value=${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (result == false) of /subsystem=webservices/:read-attribute(name=statistics-enabled) + echo Adding statistics-enabled expression to webservices subsystem + /subsystem=webservices/:write-attribute(name=statistics-enabled,value=${wildfly.webservices.statistics-enabled:${wildfly.statistics-enabled:false}}) + echo +end-if + +if (outcome == failed) of /extension=org.jboss.as.weld/:read-resource + echo Adding weld extension + /extension=org.jboss.as.weld/:add + echo +end-if + +if (outcome == failed) of /subsystem=weld/:read-resource + echo Adding weld subsystem + /subsystem=weld/:add + echo +end-if + +## KEYCLOAK-16723 / KEYCLOAK-16907: +## +## Loading of MicroProfile SmallRye config, health, and metrics extensions & subsystems got removed +## as part of upgrading to Wildfly 22. See [WFLY-14203], [WFLY-14151], and [WFLY-14108] for details + +# Migrate from 6.0.1 to 7.0.0 +if (outcome == success) of /subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:read-resource + echo Removing READ_TIMEOUT option from remote service from ejb3 subsystem + /subsystem=ejb3/service=remote/channel-creation-options=READ_TIMEOUT/:remove + echo +end-if + +if (outcome == failed) of /subsystem=infinispan/cache-container=web/local-cache=routing:read-resource + echo Adding local cache routing to web cache container to infinispan subsystem + /subsystem=infinispan/cache-container=web/local-cache=routing/:add + echo +end-if + +if (outcome == failed) of /subsystem=infinispan/cache-container=web/local-cache=sso:read-resource + echo Adding local cache sso to web cache container to infinispan subsystem + /subsystem=infinispan/cache-container=web/local-cache=sso/:add + /subsystem=infinispan/cache-container=web/local-cache=sso/component=locking/:add(isolation=REPEATABLE_READ) + /subsystem=infinispan/cache-container=web/local-cache=sso/component=transaction/:add(mode=BATCH) + echo +end-if + +if (result == "true") of /subsystem=keycloak-server/spi=truststore/provider=file:map-get(name=properties, key=disabled) + echo Disabling Truststore Provider + /subsystem=keycloak-server/spi=truststore/provider=file:write-attribute(name=enabled, value=false) + echo Removing deprecated option + /subsystem=keycloak-server/spi=truststore/provider=file:map-remove(name=properties, key=disabled) + echo +end-if + +# Migrate from 7.0.0 to 8.0.0 + +if ((result.time == 100L) && (result.unit == MILLISECONDS)) of /subsystem=ejb3/thread-pool=default:read-attribute(name=keepalive-time) + echo Changing thread pool keepalive of ejb3 subsystem + /subsystem=ejb3/thread-pool=default:write-attribute(name=keepalive-time.time, value=60) + /subsystem=ejb3/thread-pool=default:write-attribute(name=keepalive-time.unit,value=SECONDS) + echo +end-if + +if (outcome == failed) of /subsystem=keycloak-server/spi=hostname/provider=default/:read-resource + echo Adding default hostname provider + /subsystem=keycloak-server/spi=hostname/provider=default/:add(properties={frontendUrl => "${keycloak.frontendUrl:}",forceBackendUrlToFrontendUrl => "false"},enabled=true) +end-if + +if (result == request) of /subsystem=keycloak-server/spi=hostname/:read-attribute(name=default-provider) + echo Switching from request to default hostname provider + + /subsystem=keycloak-server/spi=hostname/:write-attribute(name=default-provider,value=default) +end-if + +if (result != fixed) of /subsystem=keycloak-server/spi=hostname/:read-attribute(name=default-provider) + try + /subsystem=keycloak-server/spi=hostname/provider=fixed:remove + echo Removed config for unused fixed hostname provider + catch + end-try +end-if + +# Migrate from 10.0.2 to 11.0.0 (migration changes for infinispan update from 9.4.18.Final to 10.1.8.Final) + +if (result != org.keycloak.keycloak-model-infinispan) of /subsystem=infinispan/cache-container=keycloak:read-attribute(name=module) + echo Setting class loader for keycloak cache-container so JBoss Marshalling works properly with Infinispan 10.x + /subsystem=infinispan/cache-container=keycloak:write-attribute(name=module,value=org.keycloak.keycloak-model-infinispan) + echo +end-if + +# Migrate from 11.0.0 to 12.0.0 + +if (result != expression "${jboss.mail.server.host:localhost}") of /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=mail-smtp:read-attribute(name=host) + echo Adding host expression to the SMTP configuration of a remote destination outbound socket binding in the mail subsystem + /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=mail-smtp:write-attribute(name=host, value=expression "${jboss.mail.server.host:localhost}") + echo +end-if + +if (result != expression "${jboss.mail.server.port:25}") of /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=mail-smtp:read-attribute(name=port) + echo Adding port expression to the SMTP configuration of a remote destination outbound socket binding in the mail subsystem + /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=mail-smtp:write-attribute(name=port, value=expression "${jboss.mail.server.port:25}") + echo +end-if + +# Migrate from 12.0.0 to 13.0.0 + +## KEYCLOAK-16723 / KEYCLOAK-16907: +## +## Based on [WFLY-14203], [WFLY-14151], and [WFLY-14108] remove MicroProfile SmallRye config, health, and metrics if present + +if (outcome == success) of /subsystem=microprofile-config-smallrye/:read-resource + echo Removing microprofile-config-smallrye subsystem... + /subsystem=microprofile-config-smallrye/:remove + echo +end-if + +if (outcome == success) of /extension=org.wildfly.extension.microprofile.config-smallrye/:read-resource + echo Removing microprofile.config-smallrye extension... + /extension=org.wildfly.extension.microprofile.config-smallrye/:remove + echo +end-if + +if (outcome == success) of /subsystem=microprofile-health-smallrye/:read-resource + echo Removing microprofile-health-smallrye subsystem... + /subsystem=microprofile-health-smallrye/:remove + echo +end-if + +if (outcome == success) of /extension=org.wildfly.extension.microprofile.health-smallrye/:read-resource + echo Removing microprofile.health-smallrye extension... + /extension=org.wildfly.extension.microprofile.health-smallrye/:remove + echo +end-if + +if (outcome == success) of /subsystem=microprofile-metrics-smallrye/:read-resource + echo Removing microprofile-metrics-smallrye subsystem... + /subsystem=microprofile-metrics-smallrye/:remove + echo +end-if + +if (outcome == success) of /extension=org.wildfly.extension.microprofile.metrics-smallrye/:read-resource + echo Removing microprofile.metrics-smallrye extension... + /extension=org.wildfly.extension.microprofile.metrics-smallrye/:remove + echo +end-if + +## Yet based on [WFLY-14203], [WFLY-14151], and [WFLY-14108] load +## org.wildfly.extension.health/org.wildfly.extension.metrics extensions & subsystems instead + +if (outcome == failed) of /extension=org.wildfly.extension.health:read-resource + echo Adding WildFly extension for health... + /extension=org.wildfly.extension.health:add(module=org.wildfly.extension.health) + echo +end-if + +if (outcome == failed) of /subsystem=health:read-resource + echo Adding Wildfly subsystem for health... + /subsystem=health:add(security-enabled=false) + echo +end-if + +if (outcome == failed) of /extension=org.wildfly.extension.metrics:read-resource + echo Adding Wildfly extension for base metrics... + /extension=org.wildfly.extension.metrics:add(module=org.wildfly.extension.metrics) + echo +end-if + +if (outcome == failed) of /subsystem=metrics:read-resource + echo Adding Wildfly subsystem for base metrics... + /subsystem=metrics:add(exposed-subsystems=[*],security-enabled=false) + echo +end-if + +if (result == "Keycloak") of :read-attribute(name=product-name) + echo Adding base metrics subsystem prefix to Keycloak... + /subsystem=metrics:write-attribute(name=prefix,value=${wildfly.metrics.prefix:wildfly}) + echo +else + echo Adding base metrics subsystem prefix to RH-SSO... + /subsystem=metrics:write-attribute(name=prefix,value=${wildfly.metrics.prefix:jboss}) + echo +end-if + +## Add ability to make use of automatically generated self-signed certificate with Elytron, +## introduced by WFCORE-5095 in Wildfly Core 14.0.0.Final + +if (outcome == failed) of /subsystem=elytron/key-store=applicationKS:read-resource + echo Adding key store for the feature of auto-generation of self-signed certificate to Elytron subsystem... + /subsystem=elytron/key-store=applicationKS:add(credential-reference={clear-text=password},type=JKS) + /subsystem=elytron/key-store=applicationKS:write-attribute(name=path,value=application.keystore) + /subsystem=elytron/key-store=applicationKS:write-attribute(name=relative-to,value=jboss.server.config.dir) + echo +end-if + +if (outcome == failed) of /subsystem=elytron/key-manager=applicationKM:read-resource + echo Adding key manager for the feature of auto-generation of self-signed certificate to Elytron subsystem... + /subsystem=elytron/key-manager=applicationKM:add(key-store=applicationKS, credential-reference={clear-text=password}) + /subsystem=elytron/key-manager=applicationKM:write-attribute(name=generate-self-signed-certificate-host,value=localhost) + echo +end-if + +if (outcome == failed) of /subsystem=elytron/server-ssl-context=applicationSSC:read-resource + echo Adding SSL context for the feature of auto-generation of self-signed certificate to Elytron subsystem... + /subsystem=elytron/server-ssl-context=applicationSSC:add(key-manager=applicationKM) + echo +end-if + +## Convert type of 'hung-task-termination-period' attribute for 'managed-executor-service' from INT to LONG +if (result == 0) of /subsystem=ee/managed-executor-service=default:read-attribute(name=hung-task-termination-period) + echo Setting period for automatic termination of hung tasks for managed executor service to default value (0 miliseconds) + /subsystem=ee/managed-executor-service=default:write-attribute(name=hung-task-termination-period,value=0L) + echo +end-if + +## Convert type of 'hung-task-termination-period' attribute for 'managed-scheduled-executor-service' from INT to LONG +if (result == 0) of /subsystem=ee/managed-scheduled-executor-service=default:read-attribute(name=hung-task-termination-period) + echo Setting period for automatic termination of hung tasks for managed scheduled executor service to default value (0 miliseconds) + /subsystem=ee/managed-scheduled-executor-service=default:write-attribute(name=hung-task-termination-period,value=0L) + echo +end-if + +## Set value of JPA default-datasource from empty string to 'undefined' +if (outcome == success) && (result == "") of /subsystem=jpa:read-attribute(name=default-datasource) + echo Setting value of to default-datasource attribute in JPA subsystem to 'undefined' + /subsystem=jpa:undefine-attribute(name=default-datasource) + echo +end-if + +echo *** End Migration *** diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/docs/licenses/apache license 2.0.txt b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/docs/licenses/apache license 2.0.txt new file mode 100644 index 0000000000..d645695673 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/docs/licenses/apache license 2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/docs/licenses/licenses.css b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/docs/licenses/licenses.css new file mode 100644 index 0000000000..566d3c9ba0 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/docs/licenses/licenses.css @@ -0,0 +1,22 @@ +table { + border-collapse: collapse; +} + +table, th, td { + border: 1px solid navy; +} + +th { + text-align: left; + background-color: #BCC6CC; + +} + +th, td { + padding: 2px; + text-align: left; +} + +tr:nth-child(even) { + background-color: #f2f2f2; +} \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/docs/licenses/licenses.xsl b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/docs/licenses/licenses.xsl new file mode 100644 index 0000000000..cdd1a0e184 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/docs/licenses/licenses.xsl @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + +

- Servlet Feature Pack

+

The following material has been provided for informational purposes only, and should not be relied upon or construed as a legal opinion or legal advice.

+ + + + + + + + + + + + + + + + + + + +
Package GroupPackage ArtifactPackage VersionRemote LicensesLocal Licenses
+ +
+
+
+ + + + + + +
+
+
+ + +
+ + + + + + gnu general public license v2.0 only.html + + + .html + + + + + + +
diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/domain-keycloak-clustered.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/domain-keycloak-clustered.xml new file mode 100644 index 0000000000..db5dbea1f3 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/domain-keycloak-clustered.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/domain-keycloak-standalone.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/domain-keycloak-standalone.xml new file mode 100644 index 0000000000..0b97ec948c --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/domain-keycloak-standalone.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/domain-server-groups-keycloak.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/domain-server-groups-keycloak.xml new file mode 100644 index 0000000000..a83bf02018 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/domain-server-groups-keycloak.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/host-master.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/host-master.xml new file mode 100644 index 0000000000..952707618d --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/host-master.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/host-slave.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/host-slave.xml new file mode 100644 index 0000000000..482aeefa32 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/host-slave.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/host.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/host.xml new file mode 100644 index 0000000000..b5285037e9 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/host.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-ejb.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-ejb.xml new file mode 100644 index 0000000000..2cb9495d65 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-ejb.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-hibernate.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-hibernate.xml new file mode 100644 index 0000000000..72c5179797 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-hibernate.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-keycloak.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-keycloak.xml new file mode 100644 index 0000000000..d382a08099 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-keycloak.xml @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-server.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-server.xml new file mode 100644 index 0000000000..ae020a87ba --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-server.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-web.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-web.xml new file mode 100644 index 0000000000..57a1d53888 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-web.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist.xml new file mode 100644 index 0000000000..38ca1d3ee5 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-ejb.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-ejb.xml new file mode 100644 index 0000000000..542512c762 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-ejb.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-hibernate.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-hibernate.xml new file mode 100644 index 0000000000..a0b44bb299 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-hibernate.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-keycloak.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-keycloak.xml new file mode 100644 index 0000000000..b0d91c53f8 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-keycloak.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-server.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-server.xml new file mode 100644 index 0000000000..a72d3551ee --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-server.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-web.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-web.xml new file mode 100644 index 0000000000..4bd54f4e4b --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local-web.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local.xml new file mode 100644 index 0000000000..1b8434bffb --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-local.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/keycloak-datasource.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/keycloak-datasource.xml new file mode 100644 index 0000000000..fddf52630a --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/keycloak-datasource.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/keycloak-server-subsystem.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/keycloak-server-subsystem.xml new file mode 100644 index 0000000000..d882204d5d --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/keycloak-server-subsystem.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/standalone-ha.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/standalone-ha.xml new file mode 100644 index 0000000000..f5a2dabff5 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/standalone-ha.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/standalone.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/standalone.xml new file mode 100644 index 0000000000..276e71c645 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/standalone.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/layers/standalone/keycloak/layer-spec.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/layers/standalone/keycloak/layer-spec.xml new file mode 100644 index 0000000000..55f3120743 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/layers/standalone/keycloak/layer-spec.xml @@ -0,0 +1,19 @@ + + + + + \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/layers.conf b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/layers.conf new file mode 100644 index 0000000000..a05b793748 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/layers.conf @@ -0,0 +1 @@ +layers=keycloak diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/main/module.xml new file mode 100644 index 0000000000..26b0c3bfd1 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/main/module.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/github/ua-parser/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/github/ua-parser/main/module.xml new file mode 100644 index 0000000000..1cc14b728c --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/github/ua-parser/main/module.xml @@ -0,0 +1,25 @@ + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/google/zxing/core/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/google/zxing/core/main/module.xml new file mode 100644 index 0000000000..460d1ab400 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/google/zxing/core/main/module.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/google/zxing/javase/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/google/zxing/javase/main/module.xml new file mode 100644 index 0000000000..ec43b82343 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/google/zxing/javase/main/module.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/googlecode/owasp-java-html-sanitizer/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/googlecode/owasp-java-html-sanitizer/main/module.xml new file mode 100644 index 0000000000..4a1bbbe5d7 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/googlecode/owasp-java-html-sanitizer/main/module.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/openshift/openshift-restclient-java/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/openshift/openshift-restclient-java/main/module.xml new file mode 100644 index 0000000000..7b1ffe138c --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/openshift/openshift-restclient-java/main/module.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/webauthn4j/webauthn4j-core/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/webauthn4j/webauthn4j-core/main/module.xml new file mode 100644 index 0000000000..7588fd2423 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/webauthn4j/webauthn4j-core/main/module.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/webauthn4j/webauthn4j-util/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/webauthn4j/webauthn4j-util/main/module.xml new file mode 100644 index 0000000000..983db6552f --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/com/webauthn4j/webauthn4j-util/main/module.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/apache/commons/lang/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/apache/commons/lang/main/module.xml new file mode 100644 index 0000000000..3f80945d51 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/apache/commons/lang/main/module.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/apache/commons/lang3/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/apache/commons/lang3/main/module.xml new file mode 100644 index 0000000000..019af8ab15 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/apache/commons/lang3/main/module.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/apache/kerby/kerby-asn1/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/apache/kerby/kerby-asn1/main/module.xml new file mode 100644 index 0000000000..e38d6bdc94 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/apache/kerby/kerby-asn1/main/module.xml @@ -0,0 +1,23 @@ + + + + + + + + \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/freemarker/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/freemarker/main/module.xml new file mode 100644 index 0000000000..ea4990c561 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/freemarker/main/module.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/infinispan/jboss-marshalling/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/infinispan/jboss-marshalling/main/module.xml new file mode 100644 index 0000000000..ed45338727 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/infinispan/jboss-marshalling/main/module.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/jboss/marshalling/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/jboss/marshalling/main/module.xml new file mode 100644 index 0000000000..eeb46e7003 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/jboss/marshalling/main/module.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/jboss/marshalling/river/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/jboss/marshalling/river/main/module.xml new file mode 100644 index 0000000000..73f0fe72b2 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/jboss/marshalling/river/main/module.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-authz-policy-common/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-authz-policy-common/main/module.xml new file mode 100644 index 0000000000..a8ab099035 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-authz-policy-common/main/module.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-common/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-common/main/module.xml new file mode 100755 index 0000000000..ee73fde207 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-common/main/module.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-core/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-core/main/module.xml new file mode 100755 index 0000000000..9682ff71cf --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-core/main/module.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-js-adapter/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-js-adapter/main/module.xml new file mode 100644 index 0000000000..1b5fb5c6d9 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-js-adapter/main/module.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-kerberos-federation/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-kerberos-federation/main/module.xml new file mode 100755 index 0000000000..ebb263c714 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-kerberos-federation/main/module.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-ldap-federation/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-ldap-federation/main/module.xml new file mode 100755 index 0000000000..dcca1bfd2e --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-ldap-federation/main/module.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-model-infinispan/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-model-infinispan/main/module.xml new file mode 100755 index 0000000000..8216a0c265 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-model-infinispan/main/module.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-model-jpa/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-model-jpa/main/module.xml new file mode 100755 index 0000000000..88cae4fee5 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-model-jpa/main/module.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-model-map/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-model-map/main/module.xml new file mode 100755 index 0000000000..41ee706f06 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-model-map/main/module.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-saml-core-public/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-saml-core-public/main/module.xml new file mode 100755 index 0000000000..0b888dd1e7 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-saml-core-public/main/module.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-saml-core/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-saml-core/main/module.xml new file mode 100755 index 0000000000..3eef1c5cbf --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-saml-core/main/module.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-spi-private/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-spi-private/main/module.xml new file mode 100755 index 0000000000..fbc61bb816 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-spi-private/main/module.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-spi/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-spi/main/module.xml new file mode 100755 index 0000000000..5592d6fd1a --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-spi/main/module.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/dependencies/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/dependencies/main/module.xml new file mode 100755 index 0000000000..5161617bcf --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/dependencies/main/module.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/main/module.xml new file mode 100644 index 0000000000..92b6d10511 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/main/module.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/main/server-war/WEB-INF/jboss-deployment-structure.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/main/server-war/WEB-INF/jboss-deployment-structure.xml new file mode 100755 index 0000000000..79f3aef1e0 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/main/server-war/WEB-INF/jboss-deployment-structure.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/main/server-war/WEB-INF/web.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/main/server-war/WEB-INF/web.xml new file mode 100755 index 0000000000..5b8d4a61db --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/main/server-war/WEB-INF/web.xml @@ -0,0 +1,71 @@ + + + + + + auth + + + Keycloak REST Interface + org.jboss.resteasy.plugins.server.servlet.HttpServlet30Dispatcher + + javax.ws.rs.Application + org.keycloak.services.resources.KeycloakApplication + + + resteasy.servlet.mapping.prefix + / + + 1 + true + + + + resteasy.disable.html.sanitizer + true + + + + org.keycloak.provider.wildfly.WildflyLifecycleListener + + + + Client Connection Filter + org.keycloak.provider.wildfly.WildFlyRequestFilter + true + + + + Client Connection Filter + /* + + + + Keycloak REST Interface + /* + + + + infinispan/Keycloak + org.infinispan.manager.EmbeddedCacheManager + java:jboss/infinispan/container/keycloak + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-services/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-services/main/module.xml new file mode 100755 index 0000000000..5577e7c7ee --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-services/main/module.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-sssd-federation/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-sssd-federation/main/module.xml new file mode 100644 index 0000000000..6d56d6e995 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-sssd-federation/main/module.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-wildfly-adduser/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-wildfly-adduser/main/module.xml new file mode 100755 index 0000000000..8854801656 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-wildfly-adduser/main/module.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-wildfly-extensions/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-wildfly-extensions/main/module.xml new file mode 100755 index 0000000000..a1540ddcff --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-wildfly-extensions/main/module.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-wildfly-server-subsystem/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-wildfly-server-subsystem/main/module.xml new file mode 100644 index 0000000000..f0c4947dc1 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/keycloak/keycloak-wildfly-server-subsystem/main/module.xml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/liquibase/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/liquibase/main/module.xml new file mode 100644 index 0000000000..ff712061f8 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/liquibase/main/module.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/twitter4j/main/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/twitter4j/main/module.xml new file mode 100644 index 0000000000..5ecdf97900 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/modules/system/layers/keycloak/org/twitter4j/main/module.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/client-cli/package.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/client-cli/package.xml new file mode 100644 index 0000000000..6d6b9beae2 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/client-cli/package.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/distribution/server-dist/src/main/docs/examples/map-storage-concurrenthashmap.cli b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/docs-examples/content/docs/examples/map-storage-concurrenthashmap.cli similarity index 100% rename from distribution/server-dist/src/main/docs/examples/map-storage-concurrenthashmap.cli rename to distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/docs-examples/content/docs/examples/map-storage-concurrenthashmap.cli diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/docs-examples/package.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/docs-examples/package.xml new file mode 100644 index 0000000000..f8798ab2c2 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/docs-examples/package.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/content/bin/product.conf b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/content/bin/product.conf new file mode 100644 index 0000000000..7b1d3141d5 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/content/bin/product.conf @@ -0,0 +1 @@ +// placeholder file: content copied by tasks.xml from src/main/resources/packages/identity/pm/wildfly/resources/bin/product.conf diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/content/modules/system/layers/keycloak/org/jboss/as/product/keycloak/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/content/modules/system/layers/keycloak/org/jboss/as/product/keycloak/module.xml new file mode 100644 index 0000000000..a4a1c287db --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/content/modules/system/layers/keycloak/org/jboss/as/product/keycloak/module.xml @@ -0,0 +1 @@ +// placeholder file: content copied by tasks.xml from src/main/resources/packages/identity/pm/wildfly/resources/modules/system/layers/keycloak/org/jboss/as/product/keycloak/module.xml \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/package.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/package.xml new file mode 100644 index 0000000000..4fa2127514 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/package.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/pm/wildfly/resources/bin/product.conf b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/pm/wildfly/resources/bin/product.conf new file mode 100644 index 0000000000..523592f81b --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/pm/wildfly/resources/bin/product.conf @@ -0,0 +1 @@ +slot=${product.slot} diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/pm/wildfly/resources/modules/system/layers/keycloak/org/jboss/as/product/keycloak/dir/META-INF/MANIFEST.MF b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/pm/wildfly/resources/modules/system/layers/keycloak/org/jboss/as/product/keycloak/dir/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..a467c06b87 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/pm/wildfly/resources/modules/system/layers/keycloak/org/jboss/as/product/keycloak/dir/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +JBoss-Product-Release-Name: ${product.name.full} +JBoss-Product-Release-Version: ${product.version} +JBoss-Product-Console-Slot: ${product.wildfly.console.slot} diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/pm/wildfly/resources/modules/system/layers/keycloak/org/jboss/as/product/keycloak/module.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/pm/wildfly/resources/modules/system/layers/keycloak/org/jboss/as/product/keycloak/module.xml new file mode 100644 index 0000000000..272eb54de5 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/pm/wildfly/resources/modules/system/layers/keycloak/org/jboss/as/product/keycloak/module.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/pm/wildfly/tasks.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/pm/wildfly/tasks.xml new file mode 100644 index 0000000000..8e354e87a4 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/identity/pm/wildfly/tasks.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/root/content/LICENSE.txt b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/root/content/LICENSE.txt new file mode 100644 index 0000000000..d645695673 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/root/content/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/root/package.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/root/package.xml new file mode 100644 index 0000000000..e256e1d542 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/root/package.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/distribution/server-dist/src/main/version.txt b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/root/pm/wildfly/resources/version.txt similarity index 100% rename from distribution/server-dist/src/main/version.txt rename to distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/root/pm/wildfly/resources/version.txt diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/root/pm/wildfly/tasks.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/root/pm/wildfly/tasks.xml new file mode 100644 index 0000000000..3f83ed535f --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/root/pm/wildfly/tasks.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/themes/content/themes/README.txt b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/themes/content/themes/README.txt new file mode 100644 index 0000000000..475b957466 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/themes/content/themes/README.txt @@ -0,0 +1,3 @@ +Themes are used to configure the look and feel of login pages and the account management console. It is not recommended to +modify the existing built-in themes, instead you should create a new theme that extends a built-in theme. See the theme +section in the documentation for more details. \ No newline at end of file diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/themes/package.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/themes/package.xml new file mode 100644 index 0000000000..672a0ceb33 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/themes/package.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/distribution/server-dist/src/main/welcome-content/index.html b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/welcome-content-keycloak/content/welcome-content/index.html similarity index 100% rename from distribution/server-dist/src/main/welcome-content/index.html rename to distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/welcome-content-keycloak/content/welcome-content/index.html diff --git a/distribution/server-dist/src/main/welcome-content/robots.txt b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/welcome-content-keycloak/content/welcome-content/robots.txt similarity index 100% rename from distribution/server-dist/src/main/welcome-content/robots.txt rename to distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/welcome-content-keycloak/content/welcome-content/robots.txt diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/welcome-content-keycloak/package.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/welcome-content-keycloak/package.xml new file mode 100644 index 0000000000..642dd7acd8 --- /dev/null +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/packages/welcome-content-keycloak/package.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/distribution/pom.xml b/distribution/pom.xml index 5dd35a4753..dfceac0baf 100755 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -56,9 +56,27 @@ false + + jboss + https://repository.jboss.org/nexus/content/groups/public/ + + false + + + + legacy-dist + + + legacy-dist + + + + server-legacy-dist + + community diff --git a/distribution/server-dist/assembly.xml b/distribution/server-dist/assembly.xml old mode 100755 new mode 100644 index f6550de907..d3554d8ae8 --- a/distribution/server-dist/assembly.xml +++ b/distribution/server-dist/assembly.xml @@ -1,138 +1,19 @@ - - - - server-dist - + + + thin-server - zip + zip tar.gz - - true - + false - target/${project.build.finalName} - - true - - **/module.xml - - - - - target/${project.build.finalName} - - false - - .installation - bin/*.sh - - module.xml - welcome-content/** - appclient/** - bin/appclient.* - copyright.txt - README.txt - version.txt - ${profileExcludes} - docs/licenses-${product.slot}/** - - - - - - target/${project.build.finalName} + target - bin/*.sh - - 0755 - - - target/${project.build.finalName} - - - .installation - - 0700 - - - src/main/welcome-content - welcome-content - - *.* - - - - src/main/modules - modules - - layers.conf - - - - target/licenses/content/docs - docs - - licenses-${product.slot}/** - - - - src/main/docs - docs - - ** + ${server.output.dir.prefix}-${server.output.dir.version}/** - - - - src/main/version.txt - - true - - - diff --git a/distribution/server-dist/pom.xml b/distribution/server-dist/pom.xml old mode 100755 new mode 100644 index 6f5ccd596d..17d0826890 --- a/distribution/server-dist/pom.xml +++ b/distribution/server-dist/pom.xml @@ -1,23 +1,32 @@ + + - + 4.0.0 + keycloak-distribution-parent org.keycloak @@ -25,24 +34,22 @@ keycloak-server-dist - pom - Keycloak Server Distribution + + Keycloak Server Galleon Based Distribution - - - jboss - https://repository.jboss.org/nexus/content/groups/public/ - - false - - - + pom - org.keycloak - keycloak-server-feature-pack + org.wildfly + wildfly-galleon-pack + pom + provided + + + org.wildfly + wildfly-galleon-pack zip @@ -51,47 +58,187 @@ + + org.keycloak + keycloak-server-galleon-pack + pom + provided + + + org.keycloak + keycloak-server-galleon-pack + zip + + + * + * + + + + + ${server.output.dir.prefix}-${server.output.dir.version} - org.wildfly.build - wildfly-server-provisioning-maven-plugin - ${wildfly.build-tools.version} + org.jboss.galleon + galleon-maven-plugin server-provisioning - build + provision compile - ../${keycloak.provisioning.xml} + ${basedir}/target/${project.build.finalName} + false + ${galleon.log.time} + ${galleon.offline} + + ${galleon.fork.embedded} + + + + true + ${ee.maven.groupId} + wildfly-ee-galleon-pack + ${ee.maven.version} + + welcome-content + + + product.conf + appclient + bin.appclient + + + + true + org.wildfly + wildfly-galleon-pack + ${wildfly.version} + + bin + bin.domain + docs.examples.configs + + + product.conf + appclient + bin.appclient + + + + org.keycloak + keycloak-server-galleon-pack + ${project.version} + + identity + client-cli + core-tools + themes + welcome-content-keycloak + + + + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-and-inject-keycloak-server-feature-pack-licenses + process-classes + + unpack + + + + + org.keycloak + keycloak-server-feature-pack + zip + ${basedir}/target/${project.build.finalName}/docs + content/docs/licenses-${product.slot}/** + + + ^\Qcontent/docs/\E + ./ + + + + org.apache.maven.plugins - maven-dependency-plugin + maven-clean-plugin - unpack-server-feature-pack-licenses - prepare-package + + post-provision-cleanup + process-classes - unpack-dependencies + clean - org.keycloak - keycloak-server-feature-pack - zip - content/docs/licenses-${product.slot}/** - ${project.build.directory}/licenses + true + + + ${basedir}/target/${project.build.finalName} + + README.txt + copyright.txt + + + + ${basedir}/target/${project.build.finalName}/welcome-content + + robots.txt + index.html + + + + + org.apache.maven.plugins + maven-resources-plugin + + + verifications-configuration + + copy-resources + + process-classes + + true + ${basedir}/target/verifier + + + src/verifier + true + + + + + + + + org.apache.maven.plugins + maven-verifier-plugin + org.apache.maven.plugins maven-assembly-plugin @@ -104,51 +251,18 @@ - ${assemblyFile} + assembly.xml true ${project.build.finalName} false ${project.build.directory} ${project.build.directory}/assembly/work + gnu - - - - community - - - !product - - - - assembly.xml - - - keycloak-${project.version} - - - - - product - - - product - - - - assembly.xml - %regex[(docs/contrib.*)|(docs/examples.*)|(docs/schema.*)] - - - ${product.name}-${product.filename.version} - - - - diff --git a/distribution/server-dist/src/verifier/verifications.xml b/distribution/server-dist/src/verifier/verifications.xml new file mode 100644 index 0000000000..cd83cb8218 --- /dev/null +++ b/distribution/server-dist/src/verifier/verifications.xml @@ -0,0 +1,91 @@ + + + + + + + target/${server.output.dir.prefix}-${server.output.dir.version}/bin/product.conf + true + + + target/${server.output.dir.prefix}-${server.output.dir.version}/bin/product.conf + slot=${product.slot} + + + target/${server.output.dir.prefix}-${server.output.dir.version}/modules/system/layers/keycloak/org/jboss/as/product/${product.slot}/dir/META-INF/MANIFEST.MF + JBoss-Product-Release-Name: ${product.name.full} + + + target/${server.output.dir.prefix}-${server.output.dir.version}/modules/system/layers/keycloak/org/jboss/as/product/${product.slot}/dir/META-INF/MANIFEST.MF + JBoss-Product-Release-Version: ${product.version} + + + target/${server.output.dir.prefix}-${server.output.dir.version}/modules/system/layers/keycloak/org/jboss/as/product/${product.slot}/dir/META-INF/MANIFEST.MF + JBoss-Product-Console-Slot: ${product.wildfly.console.slot} + + + target/${server.output.dir.prefix}-${server.output.dir.version}/modules/system/layers/keycloak/org/jboss/as/product/${product.slot}/dir/META-INF/MANIFEST.MF + true + + + target/${server.output.dir.prefix}-${server.output.dir.version}/jboss-modules.jar + true + + + target/${server.output.dir.prefix}-${server.output.dir.version}/standalone/configuration/standalone.xml + true + + + target/${server.output.dir.prefix}-${server.output.dir.version}/standalone/configuration/standalone-ha.xml + true + + + target/${server.output.dir.prefix}-${server.output.dir.version}/domain/configuration/domain.xml + true + + + target/${server.output.dir.prefix}-${server.output.dir.version}/domain/configuration/host.xml + true + + + target/${server.output.dir.prefix}-${server.output.dir.version}/domain/configuration/host-master.xml + true + + + target/${server.output.dir.prefix}-${server.output.dir.version}/domain/configuration/host-slave.xml + true + + + diff --git a/distribution/server-legacy-dist/assembly.xml b/distribution/server-legacy-dist/assembly.xml new file mode 100755 index 0000000000..f6550de907 --- /dev/null +++ b/distribution/server-legacy-dist/assembly.xml @@ -0,0 +1,138 @@ + + + + server-dist + + + zip + tar.gz + + + true + + + + target/${project.build.finalName} + + true + + **/module.xml + + + + + target/${project.build.finalName} + + false + + .installation + bin/*.sh + + module.xml + welcome-content/** + appclient/** + bin/appclient.* + copyright.txt + README.txt + version.txt + ${profileExcludes} + docs/licenses-${product.slot}/** + + + + + + target/${project.build.finalName} + + + bin/*.sh + + 0755 + + + target/${project.build.finalName} + + + .installation + + 0700 + + + src/main/welcome-content + welcome-content + + *.* + + + + src/main/modules + modules + + layers.conf + + + + target/licenses/content/docs + docs + + licenses-${product.slot}/** + + + + src/main/docs + docs + + ** + + + + + + + src/main/version.txt + + true + + + + diff --git a/distribution/server-legacy-dist/pom.xml b/distribution/server-legacy-dist/pom.xml new file mode 100755 index 0000000000..40e3edc7c6 --- /dev/null +++ b/distribution/server-legacy-dist/pom.xml @@ -0,0 +1,144 @@ + + + + 4.0.0 + + keycloak-distribution-parent + org.keycloak + 14.0.0-SNAPSHOT + + + keycloak-server-legacy-dist + pom + Keycloak Server Legacy Distribution + + + + + org.keycloak + keycloak-server-feature-pack + zip + + + * + * + + + + + + + + + org.wildfly.build + wildfly-server-provisioning-maven-plugin + ${wildfly.build-tools.version} + + + server-provisioning + + build + + compile + + ../${keycloak.provisioning.xml} + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-server-feature-pack-licenses + prepare-package + + unpack-dependencies + + + org.keycloak + keycloak-server-feature-pack + zip + content/docs/licenses-${product.slot}/** + ${project.build.directory}/licenses + + + + + + org.apache.maven.plugins + maven-assembly-plugin + + + assemble + package + + single + + + + ${assemblyFile} + + true + ${project.build.finalName} + false + ${project.build.directory} + ${project.build.directory}/assembly/work + + + + + + + + + + community + + + !product + + + + assembly.xml + + + keycloak-${project.version} + + + + + product + + + product + + + + assembly.xml + %regex[(docs/contrib.*)|(docs/examples.*)|(docs/schema.*)] + + + ${product.name}-${product.filename.version} + + + + + diff --git a/distribution/server-legacy-dist/src/main/docs/examples/map-storage-concurrenthashmap.cli b/distribution/server-legacy-dist/src/main/docs/examples/map-storage-concurrenthashmap.cli new file mode 100644 index 0000000000..7620591249 --- /dev/null +++ b/distribution/server-legacy-dist/src/main/docs/examples/map-storage-concurrenthashmap.cli @@ -0,0 +1,38 @@ +## +## CLI script to set Keycloak to use map storage rather than the standard JPA. +## The backend database is at this moment a ConcurrentHashMap-based storage +## which is suitable for dev and testing in standalone node. It does not +## support clustered deployments. +## +## Apply this file using the following command from the Keycloak root directory: +## +## bin/jboss-cli.sh --file=docs/examples/map-storage-concurrenthashmap.cli +## +## This will modify standalone/configuration/standalone.xml +## + +embed-server + +/system-property=keycloak.profile.feature.map_storage:add(value=enabled) + +/subsystem=keycloak-server/spi=authorizationPersister:add(default-provider=map) +/subsystem=keycloak-server/spi=client:add(default-provider=map) +/subsystem=keycloak-server/spi=clientScope:add(default-provider=map) +/subsystem=keycloak-server/spi=group:add(default-provider=map) +/subsystem=keycloak-server/spi=realm:add(default-provider=map) +/subsystem=keycloak-server/spi=role:add(default-provider=map) +/subsystem=keycloak-server/spi=deploymentState:add(default-provider=map) +/subsystem=keycloak-server/spi=deploymentState/provider=map:add(enabled=true,properties={resourcesVersionSeed=1JZ379bzyOCFA}) +/subsystem=keycloak-server/spi=user:add(default-provider=map) +/subsystem=keycloak-server/spi=dblock:add(default-provider=none) + +## For dev and single-node purposes, these are set to "map". +## For clustered deployments, these should be "infinispan" as map storage does not support distributed storage yet +/subsystem=keycloak-server/spi=authenticationSessions:add(default-provider=map) +/subsystem=keycloak-server/spi=loginFailure:add(default-provider=map) +/subsystem=keycloak-server/spi=userSessions:add(default-provider=map) + +/subsystem=keycloak-server/spi=mapStorage:add(default-provider=concurrenthashmap) +/subsystem=keycloak-server/spi=mapStorage/provider=concurrenthashmap:add(properties={dir="${jboss.server.data.dir}/map",keyType.realms=string,keyType.authz-resource-servers=string},enabled=true) + +quit \ No newline at end of file diff --git a/distribution/server-dist/src/main/modules/layers.conf b/distribution/server-legacy-dist/src/main/modules/layers.conf similarity index 100% rename from distribution/server-dist/src/main/modules/layers.conf rename to distribution/server-legacy-dist/src/main/modules/layers.conf diff --git a/distribution/server-legacy-dist/src/main/version.txt b/distribution/server-legacy-dist/src/main/version.txt new file mode 100644 index 0000000000..c9db8ca50e --- /dev/null +++ b/distribution/server-legacy-dist/src/main/version.txt @@ -0,0 +1 @@ +${product.name.full} - Version ${product.version} diff --git a/distribution/server-legacy-dist/src/main/welcome-content/index.html b/distribution/server-legacy-dist/src/main/welcome-content/index.html new file mode 100644 index 0000000000..762ad2be4c --- /dev/null +++ b/distribution/server-legacy-dist/src/main/welcome-content/index.html @@ -0,0 +1,30 @@ + + + + + + + + + + + If you are not redirected automatically, follow this link. + + diff --git a/distribution/server-legacy-dist/src/main/welcome-content/robots.txt b/distribution/server-legacy-dist/src/main/welcome-content/robots.txt new file mode 100644 index 0000000000..77470cb39f --- /dev/null +++ b/distribution/server-legacy-dist/src/main/welcome-content/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / \ No newline at end of file diff --git a/distribution/server-overlay/pom.xml b/distribution/server-overlay/pom.xml index f48e18d897..b9283aaa0b 100755 --- a/distribution/server-overlay/pom.xml +++ b/distribution/server-overlay/pom.xml @@ -29,16 +29,6 @@ Keycloak Server Overlay Distribution - - - jboss - https://repository.jboss.org/nexus/content/groups/public/ - - false - - - - org.keycloak diff --git a/pom.xml b/pom.xml index 259fa6ea12..3697a2ff1d 100644 --- a/pom.xml +++ b/pom.xml @@ -171,6 +171,7 @@ 1.6.5 1.8.0 0.28.0 + 1.1 512m @@ -194,6 +195,21 @@ 0.12.0.RELEASE 2.0.0 + + org.wildfly + ${wildfly.version} + 5.1.3.Final + + + true + true + true + + + keycloak + + ${project.version} + http://keycloak.org @@ -745,6 +761,30 @@ ${wildfly.version} zip + + org.wildfly + wildfly-galleon-pack + ${wildfly.version} + zip + + + org.wildfly + wildfly-galleon-pack + ${wildfly.version} + pom + + + org.wildfly + wildfly-ee-galleon-pack + ${wildfly.version} + zip + + + org.wildfly + wildfly-servlet-galleon-pack + ${wildfly.version} + zip + org.wildfly wildfly-web-feature-pack @@ -776,6 +816,30 @@ ${wildfly.core.version} test + + org.wildfly.core + wildfly-core-feature-pack-common + pom + ${wildfly.core.version} + + + org.wildfly.core + wildfly-core-feature-pack-ee-8-api + pom + ${wildfly.core.version} + + + org.wildfly.core + wildfly-core-feature-pack-galleon-common + pom + ${wildfly.core.version} + + + org.wildfly.core + wildfly-core-feature-pack-galleon-pruned + pom + ${wildfly.core.version} + org.wildfly.core wildfly-core-feature-pack @@ -788,6 +852,18 @@ zip ${wildfly.core.version} + + org.wildfly.core + wildfly-core-galleon-pack + pom + ${wildfly.core.version} + + + org.wildfly.core + wildfly-core-galleon-pack + zip + ${wildfly.core.version} + org.wildfly.core wildfly-version @@ -1575,6 +1651,59 @@ + + + + org.keycloak + keycloak-server-galleon-pack + ${project.version} + zip + + + + org.keycloak + keycloak-server-galleon-pack + ${project.version} + pom + + + + + org.wildfly.galleon-plugins + wildfly-galleon-plugins + ${org.wildfly.galleon-plugins.version} + + + org.jboss.galleon + * + + + + + + org.wildfly.galleon-plugins + wildfly-config-gen + ${org.wildfly.galleon-plugins.version} + + + * + * + + + + + + org.wildfly.galleon-plugins + transformer + ${org.wildfly.galleon-plugins.version} + + + * + * + + + + @@ -1598,6 +1727,11 @@ posix + + org.apache.maven.plugins + maven-dependency-plugin + 3.1.2 + org.apache.maven.plugins maven-release-plugin @@ -1673,6 +1807,42 @@ wildfly-server-provisioning-maven-plugin ${wildfly.build-tools.version} + + org.wildfly.galleon-plugins + wildfly-galleon-maven-plugin + ${org.wildfly.galleon-plugins.version} + + + + org.wildfly.core + wildfly-embedded + ${wildfly.core.version} + + + + org.wildfly.common + wildfly-common + ${wildfly.common.version} + + + + + org.apache.maven.plugins + maven-verifier-plugin + ${verifier.plugin.version} + + + main + verify + + verify + + + + + target/verifier/verifications.xml + + org.apache.felix maven-bundle-plugin diff --git a/wildfly/server-subsystem/src/main/config/default-server-subsys-config.properties b/wildfly/server-subsystem/src/main/config/default-server-subsys-config.properties index a710d9c9f7..08defc2311 100644 --- a/wildfly/server-subsystem/src/main/config/default-server-subsys-config.properties +++ b/wildfly/server-subsystem/src/main/config/default-server-subsys-config.properties @@ -2,6 +2,8 @@ # to src/main/resources/cli/default-keycloak-subsys-config.cli # The CLI file is packaged with the subsystem and extracted by the overlay distribution. # +# !!! This file has to be in sync with distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/keycloak-server-subsystem.xml +# # Also, you should update the migrate-*.cli scripts in # /distribution/feature-packs/server-feature-pack/src/main/resources/content/bin #