You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/09/18 06:52:17 UTC
[GitHub] [rocketmq] lance12138 opened a new issue #1379: ACL exist a bug
lance12138 opened a new issue #1379: ACL exist a bug
URL: https://github.com/apache/rocketmq/issues/1379
plain_acl.yml 配置文件中如果accessKey命名为admin相关的,且admin参数为true,broker无法启动,且报错:
java.lang.ClassCastException: java.lang.Class cannot be cast to org.apache.rocketmq.acl.AccessValidator
at org.apache.rocketmq.broker.BrokerController.initialAcl(BrokerController.java:503)
at org.apache.rocketmq.broker.BrokerController.initialize(BrokerController.java:470)
at org.apache.rocketmq.broker.BrokerStartup.createBrokerController(BrokerStartup.java:218)
at org.apache.rocketmq.broker.BrokerStartup.main(BrokerStartup.java:58)
报错的配置如下:
`globalWhiteRemoteAddresses:
accounts:
- accessKey: rocketmq1
secretKey: 12345667778
whiteRemoteAddress:
admin: false
defaultTopicPerm: DENY
defaultGroupPerm: SUB
topicPerms:
- topicB=PUB|SUB
- topicC=SUB
groupPerms:
- groupA=DENY
- groupB=PUB|SUB
- groupC=SUB
- accessKey: admin
secretKey: 12345678
whiteRemoteAddress: 192.168.1.*
admin: true
`
亲测有问题,只要accessKey改掉就可以成功启动
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services