Skip to content
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

[Salesforce] DLS feature is "type-level" not "document-level" security #3028

Open
seanstory opened this issue Dec 11, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@seanstory
Copy link
Member

Bug Description

The implementation of the Salesforce Connector DLS (added in v8.13.0) utilizes "type-level security" and not "document level security". This means that the connector is looking to see, for every user, which Object types in Salesforce that user is eligible to view. Then for every object of that type that is synced by the connector, all of those users are given search access.

This fails to account for the fact that some users may be expressly denied permission to specific records in an Object type that they would otherwise have access.

For example, Jane Doe may be able to see most Case records. But there's one specific Case where she does not have access.
The Salesforce connector would still include jane.doe in the _allow_access_control list for that one specific case.

To Reproduce

  1. Find a user that has general access to an object type
  2. disallow them from a specific record of that type
  3. run an content sync with DLS enabled
  4. check the specific record's Elasticsearch document
  5. find the user in the document's _allow_access_control list.

Expected behavior

"Document Level Security" should apply document level controls.

Environment

8.13.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant