-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Modify ActionRequest in core to allow for resource_names to be passed in the request #14751
Comments
[Triage] Thank you for filing this issue @DarshitChanpura going to transfer this issue to the OpenSearch core repository. |
[Triage - attendees 1 2 3] If we had a model for defining addresses of resources, those could be useful for identifying and permission items, but it isn't clear if this issue would follow those needs. A list of untyped strings seems like it would create future issue without other infrastructure built up around it. Please feel free to open a new issue after addressing the reason. |
META issue: opensearch-project/security#4560
Description
This base class is extended by every plugin’s implementation of transport request calls. Hence, the idea is to add a standard class property List resources. In addition, add
resource:
as a valid transport action prefix here.This will then be implemented by plugins to populate this property when handling an actionRequest after which SecurityFilter.java will intercept this call to perform privilege evaluation.
Implementation
Coming from comment: opensearch-project/security#4500 (comment), we will proceed with approach a, which introduces a new getter for resources, there-by allowing request handlers in plugin to populate the resource names before sending the request to Transport layer. Here is the pseudo-code (thank you @nibix):
The text was updated successfully, but these errors were encountered: