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?
When a user has 2 roles, one that permits him to read all documents of an index and one that restricts the permissions to certain documents via DLS, he only has access to the ones meeting the DLS criteria.
I noticed this because, even though my user all_access role, he was not able to see a lot of documents.
The reason was, that via a backend_role, my user had also a role that limited the access via DLS.
Only after creating another role with the DLS { "match_all": {}}, and adding this role to my user, was I able to see the documents again.
How can one reproduce the bug?
Steps to reproduce the behavior:
Give this role to a user that already has all_access role
With this user search for any documents GET myindex-*/_search
Even though the index contains some documents and the user has the all_access role the search has no results
What is the expected behavior?
I expected the permissions to be additiv and not loose permissions when getting an additional role.
The text was updated successfully, but these errors were encountered:
rufdoSICKAG
added
bug
Something isn't working
untriaged
Require the attention of the repository maintainers and may need to be prioritized
labels
Nov 28, 2023
peternied
removed
the
untriaged
Require the attention of the repository maintainers and may need to be prioritized
label
Nov 30, 2023
@rufdoSICKAG I know this can be counter-intuitive - DLS operates to deny access to documents unless they pass the all checks - this is the expected behavior.
What is the bug?
When a user has 2 roles, one that permits him to read all documents of an index and one that restricts the permissions to certain documents via DLS, he only has access to the ones meeting the DLS criteria.
I noticed this because, even though my user all_access role, he was not able to see a lot of documents.
The reason was, that via a backend_role, my user had also a role that limited the access via DLS.
Only after creating another role with the DLS
{ "match_all": {}}
, and adding this role to my user, was I able to see the documents again.How can one reproduce the bug?
Steps to reproduce the behavior:
GET myindex-*/_search
What is the expected behavior?
I expected the permissions to be additiv and not loose permissions when getting an additional role.
The text was updated successfully, but these errors were encountered: