feat(login): get_web_login_auth on PVE and PBS, a source per realm, 0.20.0 (NetOrk/netork#662)
driver / standard (pull_request) Failing after 17s
driver / lint (pull_request) Successful in 18s
driver / types (pull_request) Successful in 56s
driver / lowest (pull_request) Successful in 37s
driver / test (3.12) (pull_request) Successful in 1m6s
driver / test (3.13) (pull_request) Successful in 1m3s
driver / security (pull_request) Successful in 53s
driver / build (pull_request) Successful in 49s
CI / driver (pull_request) Failing after 2m8s
driver / publish (pull_request) Skipped
driver / standard (pull_request) Failing after 17s
driver / lint (pull_request) Successful in 18s
driver / types (pull_request) Successful in 56s
driver / lowest (pull_request) Successful in 37s
driver / test (3.12) (pull_request) Successful in 1m6s
driver / test (3.13) (pull_request) Successful in 1m3s
driver / security (pull_request) Successful in 53s
driver / build (pull_request) Successful in 49s
CI / driver (pull_request) Failing after 2m8s
driver / publish (pull_request) Skipped
A Proxmox login names its realm, so each realm with someone who can log in is a source of napalm-device-types' WebLoginAuthDict. It asks for a password and a one-time code when the PVE realm's own tfa is set, or when every enabled, unexpired user of it has an enabled second factor (/access/tfa); a password alone when one user has none; OpenID is external. Both servers list only the caller in /access/users and /access/tfa when the login may not see the others, so the driver checks /access/permissions first: Sys.Audit or User.Modify on /access/groups on PVE, Sys.Audit on /access/users on PBS. Without it the read raises PermissionError rather than judge the server by one account. Needs napalm-device-types 4.50.0.
This commit is contained in:
1 parent
0598a183df
commit
f554e2cc79
8 files changed
+461
-7
No files matched your search
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.20.0] - 2026-11-29
|
||||
|
||||
### Added
|
||||
- `get_web_login_auth()` on both drivers (napalm-device-types' `WebLoginAuthDict`,
|
||||
NetOrk/netork#662): how the web interface lets people log in, one source per realm with
|
||||
someone who can log in. A realm asks for a password and a one-time code when its own `tfa`
|
||||
is set (PVE) or every enabled, unexpired user of it has an enabled second factor
|
||||
(`/access/tfa`); a password alone when one user has none; OpenID is `external`. Read only.
|
||||
The API login needs `Sys.Audit` or `User.Modify` on `/access/groups` on Proxmox VE and
|
||||
`Sys.Audit` on `/access/users` on PBS: without it both list only the caller, so the driver
|
||||
checks `/access/permissions` first and raises `PermissionError` rather than judge the
|
||||
server by one account.
|
||||
|
||||
### Changed
|
||||
- Needs napalm-device-types 4.50.0 or later (`WebLoginAuthDict`).
|
||||
|
||||
## [0.18.0] - 2026-11-28
|
||||
|
||||
### Added
|
||||
|
||||
Reference in new issue
Block a user