mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
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:
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user