[Question] Should resource-sharing information be stored on a dedicated index or on the resource index inside the documents? #5014
Labels
resource-permissions
Label to track all items related to resource permissions
triaged
Issues labeled as 'Triaged' have been reviewed and are deemed actionable.
Please read original proposal: #4500 in-case you need context on the feature itself.
Proposal
With the recent changes in design approach of the Resource Sharing and Permissions feature, we've reached at a fork in the path where we must choose from 2 paths forward for storing resource-sharing data. Below, I've listed these two approaches in more detail:
Approach 1 : Dedicated index
This approach emphasizes storing resource sharing information on a dedicated index
.opensearch-resource-sharing
. A document will look something like:This approach present a more simplistic path towards achieving resource-level access-control with some performance overhead.
Approach 2: Same Index
This approach emphasizes that the resource-sharing information will be stored in the resource document to keep it closer to the resource intended to have access-control. This would look something like:
Although this approach looks similar to the current model where plugins store the user information in their own index, the biggest difference is that now security-plugin will be aware of this data and has control over it.
NOTE: With this approach, opensearch-project/OpenSearch#15778 becomes a requirement to enforce zero-trust policy and ensure that there is no unintended data-exposure.
Intention
The text was updated successfully, but these errors were encountered: