Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] Validate V2 templates more strictly (#56170) #56226

Merged
merged 1 commit into from
May 5, 2020

Conversation

dakrone
Copy link
Member

@dakrone dakrone commented May 5, 2020

Backports the following commits to 7.x:

This commit changes the validation for V2 index and component templates to re-use the same
validation that V1 templates used. This includes things like invalid template names, index patterns,
etc.

This also adds validation that template names do not contain `*` and index patterns do not contain
`:` (index names can't contain this regardless).

Supercedes elastic#53970
Relates to elastic#53101
Resolves elastic#43737
Resolves elastic#46045
@dakrone dakrone added backport :Data Management/Indices APIs APIs to create and manage indices and templates v7.8.0 labels May 5, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Indices APIs)

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label May 5, 2020
@dakrone dakrone merged commit b77c0bb into elastic:7.x May 5, 2020
@dakrone dakrone deleted the backport/7.x/pr-56170 branch May 5, 2020 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Data Management/Indices APIs APIs to create and manage indices and templates Team:Data Management Meta label for data/management team v7.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants