Repository navigation
kevward 0.18.1
Fixes for problems found with 0.18.0 and FR Security Centre: reboot.* failed
on hosts with nothing scheduled (#203), and setup --fail2ban-ignore wrote a
drop-in that stops fail2ban at its next start (#204). Hosts that ran it should
check sudo fail2ban-client -t (re-running setup rewrites the drop-in). Also
setup --self-update / --allow-reboot (#205).
- Fix:
reboot.status(andreboot.schedule/reboot.cancel) failed with
ValueErrorwhen nothing was scheduled (#203). logind reports "no schedule"
asUSEC_INFINITY(2^64−1) as well as 0; both now mean none, as does any
out-of-range time.scheduled_reboot()never raises: anything unexpected is
{"state": "unknown"}. ssh-gateinternalerrors now carry the first line
of the message, not only the exception type. - Fix:
kevward setup --fail2ban-ignorewrote a drop-in that stops fail2ban
at its next start (#204).%(known/ignoreip)sdoes not work in[DEFAULT].
The drop-in now lists fail2ban's default, theignoreipalready in effect,
and the new addresses. It is checked withfail2ban-client -tand removed
or restored if rejected; reload only runs after the check passes. kevward setup: theauthorized_keyslines are written last, and a
failure reports which steps were already applied (and logs them).kevward setup --self-update/--allow-reboot(#205). Set
[ssh_gate] self_update = true/[policy] allow_reboot = truein the same
validated, backed-up write as--ssh-gate.