本文来源于阿里云社区电子书《阿里云产品四月刊》
《阿里云产品四月刊》—Apache RocketMQ ACL 2.0 全新升级(5)https://developer.aliyun.com/article/1554221
集群配置
参数列表
想要在服务端开启认证功能,相关的参数和使用案例主要包含如下:
Broker 配 置
authenticationEnabled = true authenticationProvider org.apache.rocketmq.auth.authentication.provider.DefaultAuthenticati onProvider initAuthenticationUser {"username":"rocketmq","password":"12345678"} innerClientAuthenticationCredentials {"accessKey":"rocketmq","secretKey":"12345678"} authenticationMetadataProvider org.apache.rocketmq.auth.authentication.provider.LocalAuthentication MetadataProvider
Proxy 配 置
{ "authenticationEnabled": true, "authenticationProvider": "org.apache.rocketmq.auth.authentication.provider.DefaultAuthenticat ionProvider", "authenticationMetadataProvider": "org.apache.rocketmq.proxy.auth.ProxyAuthenticationMetadataProvider", "innerClientAuthenticationCredentials": "{\"accessKey\":\"rocketmq\", \"secretKey\":\"12345678\"}"}
参数列表
想要在服务端开启授权功能,相关的参数和使用案例主要包含如下:
Broker 配 置
authorizationEnabled = true authorizationProvider org.apache.rocketmq.auth.authorization.provider.DefaultAuthorization ProviderauthorizationMetadataProvider = org.apache.rocketmq.auth.authorization.provider.LocalAuthorizationMe tadataProvider
Proxy 配 置
{ "authorizationEnabled": true,
"authorizationProvider": "org.apache.rocketmq.auth.authorization.provider.DefaultAuthorizatio nProvider", "authorizationMetadataProvider": "org.apache.rocketmq.proxy.auth.ProxyAuthorizationMetadataProvider"}
《阿里云产品四月刊》—Apache RocketMQ ACL 2.0 全新升级(7)https://developer.aliyun.com/article/1554218