Skip to content

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

Merged
dakrone merged 1 commit intoelastic:7.xfrom
dakrone:backport/7.x/pr-56170
May 5, 2020
Merged

[7.x] Validate V2 templates more strictly (#56170)#56226
dakrone merged 1 commit intoelastic:7.xfrom
dakrone:backport/7.x/pr-56170

Conversation

@dakrone
Copy link
Copy Markdown
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 DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. v7.8.0 labels May 5, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. 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 DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v7.8.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants