-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Authentication fails on get requests #17
Comments
The problem appears to be in It appears to work if changed to: req.headers.Host = req.hostname |
Encountered same issue.
|
@nkeating-mutualofenumclaw @elastic/elasticsearch changed how headers work internally in v7.7.1. Which version are you using? Does v9 work if you upgrade to the latest version of @elastic/elasticsearch? |
Also FYI this dependency is noted in package.json:
So you should get a warning from NPM if you're running @elastic/elasticsearch < 7.8. |
I am getting the same error. We are running
As we are running AWS ES @ 6.8, the documentation for the elasticsearch client says we should run 6.8 client version if we are using 6.8 server version, so we cannot upgrade to client version 7.8 ( See https://github.com/elastic/elasticsearch-js#compatibility ); Therefore, the solution of using the latest Thanks |
@compwright perhaps you should deprecate v8.3.0 as it was a breaking change. |
I am getting authorization error aswell even when using AdministratorAccess policy: I am using the following versions:
|
When trying to perform elastic search queries with the latest version 9.0.0, the IAM authentication fails with the message "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details."
After troubleshooting, I found that if I used version 8.1.3 the authentication with IAM works successfully. Somewhere between 8.1.3 and 9.0.0 the authentication broke for IAM
The text was updated successfully, but these errors were encountered: