From 5128940612578cba90158503457bf4e8d13a87a7 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Wed, 28 Oct 2026 08:54:19 +0100 Subject: [PATCH] Disable X25519MLKEM768 for Maven in FIPS tests (#54399) Closes #54398 Signed-off-by: stianst (cherry picked from commit cfe4a411c51ed8ac95490c4a8b7723989f0b8164) --- .github/scripts/run-fips-it.sh | 2 ++ .github/scripts/run-fips-ut.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/scripts/run-fips-it.sh b/.github/scripts/run-fips-it.sh index ba91afa1448..cb4497feff3 100755 --- a/.github/scripts/run-fips-it.sh +++ b/.github/scripts/run-fips-it.sh @@ -24,6 +24,8 @@ if [ $? -ne 0 ]; then fi echo "Tests: $TESTS" export JAVA_HOME="/etc/alternatives/java_sdk_${JAVA_VERSION}" +# JDK 25.0.5+ offers the X25519MLKEM768 hybrid TLS group, which fails in FIPS mode when resolving from Maven Central +export MAVEN_OPTS="$MAVEN_OPTS -Djdk.tls.namedGroups=secp256r1,secp384r1,secp521r1,x25519,ffdhe2048,ffdhe3072" set -o pipefail # Build adapter distributions diff --git a/.github/scripts/run-fips-ut.sh b/.github/scripts/run-fips-ut.sh index 33082e768e7..d485983a3c8 100755 --- a/.github/scripts/run-fips-ut.sh +++ b/.github/scripts/run-fips-ut.sh @@ -10,6 +10,8 @@ if [ $? -ne 0 ]; then exit 1 fi export JAVA_HOME="/etc/alternatives/java_sdk_${JAVA_VERSION}" +# JDK 25.0.5+ offers the X25519MLKEM768 hybrid TLS group, which fails in FIPS mode when resolving from Maven Central +export MAVEN_OPTS="$MAVEN_OPTS -Djdk.tls.namedGroups=secp256r1,secp384r1,secp521r1,x25519,ffdhe2048,ffdhe3072" # Build all dependent modules ./mvnw install -nsu -B -am -pl crypto/default,crypto/fips1402 -DskipTests