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
+2
-2
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "napalm-proxmox"
|
||||
version = "0.18.0"
|
||||
version = "0.20.0"
|
||||
description = "NAPALM drivers for Proxmox VE (classic Linux networking, SDN, OVS) and Proxmox Backup Server"
|
||||
readme = "README.md"
|
||||
license = "Apache-2.0"
|
||||
@@ -21,7 +21,7 @@ classifiers = [
|
||||
requires-python = ">=3.12"
|
||||
dependencies = [
|
||||
"napalm>=5.0.0",
|
||||
"napalm_device_types>=4.48.0", # HardeningMixin; ServicesRestartMixin with LXC left out
|
||||
"napalm_device_types>=4.50.0", # WebLoginAuthDict; HardeningMixin
|
||||
"paramiko>=5.0.0", # CVE-2026-44405; imported directly for the node's SSH session (_base.py)
|
||||
"proxmoxer>=2.0.0",
|
||||
"netaddr>=0.9.0",
|
||||
|
||||
Reference in new issue
Block a user