Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Allowed IPs" for APIs not enterable #12238

Closed
gdprdatasubect opened this issue Apr 13, 2023 · 3 comments
Closed

"Allowed IPs" for APIs not enterable #12238

gdprdatasubect opened this issue Apr 13, 2023 · 3 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@gdprdatasubect
Copy link
Contributor

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

@gdprdatasubect gdprdatasubect added the type: bug A confirmed report of unexpected behavior in the application label Apr 13, 2023
@kkthxbye-code
Copy link
Contributor

kkthxbye-code commented 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 kkthxbye-code added the status: revisions needed This issue requires additional information to be actionable label Apr 13, 2023
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed status: revisions needed This issue requires additional information to be actionable labels Apr 21, 2023
@jeremystretch jeremystretch self-assigned this Apr 21, 2023
@jeremystretch
Copy link
Member

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

@gdprdatasubect
Copy link
Contributor Author

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants