mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
Insecure startup of OS in datanode only if explicitly configured (#16108)
* Insecure startup of OS in datanode only if explicitly configured * Data node can be started without starting OS, just to be discovered by pre-flight mode
This commit is contained in:
@@ -61,6 +61,9 @@ public class Configuration extends BaseConfiguration {
|
||||
@Parameter(value = "installation_source", validator = StringNotBlankValidator.class)
|
||||
private String installationSource = "unknown";
|
||||
|
||||
@Parameter(value = "insecure_startup")
|
||||
private boolean insecureStartup = false;
|
||||
|
||||
@Parameter(value = "skip_preflight_checks")
|
||||
private boolean skipPreflightChecks = false;
|
||||
|
||||
@@ -129,6 +132,10 @@ public class Configuration extends BaseConfiguration {
|
||||
@Parameter(value = "user_password_bcrypt_salt_size", validators = PositiveIntegerValidator.class)
|
||||
private int userPasswordBCryptSaltSize = 10;
|
||||
|
||||
public boolean isInsecureStartup() {
|
||||
return insecureStartup;
|
||||
}
|
||||
|
||||
public Integer getStaleLeaderTimeout() {
|
||||
return staleLeaderTimeout;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user