Skip to main content
netbox change control

Policy-driven change control and mandatory review for NetBox branches

change requests • policies • checks • comments

PyPI version Tests License NetBox compatibility netbox-branching compatibility Python version

Documentation | Install | Compatibility | Policies | Checks | Changelog

This plugin builds on netbox-branching. A branch stages your changes; this plugin decides who must approve them and refuses the merge until they have.

Who must approve is decided by what the branch changes, not by who opened it. Two independent gates guard the merge: people approve through policies, and pre-merge checks verify. A check can be your own Python function or a result that CI posts over the REST API, so the gate can wait for a pipeline or ask a model to review the diff.

How it works | Features | Requirements | Quick install | Documentation

https://github.com/user-attachments/assets/9084f634-e8b7-4dc0-9d38-cf4d4c36c35d

Inspiration

This plugin takes ideas from:

  • NetBox Labs change management: policies and rules governing who must review a branch.
  • GitHub: status checks that gate a merge independently of human approval, and review comments anchored to a specific change.
  • Infrahub by OpsMill: a proposed change as a first-class object that carries its own validation.

A change request, showing the approval status, the pre-merge checks and the conflict banner

How it works

  1. Someone creates a branch and makes their changes inside it, as normal for netbox-branching.
  2. They open a change request against that branch.
  3. The plugin reads which object types the branch touches and attaches every policy whose scope matches. A policy can narrow further on the values of the objects themselves. The author cannot remove them.
  4. Each policy contains rules. A rule says how many approvals it needs and who may give them.
  5. Reviewers approve, request changes, or comment. They can also comment on one specific changed object.
  6. Independently, the pre-merge checks named by those policies run. A required check that is not passing blocks the merge on its own.
  7. Once every rule is satisfied and every required check passes, the merge button appears.
  8. After the merge, the request is marked completed.

Two gates guard the merge and they are independent: the people gate (policies and reviews) and the machine gate (checks). A change can be approved by every reviewer and still be refused by a check.

Features

Change requests

  • One change request per branch, with a status and a priority.
  • Status set to completed after a successful merge, and back to draft with stale reviews after a revert.
  • A History tab with each status change, its approvers, and every merge and revert.
  • A change request survives the deletion of its branch.

Policies and reviews

  • Policies containing rules with a minimum approval count, naming reviewer groups and individual reviewers.
  • Policies attached automatically, scope-matched from the branch contents and following it as it changes. The author cannot select or remove them.
  • Policy conditions, narrowing a policy on the values of the changed objects.
  • Reviews with approve, request changes, and comment.
  • Per-change comments on the branch diff, with threaded replies, in Markdown.
  • Approvals go stale when the branch changes after them.
  • Policies reevaluated when a rule, a reviewer or a group membership changes.
  • Notifications to reviewers, through NetBox's notification inbox.

Merge gate

  • Pluggable pre-merge checks, in-process or reported over the REST API.
  • Merge button once the change request is approved, on the change request and on the branch.
  • Change windows, with an override permission.
  • Automatic merge once every gate is satisfied.
  • The gate is enforced whether or not protect_main is on.

Protecting main

  • protect_main blocks direct edits outside a branch, optionally scoped, with a bypass permission.

API

  • REST API for every model.

Requirements

Component Version
NetBox >= 4.7.6, < 4.8
netbox-branching >= 1.2.2, < 1.3
Python >= 3.12

This is the NetBox 4.7 line. For NetBox 4.6, stay on the 0.4.x line; the two do not overlap, because netbox-branching 1.1.x and 1.2 do not either. The compatibility matrix has every release, and Installation covers moving between the two lines.

Quick install

# configuration/plugins.py
PLUGINS = [
    'netbox_change_control',
    'netbox_branching',          # must stay last
]

PLUGINS_CONFIG = {
    'netbox_branching': {
        'exempt_models': ['netbox_change_control.*'],   # required
    },
}
./manage.py migrate netbox_change_control

See Installation and configuration for the detail, including why exempt_models is not optional.

Documentation

The full documentation is a website: antoinekh.github.io/netbox-change-control. Start with:

Page Covers
Installation and configuration Requirements, installing, and every setting.
Policies and rules Scoping a policy and writing rules.
Pre-merge checks What checks are and which ship built in.
Writing your own checks The registry, an AI reviewer, and reporting from CI.
REST API Every endpoint.

Metadata

Release files for netbox-change-control 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netbox-change-control 0.9.0
File Size Uploaded Provenance Actions
netbox_change_control-0.9.0.tar.gz 182.6 kB With provenance Details for netbox_change_control-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for netbox-change-control 0.9.0
File Interpreter ABI Platform Actions
netbox_change_control-0.9.0-py3-none-any.whl Python 3 none any Details for netbox_change_control-0.9.0-py3-none-any.whl

Total release size: 431.7 kB

Release files / netbox_change_control-0.9.0.tar.gz

Download URL netbox_change_control-0.9.0.tar.gz
Size 182.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0585a74ac577f00a656e445d57e7dfd70ada8794d656d05ef5e5d3945a555f54
BLAKE2b-256 checksum
How to use checksums
027edef7fbc138aa8d6c91aa35bfd7e3f1203c8c7f4274d9045e36f81e36273f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / netbox_change_control-0.9.0-py3-none-any.whl

Download URL netbox_change_control-0.9.0-py3-none-any.whl
Size 249.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2abefd4a5db807693068e52a95e40c0cc73794d97b2f6992645ffd067040ef5c
BLAKE2b-256 checksum
How to use checksums
3b819ca9d9a42f1bb34f2c7a1f93b209538bd194f5b98aa0387d848c410bd554
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for netbox-change-control 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for netbox_change_control-0.9.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page