Skip to content
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

EKS security groups for pods #303

Open
maauso opened this issue Mar 11, 2021 · 2 comments · May be fixed by #320
Open

EKS security groups for pods #303

maauso opened this issue Mar 11, 2021 · 2 comments · May be fixed by #320

Comments

@maauso
Copy link

maauso commented Mar 11, 2021

Hi!

I'm using kube2iam over EKS and I detected that if I want to use security groups for pods and also IAM roles through Kube2Iam, those pods can not use the IAM role.

It seems that kube2iam can not manage the roles when the pods are using security groups.

Troubleshooting information.

First off when POD is starting with the security groups, I can see in kube2iam logs that it can detect that those pods have a role

Also, I saw that the request from the pod to AWS API doesn't appear on the kube2iam logs and then Pod receive AccessDenied

An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied

Besides, running aws sts get-caller-identity into the pod:

root@7d7bc57ddc-8rckq:/# aws sts get-caller-identity
{
    "UserId": "xxxxxxxxxxxxxxx:i-xxxxxxxxxxxxx",
    "Account": "xxxxxxxxxxx",
    "Arn": "arn:aws:sts::xxxxxxxx:assumed-role/eks-cluster/i-xxxxxxx"
}

Do you know if security groups for pods it's supported by Kube2iam?

@mfreebairn-r7
Copy link

Seeing this issue too, my pods are able to assume a role fine when they are using aws eks iam roles for service accounts but not when using kube2iam.
Sadly, not all of the pods I have deployed can be migrated from using kube2iam to IRSA.

@davidweizheng
Copy link

Seeing this issue too, my pods are able to assume a role fine when they are using aws eks iam roles for service accounts but not when using kube2iam.
Sadly, not all of the pods I have deployed can be migrated from using kube2iam to IRSA.

I'm also seeing the same issue - IRSA works on EKS but kube2iam doesn't.

@gjtempleton gjtempleton linked a pull request Aug 10, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants