elasticsearch/docs/painless
Michael Peterson 335c03afa9
Handle unmatching remote cluster wildcards properly for IndicesRequest.SingleIndexNoWildcards requests (#109185)
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
2024-06-10 08:56:40 -04:00
..
painless-api-reference Remove JodaCompatibleZonedDateTime (#78417) 2021-09-29 13:01:40 -07:00
painless-contexts [DOCS] Fix painless context _id variable (#101316) 2023-11-01 11:31:03 -07:00
painless-guide Handle unmatching remote cluster wildcards properly for IndicesRequest.SingleIndexNoWildcards requests (#109185) 2024-06-10 08:56:40 -04:00
painless-lang-spec [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
index.asciidoc Reorganize Painless doc structure (#42303) 2019-05-21 13:47:47 -04:00
painless-api-reference.asciidoc [DOCS] Fixes terminology in the Painless docs (#58179) 2020-06-16 10:44:30 -07:00
painless-contexts.asciidoc [DOCS] Enhance the seats dataset for Painless (#68008) 2021-01-26 14:37:31 -05:00
painless-guide.asciidoc [DOCS] Fixes terminology in the Painless docs (#58179) 2020-06-16 10:44:30 -07:00
painless-lang-spec.asciidoc [DOCS] http -> https, remove outdated plugin docs (#60380) 2020-07-31 15:58:38 -04:00
redirects.asciidoc [DOCS] Add redirect for painless examples anchor 2019-06-25 12:37:21 -04:00