Skip to content

Commit

Permalink
Replacing hard-coded password with randomly generated string (#1420)
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Toepker <[email protected]>
Co-authored-by: Dennis Toepker <[email protected]>
  • Loading branch information
toepkerd and toepkerd-zz authored Dec 3, 2024
1 parent 189b9e5 commit 6dc86c6
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 6dc86c6

Please sign in to comment.