-
Notifications
You must be signed in to change notification settings - Fork 308
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
Grant cloud-controller-manager RBAC permissions for HTTP port access #937
Grant cloud-controller-manager RBAC permissions for HTTP port access #937
Conversation
Co-Authored-By: Eric Wolak <[email protected]>
The committers listed above are authorized under a signed CLA. |
This issue is currently awaiting triage. If cloud-provider-aws contributors determine this is a relevant issue, they will accept it by applying the The 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-sigs/prow repository. |
Hi @aupadhyay3. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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-sigs/prow repository. |
Makes sense to me, thanks @aupadhyay3 /ok-to-test |
@aupadhyay3 can you add a release note block for this? |
@cartermckinnon Added the release note, let me know if it looks good. |
/lgtm Thanks, @aupadhyay3! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cartermckinnon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Co-Authored-By: Eric Wolak [email protected]
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR adds to the RBAC configuration for the
system:serviceaccount:kube-system:cloud-controller-manager
by granting ability to create tokenreviews and subjectaccessreviews. This update enables the service account to validate client credentials allowing Prometheus to scrape metrics.Which issue(s) this PR fixes: N/A
Special notes for your reviewer:
This fix came up while trying to utilize cloud-controller-manager metrics. While trying to get prometheus to authenticate with the
cloud-controller-manager
metrics port, we found that theserviceaccount:kube-system:cloud-controller-manager
does not have the right RBAC to perform authentication and authorization checks which are needed to validate prometheus client credentials. Specifically, it’s missing the permissions to createtokenreviews
andsubjectaccessreviews
. See these errors:After patching the RBAC to include these permissions, prometheus was able to talk to connect to AWS CCM and scrape its metrics.
Does this PR introduce a user-facing change?: