Closed zhxjdwh closed 47 minutes ago
When i run this application on Amazon Linux 2(EKS node OS) , everything is ok. But when i run on Amazon Linux 2023(EKS node OS),I got this error.
If the same code and same SDK version works in one environment but not the other, this indicates an environment misconfiguration, and probably not an issue with the SDK.
According to the EC2 User Guide, 401 - Unauthorized
means the GET request used an invalid token, and it's recommended to generate a new one.
Can you run the IMDSv2 curl
commands from the instance?
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html#instance-metadata-retrieval-examples
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.
Describe the bug
I have a java application run in EKS cluster. this application will get some secret from Aws secret manager. When i run this application on Amazon Linux 2(EKS node OS) , everything is ok. But when i run on Amazon Linux 2023(EKS node OS),I got this error.
Regression Issue
Expected Behavior
same as amazon linux 2
Current Behavior
i got an error SdkServiceException: Unauthorized on amazon linux 2023
Reproduction Steps
java code:
pom.xml
eks node OS:
container OS:
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.25.48
JDK version used
openjdk version "11.0.16" 2022-07-19 OpenJDK Runtime Environment 18.9 (build 11.0.16+8) OpenJDK 64-Bit Server VM 18.9 (build 11.0.16+8, mixed mode, sharing)
Operating System and version
container-OS: PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"