Skip to content

[ISSUE #407] Support wildcard IPs in ACL whitelist#10596

Open
itxaiohanglover wants to merge 1 commit into
apache:developfrom
itxaiohanglover:fix/acl-ip-wildcard-and-npe
Open

[ISSUE #407] Support wildcard IPs in ACL whitelist#10596
itxaiohanglover wants to merge 1 commit into
apache:developfrom
itxaiohanglover:fix/acl-ip-wildcard-and-npe

Conversation

@itxaiohanglover

Copy link
Copy Markdown

Fixes apache/rocketmq-dashboard#407. IPAddressUtils.isIPInRange did not recognize 0.0.0.0, ::, or * as wildcard addresses. When users configured 0.0.0.0 in ACL IP whitelist, it only matched the exact IP instead of all IPs.

IPAddressUtils.isIPInRange did not recognize 0.0.0.0, ::, or * as
wildcard addresses. When a user configured 0.0.0.0 in the ACL IP
whitelist, it only matched the exact IP 0.0.0.0 instead of all IPs.

Add support for:
- 0.0.0.0 and 0.0.0.0/0: match any IPv4 address
- :: and ::/0: match any IPv6 address
- *: match any address

Added test cases for all wildcard patterns.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

acl配置IP白名单 没权限问题

1 participant