Skip to content

Security baseline: automatic updates, daily exposure check, hardening drift check on every machine #1045

Open

Description

@scuttletoby

Goal

Every machine stays patched and hardened by itself, and a daily check proves it. Nobody has to remember anything.

Owner agreed to the plan on 2026-11-23. This issue tracks it.

Owner decisions (2026-11-23)

  • Automatic security updates everywhere.
  • Dev and personal machines: may restart themselves at a fixed quiet time (05:00 local) when an update needs it.
  • Live services (the public game server and the website host) never restart on their own:
    • updates install nightly;
    • kernel fixes go in live with Livepatch where available;
    • a needed restart raises an alert and is done in a planned window.
  • Backups that agents can't delete (an off-machine copy, locked for 30 days): starts when the cloud bucket is rented.
  • Router: firmware current, UPnP off. No separate device network needed.

Parts

  1. Updates
    • Linux: unattended-upgrades for security updates, with the reboot policy above per machine role.
    • Ubuntu Pro Livepatch on the machines where restarts are costly.
    • Mac and Windows: automatic updates on.
  2. Software outside the system package manager (Node, Java, server jars, Python packages): Dependabot on our repos, so updates come as PRs through CI. Plus a weekly report of outdated runtimes.
  3. Exposure check, daily:
    • Installed packages are compared with CISA's Known Exploited Vulnerabilities (KEV) list, which holds flaws confirmed to be under attack.
    • Also checked: the distro's own security notices for packages that have a fix waiting, and EPSS (the chance a flaw gets exploited soon) to rank the rest.
    • It reports only what needs action.
  4. Network:
    • Nothing reachable from the internet except the game port.
    • Admin access goes over the private mesh VPN only.
    • Old port forwards and the dynamic-DNS name are removed after the mesh move.
  5. Least privilege: agents use GitHub Apps (Owner question: agent guards as a safety net, GitHub permissions as the hard limit #916), never root on servers, and narrow cloud tokens.
  6. Alerts that reach the owner's phone:
    • failed-login spikes;
    • a new listening port;
    • a security update pending more than 3 days;
    • a restart pending on a live service;
    • a full disk;
    • a missed backup.
  7. One baseline check per machine, run daily:
    • It compares the machine against parts 1-6 and reports drift, like the installed-tools drift check.
    • The facts (machine list, roles, reboot policy, alert channel) come from a project config file.
    • The fork carries only the general tool.

General vs project

  • General (fork kit): the baseline check, the exposure check, the update and reboot policy per role, and the alert hook.
  • Project config: which machines exist, the role of each (dev, personal, live), and the quiet hour.

Order

  1. Build parts 1, 3 and 7 into the new server rehearsal from day one.
  2. Roll them out to the other dev machines.
  3. Then the live hosts, with the no-auto-restart role.
  4. Backups once the bucket exists.

🤖 Generated with Claude Code

Activity

  1. scuttletoby commented on Nov 23, 2026

    @scuttletoby
    OwnerAuthor

    Part 1 is now on the first dev machine (the plain-Linux server rehearsal box): unattended-upgrades for the security pocket, with an automatic restart at 05:00 when an update needs one.

    Finding for the general tool: a fixed-time restart cuts off long agent jobs (for example a mutation-test run in containers with hours left), and those jobs do not resume on their own. So the restart policy for the dev role should be "at the quiet hour, only when no job or agent turn is running; otherwise try again the next night, and alert if a restart has been pending more than N days". The jobs need a standard way to say "busy" (for example a systemd inhibitor lock or a marker the check reads), so the tool doesn't guess. This overlaps #886 (updates in each machine's own hours, only when quiet). Build it there or here, not twice.

    Also: the reboot time follows the machine's clock (UTC on that box). The quiet hour belongs in the project config per machine, with its time zone.

    🤖 Generated with Claude Code

  2. added
    area:machines
    size:big
    type:feature
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:machinessize:bigtype:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions