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

Add search pipeline action permissions #1661

Conversation

msfroh
Copy link
Contributor

@msfroh msfroh commented Nov 20, 2023

Description

Adds three new actions to the list of available cluster permissions. These are derived from:

  1. DeleteSearchPipelineAction
  2. GetSearchPipelineAction
  3. PutSearchPipelineAction

Category

Enhancement

Why these changes are required?

Search pipelines have been generally available since OpenSearch 2.9. We should make it easy to manage permissions for search pipeline CRUD operations.

What is the old behavior before changes and new behavior after changes?

The security dashboards plugin doesn't help users manage permissions on search pipeline GET, PUT, and DELETE operations without this change.

With this change, the three actions should be available through the UI as assignable permissions.

Issues Resolved

Relates to opensearch-project/security#3736

Testing

None yet

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.

Search pipelines have been generally available since OpenSearch 2.9.
We should make it easy to manage permissions for search pipeline CRUD
operations.

Signed-off-by: Michael Froh <[email protected]>
Copy link

codecov bot commented Nov 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fe7bad6) 66.63% compared to head (8481b8c) 66.63%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1661   +/-   ##
=======================================
  Coverage   66.63%   66.63%           
=======================================
  Files          94       94           
  Lines        2395     2395           
  Branches      324      319    -5     
=======================================
  Hits         1596     1596           
  Misses        728      728           
  Partials       71       71           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cwperks cwperks added the backport 2.x backport to 2.x branch label Nov 21, 2023
@stephen-crawford stephen-crawford merged commit d5a6626 into opensearch-project:main Nov 21, 2023
10 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 21, 2023
Search pipelines have been generally available since OpenSearch 2.9.
We should make it easy to manage permissions for search pipeline CRUD
operations.

Signed-off-by: Michael Froh <[email protected]>
(cherry picked from commit d5a6626)
RyanL1997 pushed a commit that referenced this pull request Nov 22, 2023
Search pipelines have been generally available since OpenSearch 2.9.
We should make it easy to manage permissions for search pipeline CRUD
operations.

Signed-off-by: Michael Froh <[email protected]>
(cherry picked from commit d5a6626)

Co-authored-by: Michael Froh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants