Datanode: ensure password_secret meets length requirement (#17719)

* ensure password_secret meets length requirement

* update CL

* update test

* adjusted wording so it references the data node

---------

Co-authored-by: Jan Heise <jan.heise@graylog.com>
This commit is contained in:
Patrick Mann
2023-12-15 20:53:32 +01:00
committed by GitHub
parent be7df67566
commit a247edca65
3 changed files with 8 additions and 5 deletions

View File

@@ -288,8 +288,8 @@ public class Configuration extends BaseConfiguration {
@ValidatorMethod
@SuppressWarnings("unused")
public void validatePasswordSecret() throws ValidationException {
if (passwordSecret == null || passwordSecret.length() < 16) {
throw new ValidationException("The minimum length for \"password_secret\" is 16 characters.");
if (passwordSecret == null || passwordSecret.length() < 64) {
throw new ValidationException("The minimum length for \"password_secret\" is 64 characters.");
}
}