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

[BUG] IAM auth documentation issues #560

Closed
chjno opened this issue Oct 31, 2023 · 1 comment
Closed

[BUG] IAM auth documentation issues #560

chjno opened this issue Oct 31, 2023 · 1 comment
Labels
bug Something isn't working untriaged Need triage

Comments

@chjno
Copy link

chjno commented Oct 31, 2023

What is the bug?

When I follow the instructions in auth.md, I get the following errors

cannot import name 'Urllib3AWSV4SignerAuth' from 'opensearchpy'
cannot import name 'RequestHttpConnection' from 'opensearchpy' 
cannot import name 'RequestsAWSV4SignerAuth' from 'opensearchpy' 

It seems to work when I replace instances of Urllib3AWSV4SignerAuth with AWSV4SignerAuth.

How can one reproduce the bug?

  1. Copying the example code and running it.
  2. Replacing Urllib3HttpConnection, Urllib3AWSV4SignerAuth in line 1 with RequestHttpConnection, RequestsAWSV4SignerAuth.
  3. Replacing RequestHttpConnection in line 1 with RequestsHttpConnection.

What is the expected behavior?

No import errors and successful OpenSearch API requests.

@chjno chjno added bug Something isn't working untriaged Need triage labels Oct 31, 2023
@dblock
Copy link
Member

dblock commented Oct 31, 2023

Support for Urllib3 Sigv4 was added in #547 and just hasn't been released yet. Add your +1 top #561.

You can use opensearch-py from HEAD if you want to try it out!

@dblock dblock closed this as completed Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged Need triage
Projects
None yet
Development

No branches or pull requests

2 participants