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] Add render search template as a cluster permission (#3689) #3872

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

cwperks
Copy link
Member

@cwperks cwperks commented Dec 19, 2023

Manual backport of #3689 to 2.x.

CI will not pass until the companion core backport is merged: opensearch-project/OpenSearch#11646

…t#3689)

Companion PRs in core:

- opensearch-project/OpenSearch#11170
- opensearch-project/OpenSearch#11591

This PR adds render search template as a cluster perm so that its
separately permissioned from a SearchTemplateRequest which needs a set
of indices to authorize the request. The companion PR in core separates
the transport actions that handle search template request and render
search template request so that they can be authorized separately.

I am opening this in Draft until the core PR is merged because this PR
depends on the core PR.

* Category (Enhancement, New feature, Bug fix, Test fix, Refactoring,
Maintenance, Documentation)

Bug fix

- opensearch-project#3672

- [ ] 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](https:/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

---------

Signed-off-by: Craig Perkins <[email protected]>
(cherry picked from commit cc57710)
Copy link

codecov bot commented Dec 19, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (45917e9) 65.06% compared to head (5acefc9) 65.07%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #3872      +/-   ##
============================================
+ Coverage     65.06%   65.07%   +0.01%     
- Complexity     3732     3735       +3     
============================================
  Files           297      297              
  Lines         21000    21001       +1     
  Branches       3439     3440       +1     
============================================
+ Hits          13663    13666       +3     
+ Misses         5633     5630       -3     
- Partials       1704     1705       +1     
Files Coverage Δ
...earch/security/privileges/PrivilegesEvaluator.java 72.03% <0.00%> (-0.22%) ⬇️

... and 2 files with indirect coverage changes

@cwperks cwperks merged commit 02881cd into opensearch-project:2.x Dec 21, 2023
75 of 77 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.

2 participants