-
Notifications
You must be signed in to change notification settings - Fork 600
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
Create service accounts strictly after roles. #2574
Create service accounts strictly after roles. #2574
Conversation
This is necessary when the installer of the eventing YAML does not have `bind` on all roles in the cluster. I've been prototyping an RBAC restriction that would grant `escalate` on all roles but not `bind` on all roles in the Operator RBAC. That adds some guard-rails that are currently missing, but requires this particular ordering to be correct.
/retest |
1 similar comment
/retest |
Is there an issue we can reference for more context? |
Yes, this is in reference to and While limiting the permissions the Operator has, I discovered that today it required the ability to |
source-observer
role before a binding.
Updated in light of the other SA creation having the same issue :) This now creates both SAs after the roles that they need. |
You can also see knative/eventing-operator#109 for what this enables. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cynocracy, n3wscott 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 |
Thanks! |
This is necessary when the installer of the eventing
YAML does not have
bind
on all roles in the cluster.I've been prototyping an RBAC restriction that would
grant
escalate
on all roles but notbind
on allroles in the Operator RBAC. That adds some guard-rails
that are currently missing, but requires this particular
ordering to be correct.
Proposed Changes
source-observer
role before a binding referencing it.Release Note
source-observer
role before a binding referencing it.