-
Notifications
You must be signed in to change notification settings - Fork 228
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
WorkloadIdentityBinding: permissions to read namespaces, write IAMPolicyMembers #3497
base: main
Are you sure you want to change the base?
Conversation
We need to get the project-id annotation from the namespace.
@@ -26,6 +26,14 @@ rules: | |||
verbs: | |||
- create | |||
- patch | |||
- apiGroups: |
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.
Currently the porch make targets doesn't use this file directly, but rather use the rbac from https://github.com/GoogleContainerTools/kpt/blob/main/porch/deployments/porch/9-controllers.yaml#L57. I'm meaning to fix this, but until that is fixed we need to update the rbac rules directly in that file.
//+kubebuilder:rbac:groups="",resources=namespaces,verbs=get;list;watch | ||
|
||
// Creates iampolicymembers (using server-side-apply) | ||
//+kubebuilder:rbac:groups=iam.cnrm.cloud.google.com,resources=iampolicymembers,verbs=get;list;watch;create;update;patch;delete |
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.
oh, this looks really cool!
We need to get the project-id annotation from the namespace, and we need permission to create IAMPolicyMembers