You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the bug?
The GET _all operation does not work as expected when do_not_fail_on_forbidden: true is set. A permission error is returned instead of a filtered list of results.
How can one reproduce the bug?
Steps to reproduce the behavior:
set do_not_fail_on_forbidden: true
create read-only user and role on some index pattern (here: test-read*) as follows
{
"error": {
"root_cause": [
{
"type": "security_exception",
"reason": "no permissions for [indices:admin/get] and User [name=USER_RO, backend_roles=[ROLE_RO], requestedTenant=]"
}
],
"type": "security_exception",
"reason": "no permissions for [indices:admin/get] and User [name=USER_RO, backend_roles=[ROLE_RO], requestedTenant=]"
},
"status": 403
}
What is the expected behavior?
I expected to see a filtered result containing only the info for all indices matching the pattern test-read*, since the user/role has the indices:admin/getprivilege for them
The text was updated successfully, but these errors were encountered:
buddemat
added
bug
Something isn't working
untriaged
Require the attention of the repository maintainers and may need to be prioritized
labels
Feb 17, 2025
cwperks
added
triaged
Issues labeled as 'Triaged' have been reviewed and are deemed actionable.
and removed
untriaged
Require the attention of the repository maintainers and may need to be prioritized
labels
Feb 17, 2025
What is the bug?
The
GET _all
operation does not work as expected whendo_not_fail_on_forbidden: true
is set. A permission error is returned instead of a filtered list of results.How can one reproduce the bug?
Steps to reproduce the behavior:
do_not_fail_on_forbidden: true
test-read*
) as followsGET _all
with said userWhat is the expected behavior?
I expected to see a filtered result containing only the info for all indices matching the pattern
test-read*
, since the user/role has theindices:admin/get
privilege for themWhat is your host/environment?
The text was updated successfully, but these errors were encountered: