mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
DataNode: Setting the remote reindexing allowlist separately (#18805)
* setting the whitelist separate from the host that we execute the command against. needs to be two settings because the whitelist can contain wildcards * adding the whitelist to the UI * fix import, fix text * fix test * changing whitelist -> allowlist * fixing merge conflicts
This commit is contained in:
@@ -109,7 +109,7 @@ public class OpensearchProcessService extends AbstractIdleService implements Pro
|
||||
switch (event.action()) {
|
||||
case ADD -> {
|
||||
this.process.stop();
|
||||
configure(Map.of("reindex.remote.whitelist", event.host())); // , "action.auto_create_index", "false"));
|
||||
configure(Map.of("reindex.remote.allowlist", event.allowlist())); // , "action.auto_create_index", "false"));
|
||||
this.process.start();
|
||||
}
|
||||
case REMOVE -> {
|
||||
@@ -165,7 +165,7 @@ public class OpensearchProcessService extends AbstractIdleService implements Pro
|
||||
this.configure(Map.of());
|
||||
}
|
||||
|
||||
private void configure(Map<String, String> additionalConfig) {
|
||||
private void configure(Map<String, Object> additionalConfig) {
|
||||
final OpensearchConfiguration original = configurationProvider.get();
|
||||
|
||||
final var finalAdditionalConfig = new HashMap<String, Object>();
|
||||
|
||||
Reference in New Issue
Block a user