"Allowed IPs" for APIs not enterable #7902

Closed
opened 2025-12-29 20:29:43 +01:00 by adam · 3 comments
Owner

Originally created by @gdprdatasubect on GitHub (Apr 13, 2023).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.4.8

Python version

3.8

Steps to Reproduce

Reproducable in demo.netbox.dev

  1. Navigate to HOSTNAME/user/api-tokens/add/
  2. Enter any IP-Address e.g. "127.0.0.1/24"
  3. Click on "Create"
  4. Receive Error-Message "Item 1 in the array did not validate:"

Expected Behavior

Creation of new API-Key and honoring of IP-based access-restrictions

Observed Behavior

API-Key is not created

Originally created by @gdprdatasubect on GitHub (Apr 13, 2023). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.4.8 ### Python version 3.8 ### Steps to Reproduce Reproducable in demo.netbox.dev 1. Navigate to HOSTNAME/user/api-tokens/add/ 2. Enter any IP-Address e.g. "127.0.0.1/24" 3. Click on "Create" 4. Receive Error-Message "Item 1 in the array did not validate:" ### Expected Behavior Creation of new API-Key and honoring of IP-based access-restrictions ### Observed Behavior API-Key is not created
adam added the type: bugstatus: accepted labels 2025-12-29 20:29:43 +01:00
adam closed this issue 2025-12-29 20:29:43 +01:00
Author
Owner

@kkthxbye-code commented on GitHub (Apr 13, 2023):

While the error message is not great, it is supposed to deny it as it is an invalid IPNetworkField value. Try with 127.0.0.0/24.

@kkthxbye-code commented on GitHub (Apr 13, 2023): While the error message is not great, it is supposed to deny it as it is an invalid IPNetworkField value. Try with 127.0.0.0/24.
Author
Owner

@jeremystretch commented on GitHub (Apr 21, 2023):

I'll fix the error message but @kkthxbye-code is correct.

@jeremystretch commented on GitHub (Apr 21, 2023): I'll fix the error message but @kkthxbye-code is correct.
Author
Owner

@gdprdatasubect commented on GitHub (Apr 24, 2023):

Ah thanks, that works, I expected it to accept any IP and calculate the network automatically.

@gdprdatasubect commented on GitHub (Apr 24, 2023): Ah thanks, that works, I expected it to accept any IP and calculate the network automatically.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7902