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

Point in time security changes #1989

Merged
merged 3 commits into from
Aug 9, 2022
Merged

Conversation

bharath-techie
Copy link
Contributor

@bharath-techie bharath-techie commented Aug 3, 2022

Description

This adds point in time permissions to default action groups.
Point in time has 3 apis:

  1. Create PIT
  2. List all PITs
  3. Delete PIT

The permission model is similar to scroll which is a similar pagination feature

Cluster_composite_ops_ro:
Adding 'create pit' and 'list all pits' API permission to cluster composite ops read only action group.

Cluster_composite_ops:
Adding 'delete' API permission + above permissions to cluster composite ops action group.

Kibana_server:
Kibana server has access to all operations.

API changes links :
opensearch-project/OpenSearch#4064 - create pit and delete pit api
opensearch-project/OpenSearch#4016 - list all

  • Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)
    New feature - Point in time feature
  • Why these changes are required?
    These changes are required for access of various point in time APIs
  • What is the old behavior before changes and new behavior after changes?
    This is a new feature

Issues Resolved

Meta issue - opensearch-project/OpenSearch#3959

Is this a backport? If so, please add backport PR # and/or commits #

Testing

[Please provide details of testing done: unit testing, integration testing and manual testing]

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.

Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
@bharath-techie bharath-techie requested a review from a team August 3, 2022 16:21
@peternied
Copy link
Member

@opensearch-project/security Can we get another review on this change?

@dhruv16dhr
Copy link

@opensearch-project/security Can we get another review on this change?

@Bukhtawar Can you please take a look at this?

@cliu123 cliu123 merged commit 9ce8b4f into opensearch-project:main Aug 9, 2022
@peternied peternied added the backport 2.x backport to 2.x branch label Aug 9, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 9, 2022
Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
(cherry picked from commit 9ce8b4f)
@@ -130,6 +131,8 @@ cluster_composite_ops_ro:
- "indices:admin/aliases/get*"
- "indices:data/read/scroll"
- "indices:admin/resolve/index"
- "indices:data/read/point_in_time/read*"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does read* mean, Is it read all pits if yes should we name it different to avoid confusion with index data read

peternied pushed a commit that referenced this pull request Aug 9, 2022
Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
(cherry picked from commit 9ce8b4f)

Co-authored-by: Bharathwaj G <58062316+bharath-techie@users.noreply.github.com>
@dhruv16dhr
Copy link

Updated security changes : #2033

stephen-crawford pushed a commit to stephen-crawford/security that referenced this pull request Nov 10, 2022
Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
Signed-off-by: Stephen Crawford <steecraw@amazon.com>
wuychn pushed a commit to ochprince/security that referenced this pull request Mar 16, 2023
…project#2005)

Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
(cherry picked from commit 9ce8b4f)

Co-authored-by: Bharathwaj G <58062316+bharath-techie@users.noreply.github.com>
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.

5 participants