-
Notifications
You must be signed in to change notification settings - Fork 336
Adds a list setting to explicitly specify resources to be protected #5671
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
Adds a list setting to explicitly specify resources to be protected #5671
Conversation
Signed-off-by: Darshit Chanpura <[email protected]>
Signed-off-by: Darshit Chanpura <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @DarshitChanpura , thanks for the change, and I just left a comment.
src/main/java/org/opensearch/security/resources/ResourcePluginInfo.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Darshit Chanpura <[email protected]>
@DarshitChanpura How will this work with the various Are we doing anything to enforce that these settings are incompatible?
vs.
|
@cwperks These two settings act independently. We do not necessarily negate filter_by_backend_role in security plugin, however, the plugins implementing this feature will have precedence over filter_by setting. |
the tricky part however is that an extension will be assigned resource-sharing client even if no associated types were marked as protected. Which means, plugins using conditions like: |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5671 +/- ##
==========================================
- Coverage 72.94% 72.91% -0.04%
==========================================
Files 414 414
Lines 25902 25929 +27
Branches 3934 3936 +2
==========================================
+ Hits 18894 18905 +11
- Misses 5094 5110 +16
Partials 1914 1914
🚀 New features to boost your workflow:
|
...ationTest/java/org/opensearch/sample/resource/feature/enabled/ExcludedResourceTypeTests.java
Show resolved
Hide resolved
src/main/java/org/opensearch/security/resources/api/share/ShareRequest.java
Show resolved
Hide resolved
…ected Signed-off-by: Darshit Chanpura <[email protected]>
c9b28d1
to
92980f6
Compare
Signed-off-by: Craig Perkins <[email protected]>
c9a8c0f
into
opensearch-project:main
Description
Adds an opensearch setting that allow cluster-admins to specify which resources must be marked as protected.
Issues Resolved
TBD
Testing
Automated + manual
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.