Summary
This maintenance release is the result of a complete review of two areas:
every place where the plugin adds a tab, button, card, or action to a core
NetBox object, and every call between the plugin and proxbox-api
0.0.33.post3. netbox-proxbox 0.0.33.post6 stays paired with proxbox-api
0.0.33.post3. There is no backend change and no new database migration.
Proxbox surfaces appear only on related objects
Version 0.0.33.post4 scoped the Proxbox tabs on clusters and virtual
machines. The review found more surfaces that did not use the scope rule.
- The Set Proxmox intent button appeared on every virtual machine without
a cluster. It now requires recorded Proxbox evidence for the virtual
machine. - The Proxbox intent card appeared on every branch of the branching plugin.
It now requires a recorded Proxbox branch intent for the branch, or at
least one configured Proxmox endpoint. - The plugin added the Delete Selected action to the virtual machines tab
of every cluster. The action is now rendered only on a cluster that is
related to Proxbox. On every other cluster the tab is the stock NetBox tab;
no stock action is removed or replaced. - The cluster Proxmox Summary tab linked a Proxmox endpoint when the
endpoint name matched the cluster name. It now reads the endpoint only from
the recorded relations. - The Sync Now request for a virtual machine checked the relation only
for the button. The request handler now repeats the check and returns HTTP
404 for an unrelated virtual machine before a job is enqueued.
The scope rule stays in one module, netbox_proxbox/object_scope.py. A name
match is never evidence, and a state that cannot be read hides the surface.
Rows without a value are not displayed
These cards and tabs displayed rows that held no value, such as
"Not configured", "Storage Count 0", a dash, or an empty block: the cluster
summary, the virtual machine Proxmox card, the intent card, the Proxmox
Config, HA, and Cloud-init tabs, the job runtime panel, and the IP address
services row.
Each of them now builds its rows in Python and omits every row without a
value. A card or a section without rows is not rendered. A value of zero or
false that is real data stays visible.
Firewall synchronization reads the backend keys
The firewall synchronization read the keys rules, ip_sets, aliases, and
options from each entry of the backend firewall summary. The backend
returns datacenter_rules, security_groups, datacenter_ipsets,
datacenter_aliases, datacenter_options, and the node and guest families.
Because of that difference, the synchronization imported only security
groups and reported success.
The synchronization now reads exactly the keys that the backend returns. A
contract test holds the backend field set as a fixed table.
Guest IP set entry update uses the correct URL
An update of an IP set entry on a virtual machine or a container appended the
CIDR after the query string, so the request did not reach the backend update
route. The encoded CIDR is now placed in the path before the query string.
The datacenter scope was correct and is unchanged.
Backend logs page works with backend authentication
The backend logs page called proxbox-api directly from the browser without
the backend key. The backend requires the key, so the page could not load
logs.
The page now calls two plugin views on NetBox: one for a page of log records
and one for the live event stream. The views add the stored backend key on
the server and forward only the documented log filters. The backend address
and the backend key are no longer sent to the browser. Log text is rendered
as text, never as markup.
Permission change: The backend logs page and its two relay views now require the permission to change the Proxbox plugin settings. Read access to a backend endpoint record is no longer sufficient, because the views use the server-held backend key on administrative backend routes.
Other contract corrections
- An intent apply for a virtual machine without a VMID or a target node now
fails only that virtual machine, with a specific message. Before, the
backend rejected the whole request. - The plugin no longer sends the
netbox_endpoint_idsquery parameter, which
the backend does not read. The selection stays in the plugin job data. - The backup serializer accepts the
subtypevalues that the backend
single-VM backup synchronization sends. A known value is kept, a Proxmox
Backup Server format maps to its guest type, and any other value is stored
asundefined. Before, the request was rejected and the backup row was not
written. - An uncalled firewall function that sent a request without a required
parameter is removed.
Known limits of the published pair
The review also found differences that need a new proxbox-api version. They
are not corrected by this release:
- The SDN fabric synchronization of the backend does not import fabrics.
- A Proxmox session that the backend builds from NetBox-held endpoint data
cannot read the endpoint credentials. Sessions that use the backend
database work. - The plugin encryption key rotation requires status fields that the backend
does not return, so the rotation stops without a change.
Upgrade
Install netbox-proxbox 0.0.33.post6 over 0.0.33.post5, run the normal
collectstatic step, and restart NetBox. No migration runs. proxbox-api
0.0.33.post3 stays the required backend; no backend upgrade is necessary.
Compatibility
| NetBox | netbox-proxbox | proxbox-api | netbox-sdk (backend internal, REST only) | proxmox-sdk |
|---|---|---|---|---|
| 4.5.8-4.7.0 GA | v0.0.33.post6 | v0.0.33.post3 | v0.0.13 | v0.0.16.post1 |
The supported NetBox range remains 4.5.8 through 4.7.99.