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 DetailsNeeds 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
bindon all roles in the cluster.I've been prototyping an RBAC restriction that would
grant
escalateon all roles but notbindon 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-observerrole before a binding referencing it.Release Note
source-observerrole before a binding referencing it.