-
Notifications
You must be signed in to change notification settings - Fork 49
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] AwsSigV4HttpConnection generates the wrong request signature to sign low-level client requests. #849
Comments
I would start debugging this by double checking that you can make simpler requests with the .NET client (e.g. |
@zordark Are you passing query parameters as part of |
I don't add any parameters explicitly, and I think they are added automatically based on .Net client settings.
|
Another problem related to this is that I can see real responses only because the client logs raw responses. But when it comes to deserialization I see that error:
|
Good day. Eventually, we found the issue. Someone in our team created the wrapper with the same name.
|
What is the bug?
Good day.
We have long used an old version of the OpenSearch service with ElasticSearch under the hood. We decided to migrate to the newer version (OpenSearch 2.13). During our infrastructure rollout (with AWS CDK), we have a lambda function (written in .NET 8) called from the custom resource provider that sets OpenSearch cluster roles mapping. Lambda uses the same role as we use for the master user for the OpenSearch cluster. This setup works for us with the old version. Since we moved to the latest OpenSearch version, we decided to migrate to the latest OpenSearch.Net client as well.
After we did it, we have a problem: that lambda call to cluster fails with the next error:
The way we instantiate client and connection is:
and then we have a handler to execute HTTP requests to OS cluster which uses the client created above
Where
request
is an object that comes from the AWS CDK custom resource provider framework.The complete response is below (I just formatted it a bit to make it more readable)
What can be the reason for this problem?
The text was updated successfully, but these errors were encountered: