Make GetInferenceFieldsAction an Indices Action#140399
Merged
Mikep86 merged 40 commits intoelastic:mainfrom Jan 14, 2026
Merged
Make GetInferenceFieldsAction an Indices Action#140399Mikep86 merged 40 commits intoelastic:mainfrom
Mikep86 merged 40 commits intoelastic:mainfrom
Conversation
When inference module is loaded and remote clusters use API key-based authentication, cross-cluster searches with ccs_minimize_roundtrips=false fail because GetInferenceFieldsAction was executed as internal user _xpack, which is rejected by CrossClusterAccessTransportInterceptor. Fix: - Use system context (SystemUser) for remote inference field requests, following CCR's pattern in CcrLicenseChecker.systemClient() - Add GetInferenceFieldsAction to cross_cluster_search privilege
RCS 1.0 (certificate-based auth) enforces local SystemPrivilege checks, unlike RCS 2.0 which bypasses them for system context. Add the action to allow inference CCS query rewrite with both authentication modes. Also rename test role to avoid conflict with existing remote_search role.
Collaborator
|
Pinging @elastic/es-security (Team:Security) |
Collaborator
|
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
Collaborator
|
Hi @Mikep86, I've created a changelog YAML for you. |
Contributor
Author
|
@elasticmachine update branch |
Contributor
Author
|
@elasticmachine update branch |
Collaborator
|
There are no new commits on the base branch. |
Contributor
Author
|
@elasticmachine update branch |
n1v0lg
approved these changes
Jan 13, 2026
...ain/java/org/elasticsearch/xpack/core/inference/action/GetInferenceFieldsInternalAction.java
Show resolved
Hide resolved
...ain/java/org/elasticsearch/xpack/core/inference/action/GetInferenceFieldsInternalAction.java
Show resolved
Hide resolved
Collaborator
💔 Backport failedThe backport operation could not be completed due to the following error: You can use sqren/backport to manually backport by running |
Contributor
Author
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Mikep86
added a commit
to Mikep86/elasticsearch
that referenced
this pull request
Jan 14, 2026
Makes GetInferenceFieldsAction an indices action dependent on the indices read permission. This allows the action to be executed by users with read access to the indices queried. --------- Co-authored-by: Elliot Barlas <elliot.barlas@elastic.co> (cherry picked from commit b7e695c) # Conflicts: # server/src/main/resources/transport/upper_bounds/9.4.csv
elasticsearchmachine
pushed a commit
that referenced
this pull request
Jan 15, 2026
) * Make GetInferenceFieldsAction an Indices Action (#140399) Makes GetInferenceFieldsAction an indices action dependent on the indices read permission. This allows the action to be executed by users with read access to the indices queried. --------- Co-authored-by: Elliot Barlas <elliot.barlas@elastic.co> (cherry picked from commit b7e695c) # Conflicts: # server/src/main/resources/transport/upper_bounds/9.4.csv * Unmute tests * add 9.4.csv
spinscale
pushed a commit
to spinscale/elasticsearch
that referenced
this pull request
Jan 21, 2026
Makes GetInferenceFieldsAction an indices action dependent on the indices read permission. This allows the action to be executed by users with read access to the indices queried. --------- Co-authored-by: Elliot Barlas <elliot.barlas@elastic.co>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes
GetInferenceFieldsActionan indices action dependent on the indicesreadpermission. This allows the action to be executed by users with read access to the indices queried.Fixes #140193