From 7ba306e82a18844e1944f41d09cdc21b363443e4 Mon Sep 17 00:00:00 2001 From: stianst Date: Thu, 3 Dec 2026 14:08:46 +0100 Subject: [PATCH] Remove OpenJDK 17 support on server side Closes #52369 Signed-off-by: stianst --- .github/copilot-instructions.md | 2 +- .github/workflows/ci.yml | 2 +- adapters/pom.xml | 6 +++++ adapters/saml/core-public/pom.xml | 5 ++-- adapters/saml/core/pom.xml | 3 +++ adapters/saml/wildfly-elytron/pom.xml | 6 +++++ .../saml/wildfly/wildfly-subsystem/pom.xml | 6 +++++ adapters/spi/adapter-spi/pom.xml | 5 ++-- adapters/spi/jboss-adapter-core/pom.xml | 5 ++-- authz/client/pom.xml | 6 ++--- common/pom.xml | 6 ++--- core/pom.xml | 6 ++--- .../def/BCUserIdentityExtractorProvider.java | 2 +- .../ElytronUserIdentityExtractorProvider.java | 2 +- .../BCFIPSUserIdentityExtractorProvider.java | 2 +- docs/building.md | 2 +- docs/documentation/tests/pom.xml | 2 +- .../topics/changes/changes-27_0_0.adoc | 4 ++++ .../single-cluster/concepts-threads.adoc | 11 --------- docs/guides/server/fips.adoc | 24 ++++++++----------- .../server/supported-configurations.adoc | 1 - integration/admin-client-core/pom.xml | 6 ----- integration/admin-client-jackson3/pom.xml | 4 +++- integration/admin-client/pom.xml | 6 ----- integration/client-cli/pom.xml | 6 +++++ integration/pom.xml | 6 +++++ misc/db-compatibility-verifier/pom.xml | 6 ----- misc/theme-verifier/pom.xml | 6 ----- misc/vuln-to-issues/pom.xml | 6 ----- operator/README.md | 4 ++-- pom.xml | 11 ++++++--- rest/admin-v2/api/pom.xml | 6 ++--- rest/admin-v2/services/pom.xml | 4 ---- saml-core-api/pom.xml | 5 ++-- saml-core/pom.xml | 5 ++-- .../auth-server/common/fips/kc.java.security | 13 ---------- .../AbstractQuarkusDeployableContainer.java | 2 -- .../integration-arquillian/tests/pom.xml | 5 +--- 38 files changed, 95 insertions(+), 114 deletions(-) delete mode 100644 testsuite/integration-arquillian/servers/auth-server/common/fips/kc.java.security diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 98ed0ea271e..fb709995341 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -9,7 +9,7 @@ ## Required toolchain - Use Maven Wrapper, not system Maven: `./mvnw`. -- JDK: 17, 21, or 25 (CI uses 25 for most jobs, with some workflows pinned to 21; the Maven compiler release is 17). +- JDK: 21, or 25 (CI uses 25 for most jobs, with some workflows pinned to 21; the Maven compiler release is 21). - Node.js: 24+ for UI work (`js/apps/admin-ui/CONTRIBUTING.md`). - PNPM workspace is managed from `js/`. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b62f952b06b..f5b29fed10b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -331,7 +331,7 @@ jobs: matrix: os: [ubuntu-latest, windows-latest] dist: [temurin] - version: [17, 21, 27] + version: [21, 27] fail-fast: false runs-on: ${{ matrix.os }} steps: diff --git a/adapters/pom.xml b/adapters/pom.xml index f4ff37845ab..30f6ce89038 100755 --- a/adapters/pom.xml +++ b/adapters/pom.xml @@ -30,6 +30,12 @@ keycloak-adapters-pom pom + + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + + spi saml diff --git a/adapters/saml/core-public/pom.xml b/adapters/saml/core-public/pom.xml index 18d53a9ed7e..25374d858e9 100755 --- a/adapters/saml/core-public/pom.xml +++ b/adapters/saml/core-public/pom.xml @@ -32,8 +32,9 @@ - - 11 + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} ${maven.build.timestamp} yyyy-MM-dd HH:mm diff --git a/adapters/saml/core/pom.xml b/adapters/saml/core/pom.xml index 3359c4942e0..e7123cc9d9e 100755 --- a/adapters/saml/core/pom.xml +++ b/adapters/saml/core/pom.xml @@ -31,6 +31,9 @@ Keycloak SAML Client Adapter Core + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} ${maven.build.timestamp} yyyy-MM-dd HH:mm diff --git a/adapters/saml/wildfly-elytron/pom.xml b/adapters/saml/wildfly-elytron/pom.xml index b7af1c76f4f..4ef4358bf04 100755 --- a/adapters/saml/wildfly-elytron/pom.xml +++ b/adapters/saml/wildfly-elytron/pom.xml @@ -30,6 +30,12 @@ Keycloak WildFly Elytron SAML Adapter Keycloak WildFly Elytron SAML Adapter + + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + + org.keycloak diff --git a/adapters/saml/wildfly/wildfly-subsystem/pom.xml b/adapters/saml/wildfly/wildfly-subsystem/pom.xml index 91f68f3ce49..7d9043ffd54 100755 --- a/adapters/saml/wildfly/wildfly-subsystem/pom.xml +++ b/adapters/saml/wildfly/wildfly-subsystem/pom.xml @@ -30,6 +30,12 @@ Keycloak Wildfly SAML Adapter Subsystem jar + + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + + diff --git a/adapters/spi/adapter-spi/pom.xml b/adapters/spi/adapter-spi/pom.xml index cf2bcce6146..7628e805516 100755 --- a/adapters/spi/adapter-spi/pom.xml +++ b/adapters/spi/adapter-spi/pom.xml @@ -31,8 +31,9 @@ Keycloak Adapter SPI - - 11 + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} diff --git a/adapters/spi/jboss-adapter-core/pom.xml b/adapters/spi/jboss-adapter-core/pom.xml index 63b13c07cd6..a7814c0763c 100755 --- a/adapters/spi/jboss-adapter-core/pom.xml +++ b/adapters/spi/jboss-adapter-core/pom.xml @@ -31,8 +31,9 @@ Common JBoss/Wildfly Core Classes - - 11 + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} diff --git a/authz/client/pom.xml b/authz/client/pom.xml index a41bbc8ba13..dd0b140210f 100644 --- a/authz/client/pom.xml +++ b/authz/client/pom.xml @@ -19,9 +19,9 @@ For the use by 3rd party applications, please use `org.keycloak:keycloak-authz-client` module. - 8 - 8 - 8 + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} diff --git a/common/pom.xml b/common/pom.xml index f7d8ae04526..b8b51c212dc 100755 --- a/common/pom.xml +++ b/common/pom.xml @@ -32,9 +32,9 @@ Common library and dependencies shared with server and all adapters - 8 - 8 - 8 + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} ${maven.build.timestamp} yyyy-MM-dd HH:mm diff --git a/core/pom.xml b/core/pom.xml index 0017c67d630..0477e7022f4 100755 --- a/core/pom.xml +++ b/core/pom.xml @@ -32,9 +32,9 @@ jar - 8 - 8 - 8 + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} ${maven.build.timestamp} yyyy-MM-dd HH:mm diff --git a/crypto/default/src/main/java/org/keycloak/crypto/def/BCUserIdentityExtractorProvider.java b/crypto/default/src/main/java/org/keycloak/crypto/def/BCUserIdentityExtractorProvider.java index ac8d435ddec..1a3aaea27cf 100644 --- a/crypto/default/src/main/java/org/keycloak/crypto/def/BCUserIdentityExtractorProvider.java +++ b/crypto/default/src/main/java/org/keycloak/crypto/def/BCUserIdentityExtractorProvider.java @@ -150,7 +150,7 @@ public Object extractUserIdentity(X509Certificate[] certs) { // From Java 21, the 3rd entry can be present with the type-id as String and 4th entry with the value (either in String or byte format). // See javadoc of X509Certificate.getSubjectAlternativeNames in Java 21. For the sake of simplicity, we just ignore those additional String entries and - // always parse it from byte (2nd entry) as we still need to support Java 17 and it is not reliable anyway that entries are present in Java 21. + // always parse it from byte (2nd entry) as it is not reliable that entries are present in Java 21. if (obj instanceof byte[]) { byte[] otherNameBytes = (byte[]) obj; diff --git a/crypto/elytron/src/main/java/org/keycloak/crypto/elytron/ElytronUserIdentityExtractorProvider.java b/crypto/elytron/src/main/java/org/keycloak/crypto/elytron/ElytronUserIdentityExtractorProvider.java index a10d0b17f40..d6cd6250c76 100644 --- a/crypto/elytron/src/main/java/org/keycloak/crypto/elytron/ElytronUserIdentityExtractorProvider.java +++ b/crypto/elytron/src/main/java/org/keycloak/crypto/elytron/ElytronUserIdentityExtractorProvider.java @@ -130,7 +130,7 @@ public Object extractUserIdentity(X509Certificate[] certs) { // From Java 21, the 3rd entry can be present with the type-id as String and 4th entry with the value (either in String or byte format). // See javadoc of X509Certificate.getSubjectAlternativeNames in Java 21. For the sake of simplicity, we just ignore those additional String entries and - // always parse it from byte (2nd entry) as we still need to support Java 17 and it is not reliable anyway that entries are present in Java 21. + // always parse it from byte (2nd entry) as it is not reliable that entries are present in Java 21. if (obj instanceof byte[]) { byte[] otherNameBytes = (byte[]) obj; diff --git a/crypto/fips1402/src/main/java/org/keycloak/crypto/fips/BCFIPSUserIdentityExtractorProvider.java b/crypto/fips1402/src/main/java/org/keycloak/crypto/fips/BCFIPSUserIdentityExtractorProvider.java index f044f496289..2b2acb7d762 100644 --- a/crypto/fips1402/src/main/java/org/keycloak/crypto/fips/BCFIPSUserIdentityExtractorProvider.java +++ b/crypto/fips1402/src/main/java/org/keycloak/crypto/fips/BCFIPSUserIdentityExtractorProvider.java @@ -148,7 +148,7 @@ public Object extractUserIdentity(X509Certificate[] certs) { // From Java 21, the 3rd entry can be present with the type-id as String and 4th entry with the value (either in String or byte format). // See javadoc of X509Certificate.getSubjectAlternativeNames in Java 21. For the sake of simplicity, we just ignore those additional String entries and - // always parse it from byte (2nd entry) as we still need to support Java 17 and it is not reliable anyway that entries are present in Java 21. + // always parse it from byte (2nd entry) as it is not reliable that entries are present in Java 21. if (obj instanceof byte[]) { byte[] otherNameBytes = (byte[]) obj; diff --git a/docs/building.md b/docs/building.md index cf79db50d03..aadc9b1e2d4 100644 --- a/docs/building.md +++ b/docs/building.md @@ -1,6 +1,6 @@ ## Building from source -Ensure you have **JDK 17**, **JDK 21** or **JDK 25** and Git installed +Ensure you have **JDK 21** or **JDK 25** and Git installed java -version git --version diff --git a/docs/documentation/tests/pom.xml b/docs/documentation/tests/pom.xml index 77e8da6c493..315de72f2d2 100644 --- a/docs/documentation/tests/pom.xml +++ b/docs/documentation/tests/pom.xml @@ -3,7 +3,7 @@ 4.0.0 - + --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED diff --git a/docs/documentation/upgrading/topics/changes/changes-27_0_0.adoc b/docs/documentation/upgrading/topics/changes/changes-27_0_0.adoc index 3de0bc2d1a1..bdcc43dc5c8 100644 --- a/docs/documentation/upgrading/topics/changes/changes-27_0_0.adoc +++ b/docs/documentation/upgrading/topics/changes/changes-27_0_0.adoc @@ -4,6 +4,10 @@ Breaking changes are identified as those that might require changes for existing users to their configurations or applications. In minor or patch releases, {project_name} will only introduce breaking changes to fix bugs. +=== OpenJDK 17 support removed + +Keycloak server no longer supports running on OpenJDK 17, and the minimum supported version is now OpenJDK 21. + === Authorization policies with deleted references Role policies with a missing required role and negative role, group, user, client, or client scope policies with unresolved references now evaluate as invalid. diff --git a/docs/guides/high-availability/single-cluster/concepts-threads.adoc b/docs/guides/high-availability/single-cluster/concepts-threads.adoc index e6b756d1a37..a626e6b5e0e 100644 --- a/docs/guides/high-availability/single-cluster/concepts-threads.adoc +++ b/docs/guides/high-availability/single-cluster/concepts-threads.adoc @@ -12,17 +12,6 @@ For a configuration where this is applied, visit <@links.ha id="single-cluster-d [#single-cluster-threads-concept] == Concepts -[#single-cluster-jgroups-communications] -=== JGroups communications - -// remove this paragraph once OpenJDK 17 is no longer supported on the server side. -// https://github.com/keycloak/keycloak/issues/31101 - -JGroups communications, which is used in single-cluster setups for the communication between {project_name} nodes, -benefits from the use of virtual threads which are available in OpenJDK 21 or later when at least four cores are available for {project_name}. -This reduces the memory usage and removes the need to configure thread pool sizes. -For best performance, use OpenJDK {jdk_version_latest} or later. - <#include "/high-availability/partials/concepts/threads.adoc" /> diff --git a/docs/guides/server/fips.adoc b/docs/guides/server/fips.adoc index 664cc79a034..4ef0a12b49d 100644 --- a/docs/guides/server/fips.adoc +++ b/docs/guides/server/fips.adoc @@ -16,7 +16,7 @@ FIPS library is not officially validated with OpenJDK 25. Hence for FIPS 140-2 c To run in FIPS 140-2, {project_name} should run on a FIPS 140-2 enabled system. This requirement usually assumes RHEL or Fedora where FIPS was enabled during installation. See https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html-single/security_hardening/index#assembly_installing-the-system-in-fips-mode_security-hardening[RHEL documentation] for the details. When the system is in FIPS mode, it makes sure that the underlying OpenJDK is in FIPS mode as well and would use only -https://docs.redhat.com/en/documentation/red_hat_build_of_openjdk/17/html/configuring_red_hat_build_of_openjdk_17_on_rhel_with_fips/openjdk-default-fips-configuration#security_providers[FIPS enabled security providers]. +https://docs.redhat.com/en/documentation/red_hat_build_of_openjdk/21/html/configuring_red_hat_build_of_openjdk_21_on_rhel_with_fips/openjdk-default-fips-configuration#security_providers[FIPS enabled security providers]. To check that the system is in FIPS mode, you can check it with the following command from the command line: @@ -160,23 +160,23 @@ always fulfils this requirement. * The bc-fips version 1.0.2.4 deals with the end of the transition period for PKCS 1.5 RSA encryption. Therefore JSON Web Encryption (JWE) with algorithm `RSA1_5` is not allowed in strict mode by default (BC provides the system property `-Dorg.bouncycastle.rsa.allow_pkcs15_enc=true` as backward compatibility option for the moment). `RSA-OAEP` and `RSA-OAEP-256` are still available as before. +[[other_restrictions]] == Other restrictions -To have SAML working, make sure that a `XMLDSig` security provider is available in your security providers. -To have Kerberos working, make sure that a `SunJGSS` security provider is available. In FIPS enabled RHEL 9 in OpenJDK 21, the `XMLDSig` security provider may be already enabled -in the `java.security` by default and the same applies with latest OpenJDK 17. But with older OpenJDK 17, it may not be enabled by default, which means that SAML effectively cannot work. +To have SAML working, make sure that a `XMLDSig` security provider is available in your security providers. In FIPS enabled RHEL 9+ in OpenJDK 21, the `XMLDSig` security provider is enabled by default. -To have SAML working, you can manually add the provider into `JAVA_HOME/conf/security/java.security` into the list fips providers. For example, add the line such as the following in case +To have Kerberos working, make sure that a `SunJGSS` security provider is available. The security provider `SunJGSS` is not yet fully FIPS compliant. Hence it is not recommended to add it to your list of security providers +if you want to be FIPS compliant. The `KERBEROS` feature is disabled by default in {project_name} when it is executed on FIPS platform and when security provider is not +available. Details are in the https://bugzilla.redhat.com/show_bug.cgi?id=2051628[bugzilla]. + +You can manually add providers to the `fips.provider` list in `JAVA_HOME/conf/security/java.security`. For example, add the line such as the following in case that it is not already available in your FIPS security providers: [source] ---- -fips.provider.7=XMLDSig +fips.provider.7=SunJGSS ---- -Adding this security provider should work well. In fact, it is FIPS compliant and is already added by default in the OpenJDK 21 and newer versions of OpenJDK 17. -Details are in the https://bugzilla.redhat.com/show_bug.cgi?id=1940064[bugzilla]. - NOTE: It is recommended to look at `JAVA_HOME/conf/security/java.security` and check all configured providers here and make sure that the number matches. In other words, `fips.provider.7` assumes that there are already 6 providers configured with prefix like `fips.provider.N` in this file. @@ -188,10 +188,6 @@ property above for adding XMLDSig provider into that file. Then start your {proj -Djava.security.properties=/location/to/your/file/kc.java.security ---- -For Kerberos/SPNEGO, the security provider `SunJGSS` is not yet fully FIPS compliant. Hence it is not recommended to add it to your list of security providers -if you want to be FIPS compliant. The `KERBEROS` feature is disabled by default in {project_name} when it is executed on FIPS platform and when security provider is not -available. Details are in the https://bugzilla.redhat.com/show_bug.cgi?id=2051628[bugzilla]. - == Run the CLI on the FIPS host If you want to run Client Registration CLI (`kcreg.sh|bat` script) or Admin CLI (`kcadm.sh|bat` script), @@ -232,7 +228,7 @@ For example in the current directory, you can create sub-directory `files` and a * BC FIPS jar files as described above * Custom keystore file - named for example `keycloak-fips.keystore.bcfks` -* Security file `kc.java.security` with added provider for SAML (Not needed with OpenJDK 21 or newer OpenJDK 17) +* Java security file `kc.java.security` if required (see <>) Then create `Containerfile` in the current directory similar to this: diff --git a/docs/guides/server/supported-configurations.adoc b/docs/guides/server/supported-configurations.adoc index 7b17c863a42..7841a4feb4d 100644 --- a/docs/guides/server/supported-configurations.adoc +++ b/docs/guides/server/supported-configurations.adoc @@ -13,7 +13,6 @@ This {section} provides an overview of the platforms, versions, and configuratio {project_name} requires a Java Virtual Machine (JVM) to run. The following Java Development Kit (JDK) versions are supported: -* OpenJDK 17 (LTS) * OpenJDK 21 (LTS) * OpenJDK 25 (LTS) diff --git a/integration/admin-client-core/pom.xml b/integration/admin-client-core/pom.xml index 2627d1ed78b..8aad368d139 100644 --- a/integration/admin-client-core/pom.xml +++ b/integration/admin-client-core/pom.xml @@ -13,12 +13,6 @@ Keycloak Admin REST Client Core Jackson-agnostic core of the Keycloak Admin REST Client: resource interfaces, token management, and SPI. - - 8 - 8 - 8 - - org.keycloak diff --git a/integration/admin-client-jackson3/pom.xml b/integration/admin-client-jackson3/pom.xml index 5565639ad00..00aeec8e0fc 100644 --- a/integration/admin-client-jackson3/pom.xml +++ b/integration/admin-client-jackson3/pom.xml @@ -16,7 +16,9 @@ - 17 + ${java.adapter.jackson3.minimum.version} + ${java.adapter.jackson3.minimum.version} + ${java.adapter.jackson3.minimum.version} 1.0.0.Final diff --git a/integration/admin-client/pom.xml b/integration/admin-client/pom.xml index e479165c5c2..6b0719c8dda 100755 --- a/integration/admin-client/pom.xml +++ b/integration/admin-client/pom.xml @@ -32,12 +32,6 @@ For the use by 3rd party applications, please use `org.keycloak:keycloak-admin-client` module. - - 8 - 8 - 8 - - org.keycloak diff --git a/integration/client-cli/pom.xml b/integration/client-cli/pom.xml index edd52c9d6a0..e653146e4e2 100644 --- a/integration/client-cli/pom.xml +++ b/integration/client-cli/pom.xml @@ -30,6 +30,12 @@ keycloak-client-cli-parent pom + + ${java.server.minimum.version} + ${java.server.minimum.version} + ${java.server.minimum.version} + + admin-cli client-cli-dist diff --git a/integration/pom.xml b/integration/pom.xml index 2c2a0f9d130..be57713faa3 100755 --- a/integration/pom.xml +++ b/integration/pom.xml @@ -30,6 +30,12 @@ keycloak-integration-parent pom + + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + + admin-client-core admin-client diff --git a/misc/db-compatibility-verifier/pom.xml b/misc/db-compatibility-verifier/pom.xml index 644b596fcdb..177f17a7103 100644 --- a/misc/db-compatibility-verifier/pom.xml +++ b/misc/db-compatibility-verifier/pom.xml @@ -18,12 +18,6 @@ maven-plugin - - 17 - 17 - UTF-8 - - org.apache.maven diff --git a/misc/theme-verifier/pom.xml b/misc/theme-verifier/pom.xml index 694a5a5daf8..0ee3f329f02 100644 --- a/misc/theme-verifier/pom.xml +++ b/misc/theme-verifier/pom.xml @@ -34,12 +34,6 @@ maven-plugin - - 17 - 17 - UTF-8 - - org.apache.maven diff --git a/misc/vuln-to-issues/pom.xml b/misc/vuln-to-issues/pom.xml index 6764811a643..38b0700693a 100644 --- a/misc/vuln-to-issues/pom.xml +++ b/misc/vuln-to-issues/pom.xml @@ -34,12 +34,6 @@ jar - - 17 - 17 - UTF-8 - - com.fasterxml.jackson.core diff --git a/operator/README.md b/operator/README.md index 0e4beaac2d1..e89f6979c1f 100644 --- a/operator/README.md +++ b/operator/README.md @@ -7,11 +7,11 @@ Also see [Operator guides](https://www.keycloak.org/guides#operator) ## Activating the Module -When build from the project root directory, this module is only enabled if the installed JDK is 17 or newer. +When build from the project root directory, this module is only enabled if the installed OpenJDK is 21 or newer. ## Building -Ensure you have JDK 17 (or newer) installed. +Ensure you have OpenJDK 21 (or newer) installed. Build the Docker image with: diff --git a/pom.xml b/pom.xml index 0c726fb2e21..20f6659fd1c 100644 --- a/pom.xml +++ b/pom.xml @@ -29,11 +29,16 @@ pom + + 21 + 11 + 17 + 3.9.8 - 17 - 17 - 17 + ${java.server.minimum.version} + ${java.server.minimum.version} + ${java.server.minimum.version} 3.15.1 999.0.0-SNAPSHOT diff --git a/rest/admin-v2/api/pom.xml b/rest/admin-v2/api/pom.xml index 9c1a2a75242..ad76ea23006 100644 --- a/rest/admin-v2/api/pom.xml +++ b/rest/admin-v2/api/pom.xml @@ -13,9 +13,9 @@ Keycloak Admin API v2 APIs - 11 - 11 - 11 + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} UTF-8 diff --git a/rest/admin-v2/services/pom.xml b/rest/admin-v2/services/pom.xml index b236922830b..d0b6ae487c0 100644 --- a/rest/admin-v2/services/pom.xml +++ b/rest/admin-v2/services/pom.xml @@ -13,10 +13,6 @@ Keycloak Admin API v2 Services - 17 - 17 - 17 - UTF-8 4.3.1 diff --git a/saml-core-api/pom.xml b/saml-core-api/pom.xml index f3c2c8914d0..7456108708b 100755 --- a/saml-core-api/pom.xml +++ b/saml-core-api/pom.xml @@ -31,8 +31,9 @@ Keycloak SAML Core Public API - - 11 + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} ${maven.build.timestamp} yyyy-MM-dd HH:mm diff --git a/saml-core/pom.xml b/saml-core/pom.xml index 562d06ac807..3bf309d93f5 100755 --- a/saml-core/pom.xml +++ b/saml-core/pom.xml @@ -31,8 +31,9 @@ Keycloak SAML Core - - 11 + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} + ${java.adapter.minimum.version} ${maven.build.timestamp} true yyyy-MM-dd HH:mm diff --git a/testsuite/integration-arquillian/servers/auth-server/common/fips/kc.java.security b/testsuite/integration-arquillian/servers/auth-server/common/fips/kc.java.security deleted file mode 100644 index a4feb9d0f06..00000000000 --- a/testsuite/integration-arquillian/servers/auth-server/common/fips/kc.java.security +++ /dev/null @@ -1,13 +0,0 @@ -# Configuration file just with the security properties, which are supposed to be overridden. The properties, which are not mentioned in this file, -# are inherited from the default java.security file bundled within the Java distribution. -# -# NOTE: Each property is specified 2 times. This is so the same file can be used on both FIPS based RHEL host (which uses "fips" prefixed properties by default) -# and the non-fips based (EG. when running the tests on GH actions) - -# -# Security providers used when global crypto-policies are set to FIPS (Usually it is used when FIPS enabled on system/JVM level) -# -# NOTE: This list of providers is needed to be override just because XMLDSig provider is not yet present on the OpenJDK 17 by default on the RHEL FIPS host on OpenJDK 17.0.3. -# However once it is present, there won't be a need to override this and this part can be fully commented/removed. -# TODO: Comment/remove this once https://bugzilla.redhat.com/show_bug.cgi?id=1940064 is fixed and OpenJDK 17 updated to corresponding version where XMLDSig is available by default -# diff --git a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/containers/AbstractQuarkusDeployableContainer.java b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/containers/AbstractQuarkusDeployableContainer.java index 91f96e3bbc3..506d624c18c 100644 --- a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/containers/AbstractQuarkusDeployableContainer.java +++ b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/containers/AbstractQuarkusDeployableContainer.java @@ -447,8 +447,6 @@ private void addFipsOptions(List commands) { } commands.add("--log-level=INFO,org.keycloak.common.crypto:TRACE,org.keycloak.crypto:TRACE,org.keycloak.truststore:TRACE"); - - configuration.appendJavaOpts("-Djava.security.properties=" + System.getProperty("auth.server.java.security.file")); } private Collection getDefaultFeatures() { diff --git a/testsuite/integration-arquillian/tests/pom.xml b/testsuite/integration-arquillian/tests/pom.xml index 1f921705907..57eb7cc544c 100644 --- a/testsuite/integration-arquillian/tests/pom.xml +++ b/testsuite/integration-arquillian/tests/pom.xml @@ -428,7 +428,6 @@ ${auth.server.keystore} ${auth.server.keystore.password} ${auth.server.keystore.type} - ${auth.server.java.security.file} ${auth.server.jvm.args.extra} ${auth.server.jgroups.mtls} @@ -1418,8 +1417,6 @@ ${auth.server.keystore.type} ${auth.server.config.dir}/keycloak-fips.truststore.${auth.server.truststore.type} passwordpassword - - ${auth.server.config.dir}/kc.java.security @@ -1665,7 +1662,7 @@ compile - + org.openjdk.nashorn nashorn-core