From e06194948889285bc0b143b73fb37b0fa6f35375 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 16 Oct 2024 22:47:07 +1100 Subject: [PATCH] [8.x] Not allow # in index template name (#195776) (#196485) # Backport This will backport the following commits from `main` to `8.x`: - [Not allow # in index template name (#195776)](https://github.com/elastic/kibana/pull/195776) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Sonia Sanz Vivas --- .../index_management/common/constants/invalid_characters.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/index_management/common/constants/invalid_characters.ts b/x-pack/plugins/index_management/common/constants/invalid_characters.ts index 311de74f54733..e3a66477d71ae 100644 --- a/x-pack/plugins/index_management/common/constants/invalid_characters.ts +++ b/x-pack/plugins/index_management/common/constants/invalid_characters.ts @@ -7,4 +7,4 @@ export const INVALID_INDEX_PATTERN_CHARS = ['\\', '/', '?', '"', '<', '>', '|']; -export const INVALID_TEMPLATE_NAME_CHARS = ['"', '*', '\\', ',', '?']; +export const INVALID_TEMPLATE_NAME_CHARS = ['"', '*', '\\', ',', '?', '#'];