Repository navigation
Open
Labels
area:machinesFleet, placement, capacity, host tools, updates, kits on machinessize:bigMulti-part feature, design, research or audit (usually has sub-issues)type:featureNew behaviour or capability
Description
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
- Updates
- Linux:
unattended-upgradesfor 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.
- Linux:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
- Build parts 1, 3 and 7 into the new server rehearsal from day one.
- Roll them out to the other dev machines.
- Then the live hosts, with the no-auto-restart role.
- Backups once the bucket exists.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
area:machinesFleet, placement, capacity, host tools, updates, kits on machinessize:bigMulti-part feature, design, research or audit (usually has sub-issues)type:featureNew behaviour or capability
Activity
scuttletoby commentedon Nov 23, 2026
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
gitleaks: allow the update-policy settings test's fixed fake token by…
fork-kit/update-policy: restart only when idle at the quiet hour, by …
fork-kit/update-policy: daily exposure check: KEV, distro security da…
gitleaks: allow the update-policy settings test's fixed fake token by…
fork-kit/update-policy: restart only when idle at the quiet hour, by …
fork-kit/update-policy: daily exposure check: KEV, distro security da…
gitleaks: allow the update-policy settings test's fixed fake token by…
fork-kit/update-policy: restart only when idle at the quiet hour, by …
fork-kit/update-policy: daily exposure check: KEV, distro security da…