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

In 1.19, it is not necessary to specify the securityContext when using IRSA in non-root containers #85

Closed
sotoiwa opened this issue Apr 16, 2021 · 2 comments
Labels
correction Data is inaccurate

Comments

@sotoiwa
Copy link
Contributor

sotoiwa commented Apr 16, 2021

Describe the problem

According to the above topic, when using IRSA, non-root containers need to specify fsGroup in the securityContext and set the file permissions for the web identity token. In Kubernetes 1.19, this is no longer required, so it is a good idea to add this point.

This is documented in the EKS documentation.

https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html#kubernetes-1.19

You're no longer required to provide a security context for non-root containers that need to access the web identity token file for use with IAM roles for service accounts. For more information, see IAM roles for service accounts andproposal for file permission handling in projected service account volume on GitHub.

References
https://aws.github.io/aws-eks-best-practices/security/docs/iam/#run-the-application-as-a-non-root-user

@sotoiwa sotoiwa added the correction Data is inaccurate label Apr 16, 2021
@jicowan
Copy link
Contributor

jicowan commented Apr 16, 2021

@sotoiwa That's a great idea. Thanks for the suggestion. Do you want to submit a PR for this or would you rather I incorporate the idea into the guide?

@jicowan
Copy link
Contributor

jicowan commented Apr 20, 2021

Thanks for the suggestion. I updated the document.

@jicowan jicowan closed this as completed Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
correction Data is inaccurate
Projects
None yet
Development

No branches or pull requests

2 participants