From f5764ef503d96bcf8e286fd7e00551bd131bf12f Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Mon, 16 Dec 2024 16:48:48 +0100 Subject: [PATCH] Allow dot-prefix agentless --- .../java/org/elasticsearch/validation/DotPrefixValidator.java | 2 ++ .../org/elasticsearch/validation/DotPrefixValidatorTests.java | 1 + 2 files changed, 3 insertions(+) diff --git a/modules/dot-prefix-validation/src/main/java/org/elasticsearch/validation/DotPrefixValidator.java b/modules/dot-prefix-validation/src/main/java/org/elasticsearch/validation/DotPrefixValidator.java index 7f65bbb6937d9..40616e3874e75 100644 --- a/modules/dot-prefix-validation/src/main/java/org/elasticsearch/validation/DotPrefixValidator.java +++ b/modules/dot-prefix-validation/src/main/java/org/elasticsearch/validation/DotPrefixValidator.java @@ -57,6 +57,7 @@ public abstract class DotPrefixValidator implements MappedActionFil * to use an internal origin for the client. These are shorter-term * workarounds until that work can be completed. * + * .agentless-* is used by stateful agentless integrations * .elastic-connectors-* is used by enterprise search * .ml-* is used by ML * .slo-observability-* is used by Observability @@ -70,6 +71,7 @@ public abstract class DotPrefixValidator implements MappedActionFil public static Setting> IGNORED_INDEX_PATTERNS_SETTING = Setting.stringListSetting( "cluster.indices.validate_ignored_dot_patterns", List.of( + "\\.agentless-.+", "\\.ml-state-\\d+", "\\.slo-observability\\.sli-v\\d+.*", "\\.slo-observability\\.summary-v\\d+.*", diff --git a/modules/dot-prefix-validation/src/test/java/org/elasticsearch/validation/DotPrefixValidatorTests.java b/modules/dot-prefix-validation/src/test/java/org/elasticsearch/validation/DotPrefixValidatorTests.java index 6953f1cfc63df..e9bea042c9a5b 100644 --- a/modules/dot-prefix-validation/src/test/java/org/elasticsearch/validation/DotPrefixValidatorTests.java +++ b/modules/dot-prefix-validation/src/test/java/org/elasticsearch/validation/DotPrefixValidatorTests.java @@ -67,6 +67,7 @@ public void testValidation() { // Test ignored patterns nonOpV.validateIndices(Set.of(".ml-state-21309")); + nonOpV.validateIndices(Set.of(".agentless-state-httpjson-okta.system-384301a9-f0e7-4f76-9656-f5a9330932e7")); nonOpV.validateIndices(Set.of(">.ml-state-21309>")); nonOpV.validateIndices(Set.of(".slo-observability.sli-v2")); nonOpV.validateIndices(Set.of(".slo-observability.sli-v2.3"));