Skip to content

Conversation

@Samze
Copy link
Contributor

@Samze Samze commented Oct 3, 2022

This automatically sets up the RBAC required to work with implementors of the Service Binding specification.

As per the spec recommendation:

Cluster operators and CRD authors SHOULD opt-in resources to expose provisioned services by defining a ClusterRole with a label matching servicebinding.io/controller=true
From https://servicebinding.io/spec/core/1.0.0/#considerations-for-role-based-access-control-rbac

This closes #1149

Note to reviewers: remember to look at the commits in this PR and consider if they can be squashed

Summary Of Changes

Adds a new ClusterRole with the appropriate servicebinding.io/controller=true label. The default kustomize configuration appends rabbitmq-cluster- to the resource name.

This automatically sets up the RBAC required to work with implementors
of the Service Binding specification.

As per the spec recommendation:
> Cluster operators and CRD authors SHOULD opt-in resources to expose provisioned services by defining a ClusterRole with a label matching servicebinding.io/controller=true
From https://servicebinding.io/spec/core/1.0.0/#considerations-for-role-based-access-control-rbac
@Samze Samze marked this pull request as draft October 3, 2022 19:27
@Samze Samze changed the title Draft: Add Aggregating ClusterRole for Service Bindings Add Aggregating ClusterRole for Service Bindings Oct 3, 2022
@ChunyiLyu ChunyiLyu marked this pull request as ready for review October 6, 2022 16:47
@ChunyiLyu ChunyiLyu merged commit 5dd4992 into rabbitmq:main Oct 7, 2022
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.

Install recommended Service Binding spec RBAC for provisioned service type

2 participants