magento2
magento2 copied to clipboard
[Issue] Allow use of CIDR ranges in maintenance allow list
This issue is automatically created based on existing pull request: magento/magento2#30699: Allow use of CIDR ranges in maintenance allow list
Description
The current maintenance mode allow IP list only permits individual addresses to be allowed to bypass maintenance mode. This pull request expands this to allow ranges in CIDR format.
Related Pull Requests
https://github.com/magento/partners-magento2ee/pull/407
Fixed Issues
- Fixes https://github.com/magento/community-features/issues/233
Manual testing scenarios
- Enable maintenance mode with
php bin/magento maintenance:enable
- Allow individual IP address, eg
php bin/magento maintenance:allow-ips --add 192.168.10.180
- Allow multiple individual IP addresses, eg
php bin/magento maintenance:allow-ips --add 192.168.10.170 192.168.10.190
- Allow range of IP addresses, eg
php bin/magento maintenance:allow-ips --add 192.168.10.160/27
- Allow IPv4 & IPv6 addresses, eg
php bin/magento maintenance:allow-ips --add 192.168.46.0/24 fd12:3456:789a:1::1/64
Questions or comments
None
Contribution checklist (*)
- [x] Pull request has a meaningful description of its purpose
- [x] All commits are accompanied by meaningful commit messages
- [x] All new or changed code is covered with unit/integration tests (if applicable)
- [x] All automated tests passed successfully (all builds are green)
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-9432 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Lima. Thank you for verifying the issue.
Issue Available: @engcom-Lima, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.