Replies: 1 comment 1 reply
-
What changed in the day that you started to see the errors, what could potentially have triggered them? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Our java based services which are authenticating through the IAM role suddenly failing since Friday 25th 2022
We are seeing the
aws-sdk-java
calls internally GEThttp://169.254.169.254/latest/meta-data/iam/security-credentials/<Iam-role>
and intermittently see the below failure for it. We have overridden the default timeout to 2 seconds from 1 second but the issue still persists.Since the IMDS call fails the SDK uses a stale credential (expired) to communicate to Dynamodb and it fails.
After restarting the k8s pod's/instance it stables for 30 minutes and we are again seeing the same error intermittently.
What could be the cause of an issue? Why SDK is using the expired credential? Is there a way to retry?
There is a below env variable available in python aws sdk
boto3
but not in aws-java-sdkAWS Java SDK Used:
v1.12.296
Java used:
eclipse-temurin:17-jdk
IAM Component:
jtblin/kube2iam:kube2iam-2.6.0
Kubernetes:
v1.21.5
Beta Was this translation helpful? Give feedback.
All reactions