chore(release): 0.17.0 #78

Open
christianmanivong wants to merge 3 commits from feature/update-history-2728 into main
pull from: feature/update-history-2728
Owner

Two follow-ups to NetOrk/netork#2728:

  • Update history before PVE 9.3: read from apt's history log over the node's SSH session with napalm-device-types' AptHistoryMixin. Its ids are counted like GET /nodes/{node}/apt/history, so they stay when the node moves to 9.3. A node without an SSH login still raises NotImplementedError.
  • Token expiry: GET /access/users/{userid}/token/{tokenid} checks userid-param self, which a token's request (user@realm!tokenid) never matches. get_credential_expiry now reads GET /access/users/{userid} (Sys.Audit on /access/groups, PVEAuditor gives it), which returns the user's expire and every token's; a token's expiry is the earlier of the two. A 403 names the privilege.
  • Requires napalm-device-types 4.47.0.

Release commit 0.17.0 included; the tag follows the merge.

Two follow-ups to NetOrk/netork#2728: - **Update history before PVE 9.3:** read from apt's history log over the node's SSH session with napalm-device-types' `AptHistoryMixin`. Its ids are counted like `GET /nodes/{node}/apt/history`, so they stay when the node moves to 9.3. A node without an SSH login still raises `NotImplementedError`. - **Token expiry:** `GET /access/users/{userid}/token/{tokenid}` checks `userid-param self`, which a token's request (`user@realm!tokenid`) never matches. `get_credential_expiry` now reads `GET /access/users/{userid}` (Sys.Audit on `/access/groups`, PVEAuditor gives it), which returns the user's `expire` and every token's; a token's expiry is the earlier of the two. A 403 names the privilege. - Requires napalm-device-types 4.47.0. Release commit 0.17.0 included; the tag follows the merge.
christianmanivong added 3 commits 2026-11-27 05:51:36 +00:00
Below 9.3 get_update_history reads apt's history log over the node's SSH session
with napalm-device-types' AptHistoryMixin, which names a transaction as
GET /nodes/{node}/apt/history does, so the ids stay when the node moves to 9.3.
A node without an SSH login still raises NotImplementedError. Requires
napalm-device-types 4.47.0.
GET /access/users/{userid}/token/{tokenid} checks userid-param self, which a
token's request (user@realm!tokenid) never matches, so a token could not read
itself without User.Modify. GET /access/users/{userid} needs Sys.Audit on
/access/groups (PVEAuditor) and returns the user's expire and every token's.
One call now serves both logins; a 403 names the privilege.
chore(release): 0.17.0
driver / standard (pull_request) Successful in 16s
driver / lint (pull_request) Successful in 13s
driver / test (3.12) (pull_request) Failing after 17s
driver / types (pull_request) Failing after 26s
driver / test (3.13) (pull_request) Failing after 16s
driver / lowest (pull_request) Failing after 16s
driver / security (pull_request) Failing after 34s
driver / build (pull_request) Successful in 28s
CI / driver (pull_request) Failing after 1m28s
driver / publish (pull_request) Skipped
68a6087571
Some required checks failed
driver / standard (pull_request) Successful in 16s
driver / lint (pull_request) Successful in 13s
driver / test (3.12) (pull_request) Failing after 17s
driver / types (pull_request) Failing after 26s
driver / test (3.13) (pull_request) Failing after 16s
driver / lowest (pull_request) Failing after 16s
driver / security (pull_request) Failing after 34s
driver / build (pull_request) Successful in 28s
CI / driver (pull_request) Failing after 1m28s
driver / publish (pull_request) Skipped
This pull request has changes conflicting with the target branch.
  • CHANGELOG.md
  • pyproject.toml
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/update-history-2728:feature/update-history-2728
git checkout feature/update-history-2728
Sign in to join this conversation.