-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Permissions issue for the resolve_index api #86977
Comments
Pinging @elastic/es-data-management (Team:Data Management) |
This is already discussed this with the es-security team and they had agreed to add the action to the |
Are you sure it is a 500 error? It should be 403. A 500 error for this failure seems to be a bug on its own. |
based on previous discussion, it's the api at the ui level that returns a 500, ES returns 403. |
This commit allows the index "read" permission to also allow using the resolve index Action. Resolves elastic#86977
This commit allows the index "read" permission to also allow using the resolve index Action. Resolves #86977
…87052) This commit allows the index "read" permission to also allow using the resolve index Action. Resolves elastic#86977
Elasticsearch Version
latest
Installed Plugins
No response
Java Version
18.0.1.1
OS Version
Linux 5.17.6-1-MANJARO
Problem Description
We created a
hasData
service which utilizes theresolve_index
api to check whether ES data exists. When making a call tointernal/index-pattern-management/resolve_index
to query whether data exists or not, in certain scenarios it fails with a 500 Internal Server Error.The ES error being -
The scenarios being:
Scenario one:
read
access to 1 of the indices, but not to the other twoScenario two:
read
access to the index, butno view_index_metadata
privileges.Original issue ticket in Kibana for reference - #132478
Steps to Reproduce
The user has
read
access to the index, butno view_index_metadata
privileges.The api fails with a 500 due to the missing permissions.
Logs (if relevant)
security_exception: [security_exception] Reason: action [indices:admin/resolve/index] is unauthorized for user [test_user] with roles [test_dashboard_user,reporting_user], this
action is granted by the index privileges [view_index_metadata,manage,all]
The text was updated successfully, but these errors were encountered: