gpt4 book ai didi

apache-kafka - 卡夫卡访问控制列表 : wildcard(*) suffixed topic name support

转载 作者:行者123 更新时间:2023-12-05 06:27:55 25 4
gpt4 key购买 nike

我正在关注 https://docs.confluent.io/current/kafka/authorization.html#adding-or-removing-a-principal-as-producer-or-consumer用于将 ACL 添加到我的 Kafka 集群。

根据上面的文档,我们可以添加带有前缀主题名称的 ACL,例如:

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

这允许用户 Jane 访问名称以 Test- 开头的所有主题

我正在寻找的是 - 我可以对主题名称后缀做同样的事情吗?我的意思是如何允许用户 Jane 访问名称以 _Test

结尾的所有主题

最佳答案

--resource-pattern-type 的选项没有后缀but there is a match or literal .

也许您可以尝试将 '*_Test' 之类的东西与这些选项之一一起使用。

关于apache-kafka - 卡夫卡访问控制列表 : wildcard(*) suffixed topic name support,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54864129/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com