kafka-gitops icon indicating copy to clipboard operation
kafka-gitops copied to clipboard

is it possible to specify multiple operations related to a single resource for acts

Open mundey opened this issue 3 years ago • 2 comments

when needed to specify entries for a service account but operations on same topic/group/resource, there is repetition. could it be possible to add operations in a single entry:

customServiceAcls:
  dev_mgmt-test:
    d-cg-thg:
      name: test.hello-group
      type: GROUP
      pattern: LITERAL
      host: "*"
      operation: DESCRIBE,DESCRIBE_CONFIGS,READ
      permission: ALLOW

mundey avatar Feb 26 '21 19:02 mundey

I agree, this would make state file less verbose. And it would be closer to what kafka-acl tool can do in a single run. But it would make plan computation harder I guess.

gquintana avatar May 04 '21 15:05 gquintana

This was a stylistic choice we made when building the tool -- for custom ACLs, we wanted each ACL explicitly defined so there was less "black magic" happening since you are defining actual ACLs, not an abstraction like a service.

However, I can see the benefit in allowing something like multiple operations.

devshawn avatar May 14 '21 17:05 devshawn