Repository navigation
kevward 0.18.0
ssh-gate phase 2 for consoles such as FR Security Centre: reviewed updates
(plan → apply.start → job.get, #197), reboot scheduling (#198) and the
report timer (#199). The host's policy still decides what may be applied and
whether it may reboot.
- ssh-gate: reboots (#198).
reboot.status(read) shows the scheduled
reboot, who set it, and whether one is required.reboot.schedule(operate)
schedules one with the host'sshutdown -r, only with[policy] allow_reboot = true, 5 minutes to 7 days ahead, andconflicton an
existing schedule unlessreplace.reboot.cancel(operate) runs
shutdown -c. - ssh-gate: report timer (#199).
schedule.status(read) and
schedule.install(operate) exposekevward schedule status/install. - ssh-gate: plan / apply.start / job.get (#197).
planreturns the
dry-run plan with aplan_hash.apply.startre-plans as root, refuses
withconflictif the hash changed, and runskevward apply --yes --expect-plan <hash> --job <id>in a transient systemd unit, optionally
scheduling a reboot afterwards if one is needed.job.getreturns the job's
state, result and log tail. Apply policy stays host-only. kevward apply --expect-plan <sha256>. Installs only if the plan still
has that hash, from the same apt simulation that was hashed.- Each gate reboot/timer/apply change is logged to syslog and the change log, and the
report shows it as an INFO finding for 7 days.