feat(ssh): offer the SSH hardening, into the drop-in only (#20) #21

Merged
christianmanivong merged 1 commits from fix/ssh-hardening-dropin into main 2026-11-03 07:10:51 +00:00
Owner

Closes #20.

  • Drops the opt-out from #3 (harden_ssh_server = None) and sets SSHD_CONFIG_GENERATED = True (napalm-device-types 4.26.0, NAPALM/napalm-device-types#88).
  • Checked on OMV 8 (Debian 13): the generated sshd_config ends with Include /etc/ssh/sshd_config.d/*.conf; the salt state manages only /etc/ssh/sshd_config and leaves sshd_config.d alone, so the drop-in survives omv-salt deploy run ssh. An algorithm list in "Extra options" comes before the Include; the mixin detects that through sshd -T and reverts.
  • Requires napalm-device-types>=4.26.0. README and CHANGELOG updated; the opt-out test becomes tests/test_ssh_hardening.py.

Context: NetOrk/netork#1950.

Closes #20. - Drops the opt-out from #3 (`harden_ssh_server = None`) and sets `SSHD_CONFIG_GENERATED = True` (napalm-device-types 4.26.0, NAPALM/napalm-device-types#88). - Checked on OMV 8 (Debian 13): the generated `sshd_config` ends with `Include /etc/ssh/sshd_config.d/*.conf`; the salt state manages only `/etc/ssh/sshd_config` and leaves `sshd_config.d` alone, so the drop-in survives `omv-salt deploy run ssh`. An algorithm list in "Extra options" comes before the Include; the mixin detects that through `sshd -T` and reverts. - Requires napalm-device-types>=4.26.0. README and CHANGELOG updated; the opt-out test becomes `tests/test_ssh_hardening.py`. Context: NetOrk/netork#1950.
christianmanivong added 1 commit 2026-11-03 07:00:55 +00:00
feat(ssh): offer the SSH hardening, into the drop-in only (#20)
driver / standard (pull_request) Successful in 19s
driver / lint (pull_request) Successful in 15s
driver / test (3.12) (pull_request) Successful in 1m56s
driver / types (pull_request) Successful in 2m4s
driver / test (3.13) (pull_request) Successful in 2m7s
driver / build (pull_request) Successful in 38s
driver / lowest (pull_request) Successful in 1m51s
driver / security (pull_request) Successful in 1m52s
CI / driver (pull_request) Successful in 4m15s
driver / publish (pull_request) Skipped
a7a4e46ac2
OMV's generated sshd_config includes /etc/ssh/sshd_config.d, and its salt
state manages only sshd_config itself, so the drop-in napalm-linux's
hardening writes survives the next apply of the SSH settings. The opt-out
from #3 goes; SSHD_CONFIG_GENERATED (napalm-device-types 4.26.0) keeps the
hardening off sshd_config itself.
christianmanivong merged commit 8892a7734a into main 2026-11-03 07:10:51 +00:00
christianmanivong deleted branch fix/ssh-hardening-dropin 2026-11-03 07:10:51 +00:00
Sign in to join this conversation.