BsdDriver mixes in napalm-device-types' SshServerAuthMixin: get_ssh_server_auth() on FreeBSD and OpenBSD reads sshd -T as root and, on FreeBSD, sshd's PAM auth stack (OpenBSD's sshd has no PAM). README and CHANGELOG say so.
The floor on napalm-device-types rises to 4.32.0, the release that brings the mixin (NAPALM/napalm-device-types#99). That release does not exist yet, so the lowest CI job fails until it is published; this PR is to be merged after it.
Why
NetOrk/netork#662: NIS2 Art. 21(2)(j) MFA on the managed systems, judged from the SSH server's effective settings.
Tests
Fixtures only (the sshd -T lines written after FreeBSD 15's defaults, FreeBSD's /etc/pam.d/sshd abridged): TestSshServerAuth in tests/test_drivers.py — FreeBSD reads sshd -T as root and its PAM stack without, OpenBSD reads no PAM, a refused sshd -T raises. Run against the device-types branch: full suite, ruff, mypy, napalm-standard check and ratchet green.
## What
`BsdDriver` mixes in napalm-device-types' `SshServerAuthMixin`: `get_ssh_server_auth()` on FreeBSD and OpenBSD reads `sshd -T` as root and, on FreeBSD, sshd's PAM `auth` stack (OpenBSD's sshd has no PAM). README and CHANGELOG say so.
The floor on napalm-device-types rises to **4.32.0**, the release that brings the mixin (NAPALM/napalm-device-types#99). That release does not exist yet, so the `lowest` CI job fails until it is published; this PR is to be merged after it.
## Why
NetOrk/netork#662: NIS2 Art. 21(2)(j) MFA on the managed systems, judged from the SSH server's effective settings.
## Tests
Fixtures only (the `sshd -T` lines written after FreeBSD 15's defaults, FreeBSD's `/etc/pam.d/sshd` abridged): `TestSshServerAuth` in `tests/test_drivers.py` — FreeBSD reads sshd -T as root and its PAM stack without, OpenBSD reads no PAM, a refused `sshd -T` raises. Run against the device-types branch: full suite, ruff, mypy, `napalm-standard check` and `ratchet` green.
Not tagged or released.
Refs NetOrk/netork#662
BsdDriver mixes in napalm-device-types' SshServerAuthMixin:
get_ssh_server_auth() reads sshd -T as root and, on FreeBSD, the modules of
sshd's PAM auth stack. The floor on napalm-device-types rises to 4.32.0, the
release that brings the mixin.
Refs NetOrk/netork#662
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.
What
BsdDrivermixes in napalm-device-types'SshServerAuthMixin:get_ssh_server_auth()on FreeBSD and OpenBSD readssshd -Tas root and, on FreeBSD, sshd's PAMauthstack (OpenBSD's sshd has no PAM). README and CHANGELOG say so.The floor on napalm-device-types rises to 4.32.0, the release that brings the mixin (NAPALM/napalm-device-types#99). That release does not exist yet, so the
lowestCI job fails until it is published; this PR is to be merged after it.Why
NetOrk/netork#662: NIS2 Art. 21(2)(j) MFA on the managed systems, judged from the SSH server's effective settings.
Tests
Fixtures only (the
sshd -Tlines written after FreeBSD 15's defaults, FreeBSD's/etc/pam.d/sshdabridged):TestSshServerAuthintests/test_drivers.py— FreeBSD reads sshd -T as root and its PAM stack without, OpenBSD reads no PAM, a refusedsshd -Traises. Run against the device-types branch: full suite, ruff, mypy,napalm-standard checkandratchetgreen.Not tagged or released.
Refs NetOrk/netork#662