User without sufficient permission can create an IP address via FHRP group creation #7145

Closed
opened 2025-12-29 20:19:42 +01:00 by adam · 1 comment
Owner

Originally created by @jeremystretch on GitHub (Oct 21, 2022).

Originally assigned to: @arthanson on GitHub.

NetBox version

v3.3.5

Python version

3.8

Steps to Reproduce

  1. Create a user with permission to view and create FHRP groups but not IP addresses.
  2. Authenticate as that user.
  3. Create an FHRP group with any valid values, and also specify an IP address and status.

Expected Behavior

The creation of an IP address should not be permitted, as the user lacks sufficient permissions.

Observed Behavior

The IP address is created.

Originally created by @jeremystretch on GitHub (Oct 21, 2022). Originally assigned to: @arthanson on GitHub. ### NetBox version v3.3.5 ### Python version 3.8 ### Steps to Reproduce 1. Create a user with permission to view and create FHRP groups but not IP addresses. 2. Authenticate as that user. 3. Create an FHRP group with any valid values, and also specify an IP address and status. ### Expected Behavior The creation of an IP address should not be permitted, as the user lacks sufficient permissions. ### Observed Behavior The IP address is created.
adam added the type: bugstatus: accepted labels 2025-12-29 20:19:42 +01:00
adam closed this issue 2025-12-29 20:19:42 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 26, 2022):

To be clear, @arthanson's approach in #10747 is greatly preferred over my hack. However, as noted in the PR adding a new method to a generic view would technically be a breaking change to the plugins API, so we'll have to defer for now.

@jeremystretch commented on GitHub (Oct 26, 2022): To be clear, @arthanson's approach in #10747 is greatly preferred over my hack. However, as noted in the PR adding a new method to a generic view would technically be a breaking change to the plugins API, so we'll have to defer for now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7145