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.
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.
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.
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.
Closes #20.
harden_ssh_server = None) and setsSSHD_CONFIG_GENERATED = True(napalm-device-types 4.26.0, NAPALM/napalm-device-types#88).sshd_configends withInclude /etc/ssh/sshd_config.d/*.conf; the salt state manages only/etc/ssh/sshd_configand leavessshd_config.dalone, so the drop-in survivesomv-salt deploy run ssh. An algorithm list in "Extra options" comes before the Include; the mixin detects that throughsshd -Tand reverts.tests/test_ssh_hardening.py.Context: NetOrk/netork#1950.