ACL配置多个白名单
Search before creation
- [X] I had searched in the issues and found no similar issues.
Documentation Related
根据文档https://rocketmq.apache.org/zh/docs/bestPractice/03access/中提示,在whiteRemoteAddress中添加白名单时,多个网段使用";"分割,但是我使用whiteRemoteAddress: "192.168.6.;10.244..*"作为参数时,我的dashboard访问不了,我dashboard的网段就是10.244网段的。如果我使用一个网段就正常
Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
配置成
192.168.6.;10.244..* 看看?
不行的,
后来发现我配置多个是可以的 `accounts:
- accessKey: admin secretKey: "demo123" whiteRemoteAddress: "10.244.." admin: true defaultTopicPerm: PUB|SUB defaultGroupPerm: SUB
- accessKey: admin secretKey: "demo123" whiteRemoteAddress: "10.96.." admin: true defaultTopicPerm: PUB|SUB defaultGroupPerm: SUB`
看了一下,这里的文档应该是不对的。RemoteAddressStrategyTest 实际上这种直接逗号分隔的,只支持精确匹配。
单个的菜支持模糊匹配。具体可看 RemoteAddressStrategyFactory
但是我使用逗号分隔也是不行的,启动不起来,无法做到限制
This issue is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs.
This issue was closed because it has been inactive for 3 days since being marked as stale.