Tushar H
Tushar H

Reputation: 805

Kafka ACL: wildcard(*) suffixed topic name support

I am following the https://docs.confluent.io/current/kafka/authorization.html#adding-or-removing-a-principal-as-producer-or-consumer for adding ACL's to my Kafka cluster.

As per above doc, we can add ACL with prefixed topic name, like:

bin/kafka-acls.sh --authorizer-properties zookeeper.connect=localhost:2181 \ 
--add --allow-principal User:Jane --producer --topic Test- --resource-pattern-type prefixed

This allows User Jane to access all topics whose name start with Test-

What I am looking for is - can I do the same for topic name suffix? I mean How can I allow User Jane to access all topics whose name end with _Test

Upvotes: 4

Views: 9160

Answers (1)

OneCricketeer
OneCricketeer

Reputation: 191738

For the options of --resource-pattern-type there is not a suffix, but there is a match or literal.

Perhaps you can try using something like '*_Test' with one of those options.

Upvotes: 1

Related Questions