Using EKS Pod Identity Agent Credentials #3126
-
I see in the release notes that EKSAuth was added to enable the use of credentials from the eks-pod-identity-agent. Is there any documentation on how exactly this works with the .Net SDK? Has anyone confirmed that it works? I have tried testing it out, but the it always results in the same errors in the SDK. In the pod requesting credentials I always see:
And in the agent running in the cluster, I see:
I have confirmed my pod does have the environment variables and token mounts present as expected, and the mount does indeed contain the service token, but the AWSSDK client's don't seem to be using it or passing it on to the agent for authentication. Looking for any feedback or pointers. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
@sethfduke Apologies for the bad experience, but the .NET SDK (and by extension AWS Tools for PowerShell) have not been updated to support this new EKS feature yet. We're planning to work on this next year, but I can't give you an ETA since the actual date might change depending on other priorities. This documentation page has all the SDKs that currently support EKS Pod Identities: https://docs.aws.amazon.com/eks/latest/userguide/pod-id-minimum-sdk.html |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
-
Hi, is there any plan to support this feature in .NET SDK ? |
Beta Was this translation helpful? Give feedback.
-
Update: We released a new version of AWSSDK.Core ( I do recommend reviewing these documentation pages, but please let us know if you run into any issues:
|
Beta Was this translation helpful? Give feedback.
Update: We released a new version of AWSSDK.Core (
3.7.302
) yesterday that supports the updated container credential provider used by EKS Pod Identities. You'll need to update the service clients (e.g.AWSSDK.S3
) as well, but the SDK should handle theAWS_CONTAINER_AUTHORIZATION_TOKEN_FILE
andAWS_CONTAINER_CREDENTIALS_FULL_URI
values set by EKS.I do recommend reviewing these documentation pages, but please let us know if you run into any issues: