Skip to content

Commit 5bd2f13

Browse files
authored
In FIPS/TestClusters, set hasher to pbkdf2_stretch (elastic#66841)
When running tests in FIPS mode, automatically set the password hasher to pbkdf2_stretch rather than relying on the default (which is bcrypt). This is only relevant to the 7.x series, as this setting has a FIPS specific default when run in FIPS mode on 8.0+ Resolves: elastic#66819
1 parent 274d728 commit 5bd2f13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gradle/fips.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ if (BuildParams.inFipsJvm) {
7272
systemProperty 'org.bouncycastle.fips.approved_only', 'true'
7373
setting 'xpack.security.fips_mode.enabled', 'true'
7474
setting 'xpack.license.self_generated.type', 'trial'
75+
setting 'xpack.security.authc.password_hashing.algorithm', 'pbkdf2_stretch'
7576
keystorePassword 'keystore-password'
7677
}
7778
}

0 commit comments

Comments
 (0)