Skip to content

Commit

Permalink
Replacing hard-coded password with randomly generated string
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Toepker <toepkerd@amazon.com>
  • Loading branch information
toepkerd-zz committed Nov 29, 2024
1 parent 189b9e5 commit 10b60fa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {

Expand Down

0 comments on commit 10b60fa

Please sign in to comment.