Skip to content

Support negative permissions constraints #20828

@llamafilm

Description

@llamafilm

NetBox version

v4.4.6

Feature type

New functionality

Proposed functionality

I'd like to create permissions constraints with negations. The constraint JSON syntax would use the same lookup expressions which are already supported in the REST API, for example {"vrf_id__n": null}.

Use case

I've built a few automations to pull in data from external sources into Netbox. I don't want users to edit those objects because any changes may break the automation. One example is: Prefixes in the global VRF are imported from BloxOne DDI, so users should not be able to edit them. We have a number of air-gapped networks, which each use overlapping 192.168 address space. Each of those is modeled as a separate VRF in Netbox, and users should be able to manipulate those Prefixes freely. So I would like to create 2 separate permissions for Prefix editing, one with {"vrf_id": null} and the other with {"vrf_id__n": null}

Database changes

No response

External dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    netboxstatus: revisions neededThis issue requires additional information to be actionabletype: featureIntroduction of new functionality to the application

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions