mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 01:22:26 -04:00
When security is enabled and a IndicesRequest.SingleIndexNoWildcards request uses a wildcard for remote clusters that does not match (for example "*:myindex" when there are no configured remotes), RBACEngine#authorizeIndexAction throws an assert error because it is given an empty list of indices. This fix checks the IndicesRequest.SingleIndexNoWildcards special case in IndicesAndAliasesResolver.resolveIndicesAndAliasesWithoutWildcards and if splitLocalAndRemoteIndexNames filters out all indexes due to a non-matching remote cluster wildcard, that code now just throws the NoSuchRemoteClusterException (which is what RBACEngine does when asserts are disabled). This handles painless/execute requests to remote clusters. Added note to painless/execute API docs about wildcards not being allowed |
||
---|---|---|
.. | ||
painless-api-reference | ||
painless-contexts | ||
painless-guide | ||
painless-lang-spec | ||
index.asciidoc | ||
painless-api-reference.asciidoc | ||
painless-contexts.asciidoc | ||
painless-guide.asciidoc | ||
painless-lang-spec.asciidoc | ||
redirects.asciidoc |