Skip to content

Conversation

@pawankartik-elastic
Copy link
Contributor

Backport

This will backport the following commits from main to 9.0:

Questions ?

Please refer to the Backport tool documentation

…ster name (elastic#128610)

The auth code injects the pattern `["*", "-*"]` to specify that it's okay to return an empty response because user's patterns did not match any remote clusters. However, we fail to recognise this specific pattern and `groupIndices()` eventually associates it with the local cluster. This causes Elasticsearch to fallback to the local cluster unknowingly and return its details back to the user even though the user hasn't requested any info about the local cluster.

(cherry picked from commit 3f1e1b3)

# Conflicts:
#	server/src/main/java/org/elasticsearch/transport/RemoteClusterService.java
@pawankartik-elastic pawankartik-elastic added >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/CCS labels Jun 3, 2025
@pawankartik-elastic pawankartik-elastic merged commit 7a6595f into elastic:9.0 Jun 4, 2025
17 checks passed
@pawankartik-elastic pawankartik-elastic deleted the backport/9.0/pr-128610 branch June 4, 2025 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Search Foundations/CCS Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.0.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants