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.
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Two follow-ups to NetOrk/netork#2728:
AptHistoryMixin. Its ids are counted likeGET /nodes/{node}/apt/history, so they stay when the node moves to 9.3. A node without an SSH login still raisesNotImplementedError.GET /access/users/{userid}/token/{tokenid}checksuserid-param self, which a token's request (user@realm!tokenid) never matches.get_credential_expirynow readsGET /access/users/{userid}(Sys.Audit on/access/groups, PVEAuditor gives it), which returns the user'sexpireand every token's; a token's expiry is the earlier of the two. A 403 names the privilege.Release commit 0.17.0 included; the tag follows the merge.
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.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.