Skip to content

Nightly security updates on the server, and how to update Docker, containerd and the kernel by hand - #114

Merged
angelolamonaca merged 1 commit into
mainfrom
server-nightly-security-updates
Oct 24, 2026
Merged

angelolamonaca merged 1 commit into
mainfrom
server-nightly-security-updates

Conversation

@angelolamonaca

Copy link
Copy Markdown
Member

The server had no automatic updates: Amazon Linux 2023 stays on the release it booted from (2026-09-18 here), and 66 security fixes had piled up.

What changes

  • infra/napoland.yaml: the first boot turns on dnf-automatic for security updates every night (around 06:00 UTC), from the latest Amazon Linux release. Docker, containerd, runc and the kernel are left out, because they restart every container or need a reboot.
  • docs/OPERATIONS.md: a "Server updates" section with the nightly runs and the by-hand update of those four (snapshots and a dump first, update, reboot, checks, and what to do if something does not come back). Also a note that a first-boot change stops and starts the server when deployed, and does not run again on it.

Already live on the server (2026-10-23, done by hand through SSM)

  • 22:10–22:12 UTC: the same nightly settings; 62 of the 66 fixes applied, no container restarted.
  • 23:09–23:10 UTC: Docker, containerd 2.3.5, runc 1.4.3 and kernel 6.18.54, after snapshots of both disks and a dump. About a minute offline; game and database healthy again within 21 s, napoland.com answering.

So this change only matters for a new server.

Checks

  • npm run check passes.
  • The template passes aws cloudformation validate-template.
  • The first-boot script, with CloudFormation's placeholders filled in, passes bash -n.

Deploying

  • Merging releases main as usual.
  • Deploying the template (aws cloudformation deploy, as in OPERATIONS.md) stops and starts the server for a minute or two, without running the first boot again. Its settings are already in place, so it can wait for a quiet moment.

Claude Code wrote all of this at the owner's request, and a person has not read it yet.

🤖 Generated with Claude Code

…tainerd and the kernel by hand

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@angelolamonaca
angelolamonaca merged commit 9e53a99 into main Oct 24, 2026
3 checks passed
@angelolamonaca
angelolamonaca deleted the server-nightly-security-updates branch October 24, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants