-
Notifications
You must be signed in to change notification settings - Fork 41
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
Too much permissions with "iam::aws:policy/AmazonS3FullAccess" #11
Comments
I will change that. Thanks for the detailed issue. |
So, all of those roles which have wide access, also have an option where you can use ur own role (https://github.com/jenkins-x/terraform-aws-eks-jx/blob/master/variables.tf#L478), and customize it as much as u want (it's what I also do at work). EDIT: Having said that, this does not make sense to me: https://github.com/jenkins-x/terraform-aws-eks-jx/blob/master/modules/cluster/irsa.tf#L232, and I will open a PR to fix it. |
@ankitm123 I appreciate your opinion. By this, I would suggest permit choose the name of the policy of this S3 access if you create or use another (like vpc_id in variable.tf file or cluster_name, or other choosable options), and by default, if you don't write this, the process using What do you think? |
Hi!
I detected that terraform use a policy
iam::aws:policy/AmazonS3FullAccess
that is very "strong" to do several task actions in S3Normally these kinds of policies are blocked by security because you don't need so powerful permissions.
I detected that it only need permissions in these S3 buckets (in my case) :
The role
iam::aws:policy/AmazonS3FullAccess
appears in these files:In my case, I change in every terraform init this files with other policy name less permissive.
I think it is a good modification for security upgrade to create a less permissive policy for this point during the process or to have the possibility to specify the name of the policy in main.tf if you have already created one for it or in variables.tf the current default option.
Thank you
The text was updated successfully, but these errors were encountered: