[PR #8865] [CLOSED] Closes #8233 Restrict API key usage by source IP #13399

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8865
Author: @PieterL75
Created: 3/14/2022
Status: Closed

Base: masterHead: master


📝 Commits (10+)

📊 Changes

12 files changed (+99 additions, -5 deletions)

View changed files

📝 base_requirements.txt (+4 -0)
📝 docs/release-notes/version-3.1.md (+10 -0)
📝 netbox/netbox/api/authentication.py (+19 -0)
📝 netbox/netbox/settings.py (+1 -0)
📝 netbox/templates/users/api_tokens.html (+8 -0)
📝 netbox/users/admin/__init__.py (+3 -2)
📝 netbox/users/admin/forms.py (+1 -1)
📝 netbox/users/api/serializers.py (+1 -1)
📝 netbox/users/forms.py (+1 -1)
netbox/users/migrations/0002_token_allowed_ips.py (+20 -0)
📝 netbox/users/models.py (+30 -0)
📝 requirements.txt (+1 -0)

📄 Description

Implements: #8233


🔄 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/8865 **Author:** [@PieterL75](https://github.com/PieterL75) **Created:** 3/14/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`556bfad`](https://github.com/netbox-community/netbox/commit/556bfad66a4975109644c63aec4806328c554a8d) #8233 Restrict API key usage by source IP - [`a37d089`](https://github.com/netbox-community/netbox/commit/a37d0897c2a6fc608852faf97d45d73a032f7a25) #8233 Restrict API key usage by source IP - [`f1fdd00`](https://github.com/netbox-community/netbox/commit/f1fdd0042773274bd0c773bc1f41b8b53fccd633) Merge branch 'master' into master - [`a8114e9`](https://github.com/netbox-community/netbox/commit/a8114e9c53e4c5416c2693480a1bd6bde6075516) #8233 Fix PEP8 compliances - [`4b110e7`](https://github.com/netbox-community/netbox/commit/4b110e735b430f044d1dca9c8b217e2dfe8088a5) Merge branch 'master' of https://github.com/PieterL75/netbox - [`a8d54f7`](https://github.com/netbox-community/netbox/commit/a8d54f76fecc185416188e6a7e1b7745decfe5e5) Added #8233 Restrict API key usage by source IP - [`82f26b3`](https://github.com/netbox-community/netbox/commit/82f26b34e307f77cf789139d07f5c6c9f2ae4350) #8233 FIX PEP8 Compliances - [`a9652df`](https://github.com/netbox-community/netbox/commit/a9652df871bbaad3a37c0d4731229ffb39d34f1c) Implement suggestions - [`ab3db69`](https://github.com/netbox-community/netbox/commit/ab3db69c97e750be9c81fb36ee78a866b773aad9) Added django_better_admin_arrayfield - [`ed4368d`](https://github.com/netbox-community/netbox/commit/ed4368d6e4ce9e389d2071ee17a15c81ea7b5565) Fix PEP8 compliance ### 📊 Changes **12 files changed** (+99 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `base_requirements.txt` (+4 -0) 📝 `docs/release-notes/version-3.1.md` (+10 -0) 📝 `netbox/netbox/api/authentication.py` (+19 -0) 📝 `netbox/netbox/settings.py` (+1 -0) 📝 `netbox/templates/users/api_tokens.html` (+8 -0) 📝 `netbox/users/admin/__init__.py` (+3 -2) 📝 `netbox/users/admin/forms.py` (+1 -1) 📝 `netbox/users/api/serializers.py` (+1 -1) 📝 `netbox/users/forms.py` (+1 -1) ➕ `netbox/users/migrations/0002_token_allowed_ips.py` (+20 -0) 📝 `netbox/users/models.py` (+30 -0) 📝 `requirements.txt` (+1 -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. --> ### Implements: #8233 <!-- This PR will add (optional) Source IP restrictions to the API key --> --- <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:11 +01:00
adam closed this issue 2025-12-29 22:27:11 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13399