-
Notifications
You must be signed in to change notification settings - Fork 423
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
Fix RBAC on example file: service account requires get to ConfigMap #334
Conversation
/assign @micahhausler |
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.
Have you tried this policy change and tested it? I'm not sure if list
is also needed on ConfigMaps
deploy/example.yaml
Outdated
resources: | ||
- configmap | ||
resourceNames: | ||
- aws-iam-authenticator |
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.
It looks like the ConfigMap mapper is hard coded to watch the aws-auth
, can you correct that?
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.
Ok, will get the example to have that changed too.
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.
/lgtm
/approve
Thanks!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: micahhausler, pjbgf 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 |
The existing example yaml does not define the RBAC for getting the ConfigMap that contains the configuration.
Please note that a least privileged approach was chosen, the service account will only be able to
get
the ConfigMapaws-iam-authenticator
.