Skip to content

Commit

Permalink
[Test] increase password length when in FIPS mode for SamlAuthIT (#66976
Browse files Browse the repository at this point in the history
) (#66980)

The native user password must be longer than 14 chars when JVM is in FIPS mode.
  • Loading branch information
ywangd authored Jan 5, 2021
1 parent 4e7dd71 commit dad3396
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void setupNativeUser() throws IOException {
final Map<String, Object> body = MapBuilder.<String, Object>newMapBuilder()
.put("roles", Collections.singletonList("kibana_admin"))
.put("full_name", "Thor Son of Odin")
.put("password", randomAlphaOfLengthBetween(8, 16))
.put("password", randomAlphaOfLengthBetween(inFipsJvm() ? 14 : 8, 16))
.put("metadata", Collections.singletonMap("is_native", true))
.map();
final Response response = adminClient().performRequest(buildRequest("PUT", "/_security/user/thor", body));
Expand Down

0 comments on commit dad3396

Please sign in to comment.