-
Notifications
You must be signed in to change notification settings - Fork 275
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
[BUG] "Field level security" and "Field masking definitions" don't work together with "Document level security" #3274
Comments
How two different rule sets are combined at runtime based on role A and role B make it hard for there to be an obvious answer to 'how are the rules applied'. I think that unless there is a singular place where these rules are described admins and users alike will have trouble handling these scenarios - Views [1] might be a way to address this. @rafaelma What do you think? |
@peternied Thanks for your feedback :-) . The view functionality you describe in opensearch-project/OpenSearch#6181 will move the document level security (DLS), field level security (FLS), and field masking definitions (FMD) out of a "Role definition" and into a "View definition". It is a cleaner separation compare to what is available today and different roles could get access to the same DLS/FLS/FMD definition and avoid the need to define the same DLS/FLS/FMD in different roles. It is obviously an improving in the access management functionality. But this functionality does not help with the bug described in this issue. The FLS/FMD gets applied only to the index-pattern definition in the role and bypass the DLS definition, we think this is obviously a bug. |
[Triage] Thank you for filing this issue @rafaelma. This issue appears to be a result of the role combinations Peter mentioned above. There is not a clear path forward to fixing the non-deterministic behavior that we currently have since the ordering of the role impacts the results. We can address this moving forward by marking as help wanted but leaving untriaged since it is certainly something worth improving but the action criteria for this is not totally clear at the moment. |
What is the bug?
"Field level security (FLS)" and "Field masking definitions(FMD)" don't work as expected, together with "Document level security(DLS)"
FLS/FMD get applied only to the index-pattern definition in the role and bypass the DLS definition
When having 2 roles using "Document level security" to restrict the role to a subset of documents in an index, and one of them also uses "Field level security" and/or "Field masking definitions", the restriction to the fields defined in one of the roles will affect the other role as well.
How can one reproduce the bug?
Steps to reproduce the behavior:
"logs-component1"
The document with
"_id": "cYWcRYoBA8cFetXWaUrZ"
should not get"description"
masked because the user gets access to this document via role-A.What is the expected behavior?
Use case:
What is your host/environment?
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered: