Merge branch 'main' into feature/web-login-auth-662
driver / lint (pull_request) Successful in 14s
driver / standard (pull_request) Failing after 18s
driver / lowest (pull_request) Successful in 32s
driver / types (pull_request) Successful in 50s
driver / test (3.12) (pull_request) Successful in 1m7s
driver / test (3.13) (pull_request) Successful in 58s
driver / build (pull_request) Successful in 24s
driver / security (pull_request) Successful in 1m0s
CI / driver (pull_request) Failing after 1m50s
driver / publish (pull_request) Skipped
driver / lint (pull_request) Successful in 14s
driver / standard (pull_request) Failing after 18s
driver / lowest (pull_request) Successful in 32s
driver / types (pull_request) Successful in 50s
driver / test (3.12) (pull_request) Successful in 1m7s
driver / test (3.13) (pull_request) Successful in 58s
driver / build (pull_request) Successful in 24s
driver / security (pull_request) Successful in 1m0s
CI / driver (pull_request) Failing after 1m50s
driver / publish (pull_request) Skipped
This commit is contained in:
commit
4455f71bd7
7 files changed
+93
-5
No files matched your search
@@ -135,7 +135,8 @@ device = driver(
|
||||
| `get_services_need_restart` | the services that still run code an update replaced on disk, as root over SSH (napalm-device-types' `ServicesRestartMixin`): `needrestart` in list-only mode where it is installed, else the processes whose `/proc/<pid>/maps` maps deleted code. A running VM's QEMU is a process (`processes`), an LXC container's processes are left out (the container updates itself). Only as root: another SSH login gets no reading, rather than a clean one |
|
||||
| `get_pve_firewall` | the PVE firewall as the operator wrote it, read only (NetOrk/netork#2654): the datacenter's `options`, `rules`, security `groups` (name → rules), `ipsets` (name → `[{cidr, nomatch, comment}]`) and `aliases` (name → cidr), this node's `options` and `rules`, and every guest's on this node (`vmid`, `type`, `name`, `options`, `rules`, and `nics`: `[{name, firewall}]` from `netN … firewall=1`). Each rule keeps PVE's fields and its `origin` (`cluster`, `group`, `node`, `guest`). A part PVE refuses is `null`, never empty |
|
||||
| `get_host_firewall` | what the node has loaded, as for any Linux host (napalm-device-types' `HostFirewallMixin`): `nft list ruleset` (PVE 9's proxmox-firewall) or `iptables-save` (pve-firewall), as root over SSH |
|
||||
| `get_hardening` | how the node is hardened (napalm-device-types' `HardeningMixin`, NetOrk/netork#2776): security modules, SELinux and AppArmor, crypto policy, FIPS mode, CPU vulnerabilities, kernel command line, as root over SSH. On the backup server too |
|
||||
| `get_hardening` | how the node is hardened (napalm-device-types' `HardeningMixin`, NetOrk/netork#2776): security modules, SELinux and AppArmor, crypto policy, FIPS mode, CPU vulnerabilities, kernel command line, whether the node runs virtualized and its CPU vendor, as root over SSH. On the backup server too |
|
||||
| `install_cpu_microcode` | the CPU vendor's microcode (`intel-microcode`, `amd64-microcode`; napalm-device-types' `CpuMicrocodeMixin`, NetOrk/netork#2838): Debian's `non-free-firmware` added to Debian's own sources where missing, `apt-get update` over SSH (waited for, unlike the API's refresh task), then the install. Refused on a node that runs virtualized. Loads at the next boot. On the backup server too |
|
||||
| `get_web_login_auth` | how the web interface lets people log in (napalm-device-types' `WebLoginAuthDict`, NetOrk/netork#662): one source per realm with someone who can log in, by realm name. `password_otp` when the realm's own `tfa` is set or every enabled, unexpired user of it has an enabled second factor (`GET /access/tfa`: TOTP, WebAuthn, U2F, Yubico or recovery keys), `password` when one has none (often `root@pam`, or an account that only holds API tokens: the API does not say whether a user has a password, and a second factor on it does not affect its tokens), `external` for OpenID, `unknown` for a realm type the driver does not know. Needs `Sys.Audit` or `User.Modify` on `/access/groups` (the `PVEAuditor` role on `/` has it): without it PVE lists only the caller, so the driver raises `PermissionError` instead of judging the datacenter by one account. API tokens skip the second factor by design and are not web logins. On the backup server too |
|
||||
|
||||
**Not implemented** (raise `NotImplementedError`):
|
||||
@@ -258,7 +259,7 @@ tests/
|
||||
├── test_time_sync.py # get_time_sync / configure_time_sync on both drivers
|
||||
├── test_certificates.py # get_certificates on both drivers
|
||||
├── test_firewall.py # get_pve_firewall and get_host_firewall
|
||||
├── test_hardening.py # get_hardening on both drivers
|
||||
├── test_hardening.py # get_hardening and install_cpu_microcode on both drivers
|
||||
├── test_web_login.py # get_web_login_auth on both drivers
|
||||
├── test_utils.py # Unit tests for napalm_proxmox.utils
|
||||
├── fixtures/pbs_api.json # What a Proxmox Backup Server 4.2 answered (sanitised)
|
||||
|
||||
Reference in new issue
Block a user