You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "jackshenonly (via GitHub)" <gi...@apache.org> on 2023/10/17 08:15:41 UTC
[I] [Feature] ACL 远程地址配置 支持域名 [rocketmq]
jackshenonly opened a new issue, #7470:
URL: https://github.com/apache/rocketmq/issues/7470
### Is Your Feature Request Related to a Problem?
希望在acl 配置文件中,如下参数whiteRemoteAddress, globalWhiteRemoteAddresses ,支持hosts域名的配置。
`globalWhiteRemoteAddresses `
`- 127.0.0.1`
`- 192.168.3.*`
### Describe the Solution You'd Like
cat /etc/hosts
`127.0.0.1 domain1 `
`127.0.0.2 domain2 `
`127.0.0.3 domain3 `
希望达到如下效果
`globalWhiteRemoteAddresses `
`- domain1`
`- domain2 `
`- domain3`
目前这样配置的话,会有AclException
```
public OneRemoteAddressStrategy(String netaddress) {
this.netaddress = netaddress;
InetAddressValidator validator = InetAddressValidator.getInstance();
if (!(validator.isValidInet4Address(netaddress) || validator.isValidInet6Address(netaddress))) {
throw new AclException(String.format("**Netaddress examine Exception netaddress** is %s", netaddress));
}
}
```
### Describe Alternatives You've Considered
方便配置。
### Additional Context
_No response_
--
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.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature] ACL 远程地址配置 支持域名 [rocketmq]
Posted by "jackshenonly (via GitHub)" <gi...@apache.org>.
jackshenonly commented on issue #7470:
URL: https://github.com/apache/rocketmq/issues/7470#issuecomment-1782356971
ok明白了,谢谢你
--
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.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature] ACL 远程地址配置 支持域名 [rocketmq]
Posted by "drpmma (via GitHub)" <gi...@apache.org>.
drpmma closed issue #7470: [Feature] ACL 远程地址配置 支持域名
URL: https://github.com/apache/rocketmq/issues/7470
--
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.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature] ACL 远程地址配置 支持域名 [rocketmq]
Posted by "drpmma (via GitHub)" <gi...@apache.org>.
drpmma commented on issue #7470:
URL: https://github.com/apache/rocketmq/issues/7470#issuecomment-1782334169
并且并不推荐生产上使用whiteRemoteAddress,globalWhiteRemoteAddresses,目前版本的白名单会跳过鉴权,会存在安全风险。
后续会考虑废除该字段,改为同时需要满足在白名单之内且满足鉴权要求。
Moreover, it is not advisable to use "whiteRemoteAddress" and "globalWhiteRemoteAddresses" in production. The current version of the whitelist bypasses authentication, posing a security risk. In the future, we will consider deprecating this field and instead require compliance with both the whitelist and authentication criteria.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature] ACL 远程地址配置 支持域名 [rocketmq]
Posted by "drpmma (via GitHub)" <gi...@apache.org>.
drpmma commented on issue #7470:
URL: https://github.com/apache/rocketmq/issues/7470#issuecomment-1782329924
网络传输协议层决定了服务端只能拿到对端ip,该issue在技术上是无法实现的。
The network transport protocol layer determines that the server can only obtain the IP address of the network endpoint. This issue is technically unattainable.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org