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] HTTP 403 when basic authentication is configured #116

Open
Sovietaced opened this issue Oct 27, 2023 · 1 comment
Open

[BUG] HTTP 403 when basic authentication is configured #116

Sovietaced opened this issue Oct 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Sovietaced
Copy link
Contributor

What is the bug?

If you configure the provider to use basic authentication you will receive HTTP 403s unless you explicitly disable sign_aws_requests. The error message is quite confusing since the credentials are correct.

│ Error: HTTP 403 Forbidden: Permission denied. Please ensure that the correct credentials are being used to access the cluster.

How can one reproduce the bug?

provider "opensearch" {
  url               = "..."
  username          = "..."
  password          = "..."
  healthcheck       = false
  # sign_aws_requests = false
}

What is the expected behavior?

The provider should work by just specify a username and password for HTTP basic auth.

I'm thinking about filing a pull request which just uses a normal HTTP client when basic auth is configured.

@prudhvigodithi
Copy link
Collaborator

[Untriage]
Thanks @Sovietaced, a document PR went in #114 and an open PR #117 to auto disable sign_aws_requests when using basic auth, pending adding some unit tests and review.
Thank you
Adding @bbarani @rblcoder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants