-
Notifications
You must be signed in to change notification settings - Fork 45
Principle of least privilege should be applied in operator (Cluster)Roles #282
Comments
@Cynocracy: The label(s) 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. |
The primary reason the operator is given |
Thanks for the context! That makes sense. It looks like we may be able to have the Operator config set up the aggregated clusterrole, and grant the Operator service account |
hi @Cynocracy, unfortunately you need |
Thanks for the link, I'm still very new to the space so it's quite helpful for me :) For now, I'll start a PR adding a comment to the |
Circling back to this, a couple of different things: @pmorie it looks like https://github.com/kubernetes/kubernetes/blob/3b618af0d435628feedf06f97bd1c69340d07d95/pkg/registry/rbac/clusterrole/policybased/storage.go#L69 early-exits that function when the user has What I was thinking was a little different actually, if we could:
|
/assign Cynocracy |
This needs to be addressed upstream. The embedded manifest is taken directly from upstream's official release, and the only edits we should ever make to our embedded copy are those we know will be included in upstream's next release (ideally referencing a merged PR). Otherwise, we complicate our upgrade process (even more than it already is) by having to post process the official manifest for every future release. |
Ack, I think the change to grant Do you agree? If so, I can go ahead and start testing out that change. |
Describe the bug
Today the operator is by default granted all permissions on all resources clusterwide by a blanket ClusterRole
Expected behavior
Only specifically those permissions which are necessary in order to create a functional Knative serving setup should be added, using escalate and/or bind to create roles or rolebindings that the operator itself does not need explicitly, but which are needed transitively by knative serving.
To Reproduce
The text was updated successfully, but these errors were encountered: