[PR #9167] [CLOSED] Implement #8233: Restrict API key usage by source IP #13439

Closed
opened 2025-12-29 22:27:25 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/9167
Author: @PieterL75
Created: 4/19/2022
Status: Closed

Base: featureHead: issue_8878


📝 Commits (2)

  • 2587720 Fix 8878: Restrict API key usage by Source IP
  • 086e34f Updated docs relnotes to refer to 8233

📊 Changes

9 files changed (+101 additions, -8 deletions)

View changed files

📝 docs/release-notes/version-3.3.md (+1 -0)
📝 netbox/netbox/api/authentication.py (+26 -0)
📝 netbox/templates/users/api_tokens.html (+11 -4)
📝 netbox/users/admin/__init__.py (+5 -1)
📝 netbox/users/admin/forms.py (+1 -1)
📝 netbox/users/api/serializers.py (+1 -1)
📝 netbox/users/forms.py (+9 -1)
netbox/users/migrations/0003_token_allowed_ips.py (+20 -0)
📝 netbox/users/models.py (+27 -0)

📄 Description

Fixes: 8233

Restrict API key usage by source IP


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/9167 **Author:** [@PieterL75](https://github.com/PieterL75) **Created:** 4/19/2022 **Status:** ❌ Closed **Base:** `feature` ← **Head:** `issue_8878` --- ### 📝 Commits (2) - [`2587720`](https://github.com/netbox-community/netbox/commit/25877202983182fd12a7b6a31dedca7edf5a589c) Fix 8878: Restrict API key usage by Source IP - [`086e34f`](https://github.com/netbox-community/netbox/commit/086e34f728c4fb873b7e63561bc901e9954a5ec3) Updated docs relnotes to refer to 8233 ### 📊 Changes **9 files changed** (+101 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-notes/version-3.3.md` (+1 -0) 📝 `netbox/netbox/api/authentication.py` (+26 -0) 📝 `netbox/templates/users/api_tokens.html` (+11 -4) 📝 `netbox/users/admin/__init__.py` (+5 -1) 📝 `netbox/users/admin/forms.py` (+1 -1) 📝 `netbox/users/api/serializers.py` (+1 -1) 📝 `netbox/users/forms.py` (+9 -1) ➕ `netbox/users/migrations/0003_token_allowed_ips.py` (+20 -0) 📝 `netbox/users/models.py` (+27 -0) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: 8233 Restrict API key usage by source IP --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:27:25 +01:00
adam closed this issue 2025-12-29 22:27:25 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13439