3
[ ~/proxbox-api/releases/v0.0.7.post1 ]tty0

emerson@netdevops:~/proxbox-api$ gh release view v0.0.7.post1 --repo emersonfelipesp/proxbox-api

back to releases / back to project

v0.0.7.post1 — Settings auth fix & sync correctness

[open on GitHub]
tag=v0.0.7.post1state=stablepublished=2026-04-17synced=2026-05-07 07:04 UTC
author
emersonfelipesp
created
2026-04-17 18:15 UTC
target
main
downloads
0

emerson@netdevops:~/proxbox-api$ cat RELEASE_NOTES.md

What's Changed

Bug Fixes

  • fix(settings_client): Replace hand-rolled Authorization header with authorization_header_value() from netbox_sdk.config. The old code produced nbt <key>:<secret> for v2 tokens instead of the correct Bearer nbt_<key>.<secret>, causing every v2-token request to be treated as anonymous and rejected with 403 by NetBox. (#45)
  • fix(replications): Use base_query= keyword argument in rest_list_paginated_async call — previously the wrong keyword query= was silently ignored, so active-replication filtering never applied.
  • fix(backups): Allow compute_backup_payload to look up Proxmox storage without a cluster_name — prevents KeyError when cluster name is absent.
  • fix(vm_network): Use primary_ip4_id filter in _clear_primary_ip_on_parent to correctly target the VM's primary IP assignment.
  • fix(tests): Fix test_mark_stale_replications fake to capture base_query= instead of query=, matching the real rest_list_paginated_async signature (the test was always asserting None).

Chores

  • Pin proxmox-sdk to 0.0.2.post3.
  • Commit pending schema updates, tag normalization fix, and Proxmox 9.1 generated artifacts.

Root Cause (issue #45)

Two independent bugs caused HTTP 403 on GET /api/plugins/proxbox/settings/:

  1. This reposettings_client.py built the v2 auth header incorrectly (nbt <key>:<secret> instead of Bearer nbt_<key>.<secret>). NetBox parsed it as anonymous and returned 403.
  2. netbox-proxboxProxboxPluginSettingsViewSet required an explicit view_proxboxpluginsettings object permission that standard API tokens don't carry. Fixed in netbox-proxbox v0.0.11.post1.

Both fixes together restore automatic token exchange between the plugin and the backend.

emerson@netdevops:~/proxbox-api$ gh release download --pattern '*'

assets

no binary assets attached

source code