Whitelist allowed chars in index template creation #25645
Labels
:Data Management/Indices APIs
APIs to create and manage indices and templates
help wanted
adoptme
Team:Data Management
Meta label for data/management team
Currently (on 5.5.0) one can create arbitrary index template names, also
*
.The problem however is, that by using
Regex.simpleMatch
when determining template names, we always assume, that*
is a regex character and thus the above template can be deleted, but also deletes all other templates.Might make sense to create a whitelist of allowed characters for index template names, i.e.
[a-z0-9-_]
or something.The text was updated successfully, but these errors were encountered: