Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

justinsb
Copy link
Contributor

@justinsb justinsb commented Aug 25, 2022

We need to get the project-id annotation from the namespace, and we need permission to create IAMPolicyMembers

We need to get the project-id annotation from the namespace.
@justinsb justinsb changed the title WorkloadIdentityBinding: needs RBAC permissions to read namespaces WorkloadIdentityBinding: permissions to read namespaces, write IAMPolicyMembers Aug 25, 2022
@justinsb
Copy link
Contributor Author

cc @apelisse ... what are the permissions needed for SSA? I couldn't find them documented anywhere.

/assign @apelisse

@@ -26,6 +26,14 @@ rules:
verbs:
- create
- patch
- apiGroups:
Copy link
Contributor

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
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants