Skip to content

[ML] Yaml test that runs inference as a non-admin user #128363

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

Merged
merged 3 commits into from
May 23, 2025

Conversation

davidkyle
Copy link
Member

@davidkyle davidkyle commented May 23, 2025

Adds a test for the fix in #128327

Run the test with this command

./gradlew :x-pack:plugin:inference:qa:inference-with-security:yamlRestTest 

Before #128327 the test would fail because the non admin users cannot call cluster:internal/xpack/inference:

Failed to execute phase [rank-feature], Computing updated ranks for results failed\n\t\t... 11 more\n\tCaused by: 

org.elasticsearch.ElasticsearchSecurityException: action [cluster:internal/xpack/inference] is unauthorized for user [inference_user] with effective roles [monitor_only_user], this action is granted by the cluster privileges [manage,all]

@davidkyle davidkyle added >test Issues or PRs that are addressing/adding tests :ml Machine learning auto-backport Automatically create backport pull requests when merged v8.19.0 labels May 23, 2025
@davidkyle davidkyle marked this pull request as ready for review May 23, 2025 10:48
@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label May 23, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@davidkyle davidkyle merged commit 5b3a4f3 into elastic:main May 23, 2025
18 checks passed
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :ml Machine learning Team:ML Meta label for the ML team >test Issues or PRs that are addressing/adding tests v8.19.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants