Skip to content

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

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