Skip to content

Commit bd4c6d0

Browse files
committed
Disable FIPS mode (default) for security manager
1 parent 9c7224b commit bd4c6d0

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

opensearch/security-plugin/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ cd "$(/stackable/patchable --images-repo-root=src checkout opensearch/security-p
1818

1919
# Create snapshot of the source code including custom patches
2020
tar -czf /stackable/opensearch-security-${PRODUCT_VERSION}-stackable${RELEASE_VERSION}-src.tar.gz .
21-
./gradlew clean assemble -Dbuild.snapshot=false
21+
22+
# Starting with version 3.6.0.0, the security plugin defaults to crypto.standard=FIPS-140-3 (gradle.properties),
23+
# which makes the build treat the BouncyCastle FIPS jars as compileOnly, expecting the OpenSearch core
24+
# distribution to provide them in lib/.
25+
# The Stackable OpenSearch build is not a FIPS build, so it does not ship those jars, and the plugin fails
26+
# at startup with NoClassDefFoundError: org/bouncycastle/jcajce/provider/BouncyCastleFipsProvider.
27+
# Build in non-FIPS mode (-Pcrypto.standard=any-supported) so the plugin bundles its own BouncyCastle jars.
28+
./gradlew clean assemble -Dbuild.snapshot=false -Pcrypto.standard=any-supported
2229
./gradlew cyclonedxBom --warning-mode=summary -Dbuild.snapshot=false
2330
EOF
2431

0 commit comments

Comments
 (0)