From 6dc86c6e30caf72ec4c27f3d32ac21015e0b235f Mon Sep 17 00:00:00 2001 From: toepkerd <120457569+toepkerd@users.noreply.github.com> Date: Tue, 3 Dec 2024 12:41:04 -0800 Subject: [PATCH] Replacing hard-coded password with randomly generated string (#1420) Signed-off-by: Dennis Toepker Co-authored-by: Dennis Toepker --- .../securityanalytics/SecurityAnalyticsRestTestCase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/opensearch/securityanalytics/SecurityAnalyticsRestTestCase.java b/src/test/java/org/opensearch/securityanalytics/SecurityAnalyticsRestTestCase.java index 07c062c2e..67dacdf61 100644 --- a/src/test/java/org/opensearch/securityanalytics/SecurityAnalyticsRestTestCase.java +++ b/src/test/java/org/opensearch/securityanalytics/SecurityAnalyticsRestTestCase.java @@ -4,6 +4,7 @@ */ package org.opensearch.securityanalytics; +import org.apache.commons.lang3.RandomStringUtils; import org.apache.hc.core5.http.ContentType; import org.apache.hc.core5.http.Header; import org.apache.hc.core5.http.HttpEntity; @@ -125,7 +126,7 @@ public class SecurityAnalyticsRestTestCase extends OpenSearchRestTestCase { - protected String password = "V%&ymu35#wbQaUo7"; + protected String password = RandomStringUtils.randomAlphanumeric(16); protected void createRuleTopicIndex(String detectorType, String additionalMapping) throws IOException {