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

Extend Sigv4 to Role based Access #390

Merged
merged 2 commits into from
Oct 17, 2023

Conversation

cgchinmay
Copy link
Collaborator

Description

extend sigv4 support to role-based access

Issues Resolved

#377

Testing

  • New functionality includes testing

[Describe how this change was tested]
Added new UT
Updated existing UT
validated by running make test
validated by provisioning a managed cluster and verifying access with session-token
validated by running benchmark test using http_logs

Note
Scroll API request in OSB becnhmark test is failing and is currently being investigated


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.

Copy link
Collaborator

@IanHoang IanHoang left a comment

Choose a reason for hiding this comment

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

LGTM!

@IanHoang
Copy link
Collaborator

Ran a test mode with this feature yesterday with geonames workload and confirmed with @cgchinmay that scroll API error was due to cluster settings.

@@ -319,6 +328,9 @@ def config_opts_parsing_aws_creds(self, configuration_source, override_datastore
_datastore_aws_service = random.choice(['es', 'aoss'])
_datastore_aws_region = random.choice(['us-east-1', 'eu-west-1'])

# optional
_datastore_aws_session_token = "".join([random.choice(string.ascii_letters + string.digits) for _ in range(752)])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Specify 752 as a declared constant.

Signed-off-by: Chinmay Gadgil <chinmay5j@gmail.com>
Signed-off-by: Chinmay Gadgil <chinmay5j@gmail.com>
@IanHoang IanHoang merged commit dfdc15a into opensearch-project:main Oct 17, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants