feat(ssh-server): say how sshd lets people log in, on FreeBSD and OpenBSD #31

Merged
christianmanivong merged 1 commits from feat/ssh-server-auth into main 2026-11-07 19:30:24 +00:00
Owner

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

## 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
christianmanivong added 1 commit 2026-11-07 14:33:50 +00:00
feat(ssh-server): say how sshd lets people log in, on FreeBSD and OpenBSD
driver / lint (pull_request) Successful in 12s
driver / standard (pull_request) Successful in 15s
driver / types (pull_request) Successful in 1m4s
driver / test (3.13) (pull_request) Successful in 1m5s
driver / test (3.12) (pull_request) Successful in 1m11s
driver / lowest (pull_request) Successful in 30s
driver / build (pull_request) Successful in 28s
driver / security (pull_request) Successful in 56s
CI / driver (pull_request) Successful in 2m16s
driver / publish (pull_request) Skipped
a3964e845a
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
christianmanivong merged commit 11c9d02b3e into main 2026-11-07 19:30:24 +00:00
christianmanivong deleted branch feat/ssh-server-auth 2026-11-07 19:30:24 +00:00
Sign in to join this conversation.