kafka-ops / julie

A solution to help you build automation and gitops in your Apache Kafka deployments. The Kafka gitops!
MIT License
418 stars 113 forks source link

RBAC - Add possibility to change consumersGroup role #511

Open damien-malescot opened 2 years ago

damien-malescot commented 2 years ago

Is your feature request related to a problem? Please describe. In JulieOps all consumersGroup's binding are set to RESOURCE_OWNER. It will be great to add ability to change consumersGroup role in topology files.

Describe the solution you'd like Here : https://github.com/kafka-ops/julie/blob/master/src/main/java/com/purbon/kafka/topology/roles/rbac/RBACBindingsBuilder.java#L151

In topology we would like to be able to change group-role like this

    consumers:
      - principal: "Group:CONSUMER_READ"
        group-role: DeveloperRead
      - principal: "Group:CONSUMER_VIEW"
        group-role: DeveloperRead

If group-role is not set, fallback to default : RESOURCE_OWNER