Skip to content

kevward 0.18.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 07:33
· 21 commits to main since this release
6b0db7c

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's shutdown -r, only with [policy] allow_reboot = true, 5 minutes to 7 days ahead, and conflict on an
    existing schedule unless replace. reboot.cancel (operate) runs
    shutdown -c.
  • ssh-gate: report timer (#199). schedule.status (read) and
    schedule.install (operate) expose kevward schedule status / install.
  • ssh-gate: plan / apply.start / job.get (#197). plan returns the
    dry-run plan with a plan_hash. apply.start re-plans as root, refuses
    with conflict if the hash changed, and runs kevward apply --yes --expect-plan <hash> --job <id> in a transient systemd unit, optionally
    scheduling a reboot afterwards if one is needed. job.get returns 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.