Skip to content

Conversation

@danhermann
Copy link
Contributor

The root cause of this bug was the replacement of the wildcard expression in the request's indices member with the actual data streams that expression matched. In the case that the authz code had already replaced it with the *,-* token that means "no authorized data streams", the expression would be evaluated again, would match no data streams, and would set the indices member to an empty array. An empty array is equivalent to *, so all data streams would then be deleted.

Fixes #78422

Backport of #78463

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Sep 30, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@danhermann danhermann merged commit f965c85 into elastic:7.x Sep 30, 2021
@danhermann danhermann deleted the backport_7x_78463_ds_wildcard branch September 30, 2021 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport >bug :Data Management/Data streams Data streams and their lifecycles Team:Data Management Meta label for data/management team v7.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants