OpenSshServerMixin.SSHD_CONFIG_GENERATED (default False). When True, harden_ssh_server writes only /etc/ssh/sshd_config.d/00-netork-ssh-hardening.conf; a sshd_config without that include is left untouched, and the result (applied=False) says why.
Second commit: release 4.26.0 (version + changelog), so napalm-openmediavault can require it.
Tests: two new mixin tests (drop-in still written; no include → nothing touched, no reload). Full suite 1196 passed; ruff, mypy clean.
Closes #88.
- `OpenSshServerMixin.SSHD_CONFIG_GENERATED` (default False). When True, `harden_ssh_server` writes only `/etc/ssh/sshd_config.d/00-netork-ssh-hardening.conf`; a `sshd_config` without that include is left untouched, and the result (`applied=False`) says why.
- For OpenMediaVault (NAPALM/napalm-openmediavault#20), whose generated `sshd_config` includes `sshd_config.d` and whose salt state leaves that directory alone (NetOrk/netork#1950).
- Second commit: release 4.26.0 (version + changelog), so napalm-openmediavault can require it.
Tests: two new mixin tests (drop-in still written; no include → nothing touched, no reload). Full suite 1196 passed; ruff, mypy clean.
A platform that writes sshd_config from its own database (OpenMediaVault)
had to opt out of harden_ssh_server altogether. Where that generated file
includes /etc/ssh/sshd_config.d, the drop-in is safe; only the fallback
that rewrites sshd_config itself would be undone on the next apply. With
SSHD_CONFIG_GENERATED set, a sshd_config without the include is left alone
and the result says why.
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 #88.
OpenSshServerMixin.SSHD_CONFIG_GENERATED(default False). When True,harden_ssh_serverwrites only/etc/ssh/sshd_config.d/00-netork-ssh-hardening.conf; asshd_configwithout that include is left untouched, and the result (applied=False) says why.sshd_configincludessshd_config.dand whose salt state leaves that directory alone (NetOrk/netork#1950).Tests: two new mixin tests (drop-in still written; no include → nothing touched, no reload). Full suite 1196 passed; ruff, mypy clean.