You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
IP requests is disabled, but I can request IP addresses per API.
we use foreman for IPAM integration, but can reproduce with API calls.
I create a subnet and leave 'IP requests' disabled.
Then I do
GET /api/my_app/addresses/first_free/{subnetId}/
and phpIPAM provides me with the first IP of the subnet
and
POST /api/my_app/addresses/first_free/{subnetId}/
it will assign this IP address
How can we stop this from happening? there are subnets we dont scan but are full. And IPAM is happily providing IPs out of those nets even if disabled.
The expected result is that both the GET and POST request fail if the subnet is not marked for IP Requests
phpIPAM version
can reproduce with 1.4.2 and 1.5.0
Your Environment (please supply the following information):
phpIPAM version: 1.4.2
OS CentOS Linux release 7.9.2009 (Core)
PHP version PHP 5.4.16
Webserver
Server version: Apache/2.4.6 (CentOS)
Server built: Nov 16 2020 16:18:20
Database mysql Ver 15.1 Distrib 5.5.68-MariaDB, for Linux (x86_64) using readline 5.1
Steps To Reproduce
please see description, contains reproduce steps
Screenshots and error logs
will attach screenshots below
Describe the bug
IP requests is disabled, but I can request IP addresses per API.
we use foreman for IPAM integration, but can reproduce with API calls.
I create a subnet and leave 'IP requests' disabled.
Then I do
GET /api/my_app/addresses/first_free/{subnetId}/
and phpIPAM provides me with the first IP of the subnet
and
POST /api/my_app/addresses/first_free/{subnetId}/
it will assign this IP address
How can we stop this from happening? there are subnets we dont scan but are full. And IPAM is happily providing IPs out of those nets even if disabled.
The expected result is that both the GET and POST request fail if the subnet is not marked for IP Requests
phpIPAM version
can reproduce with 1.4.2 and 1.5.0
Your Environment (please supply the following information):
Server version: Apache/2.4.6 (CentOS)
Server built: Nov 16 2020 16:18:20
Steps To Reproduce
please see description, contains reproduce steps
Screenshots and error logs
will attach screenshots below
post reuqest:
https://10.17.52.52/api/RestRW/addresses/first_free/10
{
"code": 201,
"success": true,
"message": "Address created",
"id": "330",
"data": "10.17.52.3",
"time": 0.018
}
The text was updated successfully, but these errors were encountered: