-
Notifications
You must be signed in to change notification settings - Fork 11.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.1.0 版本开启了acl,但是客户端错误账号也可以访问 #6768
Comments
Proxy启用了ACL了? |
能告诉一下如何设置吗? |
It appears that the ACL file failed to load successfully. |
And you should enable acl in private boolean enableACL = false; |
1 similar comment
And you should enable acl in private boolean enableACL = false; |
我在 启动日志: 我修改过 同样在 |
想问一下这个bug真的解决了吗?为什么我用5.1.2版本也依旧无效? @bugCats |
升级有用,估计是你参数配置有问题。 |
想问一下你测试过使用的是conf/plain_acl.yml还是conf/acl/plain_acl.yml吗? |
Before Creating the Bug Report
I found a bug, not just asking a question, which should be created in GitHub Discussions.
I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.
I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
Runtime platform environment
Linux centos7 version 3.10.0-514.6.2.el7.x86_64
RocketMQ version
5.1.0
JDK Version
1.8.0_11
Describe the Bug
rocketMQ服务端启用了acl,但是客户端即便使用错误的账号也可以发布、接收消息
Steps to Reproduce
conf/broker.conf
文件,增加:aclEnable = true
rocketmq-client-java.5.0.5.jar
broker启动日志:
2023-05-17 10:49:59 INFO main - transactionOpBatchInterval=3000
2023-05-17 10:49:59 INFO main - aclEnable=true
2023-05-17 10:49:59 INFO main - storeReplyMessageEnable=true
..........
2023-05-17 10:50:00 INFO main - Broker plain acl conf data is : {"dataVersion":[{"counter":5,"timestamp":1684290520350}],"accounts":[{"accessKey":"RocketMQ","secretKey":12345678,"admin":false,"defaultTopicPerm":"DENY","defaultGroupPerm":"SUB","topicPerms":["topicA=DENY","topicB=PUB|SUB","topicC=SUB"],"groupPerms":["groupA=DENY","groupB=PUB|SUB","groupC=SUB"]},{"accessKey":"bugCatsadmin","secretKey":"12345678","admin":true},{"accessKey":"rocketmq2","secretKey":"12345678","admin":true}]}
2023-05-17 10:50:00 INFO main - The default acl dir /usr/local/rocketmq/rocketmq-5.1.0/conf/acl is not exist
2023-05-17 10:50:00 INFO main - Try to start service thread:AclFileWatchService started:false lastThread:null
2023-05-17 10:50:00 INFO main - Succeed to start AclFileWatchService
2023-05-17 10:50:00 INFO AclFileWatchService - AclFileWatchService service started
.......
在自己电脑,访问部署在公网上的rocketMq服务端,采用
rocketmq-client-java.5.0.5.jar
包中的示例代码:org.apache.rocketmq.client.java.example.PushConsumerExample
。无论使用什么账号密钥,都可以正常发布、接收消息。当客户端连接上时日志:
2023-05-17 10:53:05 INFO GrpcClientManagerThreadPool-0 - new consumer connected, group: tmcGroup CONSUME_PASSIVELY CLUSTERING channel: ClientChannelInfo [channel=GrpcClientChannel{clientId=bugcat@16088@0@566ixygv0z, remoteAddress=171.113.110.88:39414, localAddress=172.17.11.27:15891}, clientId=bugcat@16088@0@566ixygv0z, language=JAVA, version=433, lastUpdateTimestamp=1684291985413]
What Did You Expect to See?
只有正常账号密钥才能访问rocketmq服务端
What Did You See Instead?
无论使用什么账号密钥,都可以正常发布、接收消息
Additional Context
No response
The text was updated successfully, but these errors were encountered: