-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Security, Aliases and Closed indices confuse open-only wildcard expansion #29948
Comments
Original comment by @gmoskovicz: @jaymode i see that the PR that fixes this doesn't have a version label. When is this going to be added ? Is this fix available in any 5.x versions? |
Original comment by @jasontedor: @gmoskovicz That PR was closed without being merged anywhere, that's why there are no version labels and that's why this issue is still open. |
Original comment by @gmoskovicz: @jasontedor 🤕 thanks for that i missed that part. |
@javanna that's correct. Thanks for the ping, I am closing it. |
Original comment by @bleskes:
X-pack has a security away wild expanses logic. When resolving requests which expand wild cards to open indices (almost all monitoring/search requests) if the cluster has a closed index which has an alias.
as far as I can tell this is present in 5.4 & master. Looking at it with Jay, the culprit is a combination of AuthorizedIndices expanding empty index lists to include aliases, the logic in
IndicesAndAliasesResolver#isIndexVisible
that doesn't remove aliases if they point to closed indices and the normal logic in ES that explodes if a request asks for an index/alias that is closed.The text was updated successfully, but these errors were encountered: