Skip to content

[Backport 2.x] Separate config option to enable restapi: permissions (#2605)#2817

Merged
DarshitChanpura merged 1 commit intoopensearch-project:2.xfrom
DarshitChanpura:backport/backport-2605-to-2.x
May 30, 2023
Merged

[Backport 2.x] Separate config option to enable restapi: permissions (#2605)#2817
DarshitChanpura merged 1 commit intoopensearch-project:2.xfrom
DarshitChanpura:backport/backport-2605-to-2.x

Conversation

@DarshitChanpura
Copy link
Copy Markdown
Member

Backports #2605

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.

…ject#2605)

Added config settings
plugins.security.restapi.admin.enabled which enables/disables :resapi permissions.
Default is false

Signed-off-by: Andrey Pleskach <ples@aiven.io>
(cherry picked from commit 6446268)
@codecov
Copy link
Copy Markdown

codecov bot commented May 30, 2023

Codecov Report

Merging #2817 (3be2b10) into 2.x (c3fa2b2) will decrease coverage by 0.09%.
The diff coverage is 53.33%.

@@             Coverage Diff              @@
##                2.x    #2817      +/-   ##
============================================
- Coverage     61.44%   61.36%   -0.09%     
+ Complexity     3374     3370       -4     
============================================
  Files           264      264              
  Lines         18631    18637       +6     
  Branches       3283     3285       +2     
============================================
- Hits          11448    11436      -12     
- Misses         5597     5612      +15     
- Partials       1586     1589       +3     
Impacted Files Coverage Δ
...security/dlic/rest/api/SecuritySSLCertsAction.java 71.13% <ø> (-0.59%) ⬇️
...g/opensearch/security/support/ConfigConstants.java 94.44% <ø> (ø)
...dlic/rest/api/RestApiAdminPrivilegesEvaluator.java 75.75% <41.66%> (-2.58%) ⬇️
.../opensearch/security/OpenSearchSecurityPlugin.java 80.23% <100.00%> (+0.03%) ⬆️
...arch/security/dlic/rest/api/AbstractApiAction.java 75.96% <100.00%> (+0.09%) ⬆️

... and 9 files with indirect coverage changes

@DarshitChanpura DarshitChanpura merged commit 2072e3c into opensearch-project:2.x May 30, 2023
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.

4 participants