-
Notifications
You must be signed in to change notification settings - Fork 862
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
Failed to Assume Role With Web Identity to China #5106
Comments
@jinwookkk can you generate the verbose wirelogs and compare the two calls - the one that does work and the one that doesn't? https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/logging-slf4j.html#sdk-java-logging-verbose Also, are you using a proxy? Does the cli/boto call also goes through the proxy? Proxies can change request attributes to a value that the service wasn't expecting, and this can be one possible cause of 500s. |
Sure. I will add log. ``
|
@jinwookkk Let us know if you were able to generate the wirelogs - make to sure redact sensitive data if you share the logs here. I believe you also have a Support Case open, which is currently assigned to the STS team for service-side investigation. You can share the logs in the Support Case if you'd like. |
It looks like this issue has not been active for more than five days. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please add a comment to prevent automatic closure, or if the issue is already closed please feel free to reopen it. |
Reopening, as the internal ticket is still being investigated. |
The internal ticket was resolved, so I'm closing this. The root cause was an unexpected request header caused STS AssumeRoleWithWebIdentity to return a 500 error. The header was not added by the Java SDK. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
Works well with awscli
and boto3 also works well.
But failed to assume role with web identity with AWSSDK Java v2.
And error message is null. errorCode is "InternalFailure"
Expected Behavior
Get AssumeRoleWithWebIdentityResponse
Current Behavior
Reproduction Steps
Possible Solution
No response
Additional Information/Context
When I use aws profile that region is cn AND set credentials provider to stsClient, it works.
( Envrionment AWS_PROFILE=cn)
But we don't need to set 2 things when we use awscli or python.
AWS Java SDK version used
Test with 2.18 ~ 2.25
JDK version used
11
Operating System and version
Ubuntu 22.04.3 LTS
The text was updated successfully, but these errors were encountered: