-
Notifications
You must be signed in to change notification settings - Fork 190
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] Unhelpful error message when failing to authenticate with Amazon OpenSearch Service #473
Comments
What's the actual HTTP response for this? Looking at the code it does try to parse the response and pull out the complete message. |
@dblock Sorry for the late response. I also had a hard time to reproduce it. But it is with getClusterSettings:
but for some reason when I try to call the API with the wrong role, it does yield clear message:
This seems to be a corner case failed to be covered. Is it possible that the fine-grained access control of Amazon OpenSearch might cause missing response message be overriden? |
Yes, it's possible. First, try to do this with |
@dblock I was able to reproduce the issue with FGAC domain that the client does not have proper permission/role. It seems we should be parsing |
What is the bug?
This is related to our opensearch sink use case with Amazon OpenSearch backend sts role authentication: opensearch-project/data-prepper#2655
How can one reproduce the bug?
When sts role is not configured with the right permissions, one gets
What is the expected behavior?
Ideally the cause message could be
What is your host/environment?
all
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered: