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

Adding async support for AWSSigV4 #254

Merged
merged 5 commits into from
Jan 2, 2023

Conversation

harshavamsi
Copy link
Collaborator

@harshavamsi harshavamsi commented Dec 19, 2022

Signed-off-by: Harsha Vamsi Kalluri harshavamsi096@gmail.com

Description

Adds support for Async Sigv4 to authenticate with AWS IAM.

Issues Resolved

Closes #131

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: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

I have some nits/asks.

Consider expanding tests. For example asyncsigner.py should have its own test_asyncsigner.py for all kind of really basic functions to avoid regressions and have a test set to build on top of in the future.

USER_GUIDE.md Outdated Show resolved Hide resolved
USER_GUIDE.md Outdated Show resolved Hide resolved
opensearchpy/__init__.py Outdated Show resolved Hide resolved
opensearchpy/connection/http_async_requests.py Outdated Show resolved Hide resolved
opensearchpy/connection/http_async_requests.py Outdated Show resolved Hide resolved
@harshavamsi harshavamsi marked this pull request as draft December 20, 2022 18:03
Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
@harshavamsi harshavamsi marked this pull request as ready for review December 21, 2022 20:33
@harshavamsi
Copy link
Collaborator Author

I have some nits/asks.

Consider expanding tests. For example asyncsigner.py should have its own test_asyncsigner.py for all kind of really basic functions to avoid regressions and have a test set to build on top of in the future.

@dblock this PR is ready for review now. I created a new test class for the async signer. We can add more tests to that namespace in the future. Tested this locally with an async client and it works as expected.

@dblock dblock merged commit cfb2cf7 into opensearch-project:main Jan 2, 2023
@dblock
Copy link
Member

dblock commented Jan 2, 2023

I like it. If you have time, you could make an async version of https://github.com/dblock/opensearch-python-client-demo (Pipfile lets you use a relative path with path for the dependency).

@harshavamsi harshavamsi deleted the feature/asyncsigv4 branch January 3, 2023 20:19
@dblock
Copy link
Member

dblock commented Jan 18, 2023

Did this make it into 2.0.1? I think it didn't, so our CHANGELOG was incorrectly modified. I opened #273.

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.

[FEATURE] Async support
2 participants