-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Add_missing_permissions for ClusterAutoScaler on AWS #4586
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
Welcome @raphael1021! |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: raphael1021 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -31,6 +31,7 @@ The following policy provides the minimum privileges necessary for Cluster Autos | |||
"autoscaling:DescribeAutoScalingGroups", | |||
"autoscaling:DescribeAutoScalingInstances", | |||
"autoscaling:DescribeLaunchConfigurations", | |||
"autoscaling:DescribeTags", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you don't have permission, this error will occur
E0107 12:41:18.399807 1 aws_manager.go:265] Failed to regenerate ASG cache: cannot autodiscover ASGs: AccessDenied: User: arn:aws:sts::xxx:assumed-role/xxxdev-role/i-00e02057dcf6619ae is not authorized to perform: autoscaling:DescribeTags because no identity-based policy allows the autoscaling:DescribeTags action
status code: 403, request id: afe418c9-099d-474c-a302-961b2247697d
F0107 12:41:18.399830 1 aws_cloud_provider.go:389] Failed to create AWS Manager: cannot autodiscover ASGs: AccessDenied: User: arn:aws:sts::xxx:assumed-role/xxxdev-role/i-00e02057dcf6619ae is not authorized to perform: autoscaling:DescribeTags because no identity-based policy allows the autoscaling:DescribeTags action
status code: 403, request id: afe418c9-099d-474c-a302-961b2247697d
/retest |
@raphael1021: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/check-cla |
/area provider/aws Hey, thanks for the PR,
|
Thank you for your kind explanation. |
I think you're surfacing a valid point that that portion of the docs as it is isn't the easiest to parse for users, as this is the second time someone's proposed something similar. There's also the fact we should be more explicit about recommending users restrict the Feel free to close this PR if you don't want to rework it, and I can have a look and ask for you to have a look, or if you want to rework this to try and address that, you're more than welcome to. |
Which component this PR applies to?
cluster-autoscaler
What type of PR is this?
/kind documentation
What this PR does / why we need it:
I have found that at least some of the permissions are missing to deployed with ClusterAutoScaler
Special notes for your reviewer:
If you don't have permission, this error will occur