mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
basic auth for datanode rest api if security enabled (#16446)
* basic auth for datanode rest api if security enabled * added changelog * adapted to master changes * configurable rest admin username in datanode --------- Co-authored-by: Jan Heise <jan.heise@graylog.com>
This commit is contained in:
@@ -133,6 +133,9 @@ public class Configuration extends BaseConfiguration {
|
||||
@Parameter(value = "stale_leader_timeout", validators = PositiveIntegerValidator.class)
|
||||
private Integer staleLeaderTimeout = 2000;
|
||||
|
||||
@Parameter(value = "root_password_sha2")
|
||||
private String rootPasswordSha2;
|
||||
|
||||
@Parameter(value = "user_password_default_algorithm")
|
||||
private String userPasswordDefaultAlgorithm = "bcrypt";
|
||||
|
||||
@@ -577,4 +580,8 @@ public class Configuration extends BaseConfiguration {
|
||||
public String getHostname() {
|
||||
return hostname;
|
||||
}
|
||||
|
||||
public String getRootPasswordSha2() {
|
||||
return rootPasswordSha2;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user