-
Notifications
You must be signed in to change notification settings - Fork 68
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
Remove duplicate pod RBAC #2336
Conversation
🤖 Created branch: z_pr2336/dfarrell07/gateway_pod_rbac |
b143ead
to
07f0fdf
Compare
@skitt How did you determine in #2008 that pods didn't need some permissions? Just looking at the code? @tpantelis How did you spot the error in #2225, as it didn't seem to fail CI? I ask because I don't know if pods really needs *, or if we can get away with a subset. |
It did fail CI according to the PR summary. |
Ah okay, I see. I actually linked to the wrong PR there, this is the gateway which was PR #2214. But still, the point is that it should have failed CI on the PR that made the change, not have been merged. |
07f0fdf
to
2206140
Compare
It changed the RBAC yaml and the associated Go file but those are used by |
Thanks for clarifying Tom, that makes sense. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The RBAC for pods duplicates the get permission, as it's granted * elsewhere. This was recently modified in submariner-io#2225, submariner-io#2214, and submariner-io#2008. Signed-off-by: Daniel Farrell <[email protected]>
6d32192
to
216615f
Compare
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
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.
I would rather move in the other direction: instead of removing explicit permissions which are subsumed by wildcard permissions, remove the wildcard permissions and explicitly list all the permissions we really need (ideally, auto-generated from code comments).
Closing in favor of #1105 |
🤖 Closed branches: [z_pr2336/dfarrell07/gateway_pod_rbac] |
The RBAC for pods duplicates the get permission, as it's granted * elsewhere.
This was recently modified in #2225, #2214, and #2008.
Signed-off-by: Daniel Farrell [email protected]