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

[Backport 2.x] For read-only tenants filter with allow list #3528

Merged

Conversation

DarshitChanpura
Copy link
Member

When tenants were considered readonly an deny list was used, this could be prone to error, switch to an allow list instead. Added tests to confirm prevent and new state.

(cherry picked from commit 0914f8c)

Check List

- [ ] New functionality includes testing
- [ ] New functionality has been documented

  • Commits are signed per the DCO using --signoff

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.

When tenants were considered readonly an deny list was used, this could
be prone to error, switch to an allow list instead.  Added tests to
confirm prevent and new state.

Signed-off-by: Peter Nied <[email protected]>
(cherry picked from commit 0914f8c)
@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

Merging #3528 (8e40807) into 2.x (2763812) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #3528      +/-   ##
============================================
+ Coverage     64.81%   64.85%   +0.03%     
- Complexity     3610     3612       +2     
============================================
  Files           273      273              
  Lines         20025    20026       +1     
  Branches       3346     3346              
============================================
+ Hits          12980    12987       +7     
+ Misses         5399     5395       -4     
+ Partials       1646     1644       -2     
Files Coverage Δ
...urity/configuration/PrivilegesInterceptorImpl.java 57.31% <100.00%> (+2.71%) ⬆️

... and 1 file with indirect coverage changes

@DarshitChanpura DarshitChanpura merged commit 974e2ea into opensearch-project:2.x Oct 12, 2023
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants