Skip to content

Conversation

@bizybot
Copy link
Contributor

@bizybot bizybot commented Apr 17, 2019

When the same alias points to multiple indices we can write to only one index
with is_write_index value true. The special handling in case of the put
mapping request(to resolve authorized indices) has a check on indices size
for a concrete index. If multiple indices existed then it marked the request
as unauthorized.

The check has been modified to consider write index flag and only when the
requested index matches with the one with write index alias, the alias is considered
for authorization.

Closes #40831

…d indices (elastic#40834)

When the same alias points to multiple indices we can write to only one index
with `is_write_index` value `true`. The special handling in case of the put
mapping request(to resolve authorized indices) has a check on indices size
for a concrete index. If multiple indices existed then it marked the request
as unauthorized.

The check has been modified to consider write index flag and only when the
requested index matches with the one with write index alias, the alias is considered
for authorization.

Closes elastic#40831
@bizybot bizybot changed the title put mapping authorization for alias with write-index and multiple read indices (#40834) [Backport] put mapping authorization for alias with write-index and multiple read indices (#40834) Apr 17, 2019
@bizybot bizybot merged commit 0d1178f into elastic:7.x Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant