-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Application in pod not picking up role from service account #4436
Comments
I am not exactly sure why but using re-opened for comments, if any |
|
Confusion stemmed from the fact that the examples in this Route 53 doc use the old deprecated method ( |
* Fix: pod not picking up role from service account See: aws/aws-sdk-go#4436 * Improve: log error on AWS session initialization in `PeriodicAwsChecker`
Hi there, Thanks for the feedback. We are no longer updating docs for GO SDK v1, since this seems to have been resolved with the use of .newSession(), I feel like this is safe to close. Thanks again for your feedback. |
Comments on closed issues are hard for our team to see. |
Describe the bug
My application (a k8s controller in Go) is running in a pod in AWS EKS. Some information about cluster & AWS Go SDK.
I created a service account using
eksctl
as show below.The above role has a policy enabling to execute the
route53:ChangeResourceRecordSets
action.In addition to the above, the above service account also has some K8s role & rolebinding attached to it during deployment.
The created service account
Describing the pod, shows me the necessary
env
variables & mounts.In addition to the above, for debugging, I added code to read the content of the above token file (harded above file name in code) & also get the caller identity (
GetCallerIdentity()
). I was able the read the token file from above location, so it is not a access problem. Decoded JWT token shows thisIt looks correct to me.
Expected Behavior
Calling
GetCallerIdentity()
should have returned role set to the one set inAWS_ROLE_ARN
- the IAM role attached to service account.Current Behavior
Calling
GetCallerIdentity()
returns -which is the nodegroup role of the EKS cluster.
Reproduction Steps
telcontrollerRoute53Policy
and contains below permissionseksctl
to do soSSCCE code including
rbac.yaml
&deployment.yaml
at https://github.com/anshumanr/saPossible Solution
No response
Additional Information/Context
No response
SDK version used
v1.44.28
Environment details (Version of Go (
go version
)? OS name and version, etc.)go version go1.17.8 linux/amd64
The text was updated successfully, but these errors were encountered: