The first Images run after #165 failed: the runner's first registry request
from next_image_version.py got HTTP 403, as a bare traceback, while the same
request works from elsewhere and curl reaches the host in the same job. The
suspected cause, a bot filter refusing Python's default User-Agent, is not
confirmed.
Every registry request, the token request included, now sends its own
User-Agent. Every HTTP error becomes a RegistryError that names the status and
the visible text of the response body, and main prints it as one ::error::
line and exits 1. The client logs in at most once, so an empty token cannot
loop. The script takes the registry URL, so the tests drive it against a local
fake registry.
Refs #165
Assisted-by: Claude Code:claude-opus-5-5
The image.yml matrix holds a hand-edited base (MAJOR.MINOR) per image instead
of a version. On main, scripts/next_image_version.py compares a checksum of the
image's inputs with the inputs-sha256 label of the newest published <base>.N
and the job publishes <base>.N+1 when they differ, or builds nothing when they
match. A published tag is still never moved.
renovate.yml runs live on the successful completion of Images (workflow_run),
so the pin pull request opens minutes after a push instead of on the schedule.
Removed: bump_image_versions.py and its tests, check_image_versions.py bump,
Lint's bump step, Renovate's postUpgradeTasks, and the bot-diff allowance for
matrix version lines.
Closes#165
Assisted-by: Claude Code:claude-opus-5-5
Add system_baseline_reboot_throttle and system_baseline_reboot_post_delay, passed to
the throttle and post_reboot_delay of the reboot task, read by the main flow and by
tasks_from: reboot, both defaulting to 0 (today's behaviour) and validated in both.
Add system_baseline_apt_daily_timeout: when set, write a TimeoutStartSec drop-in for
apt-daily.service and reload systemd. Empty by default, which leaves the host alone.
Closes#336Closes#337
Assisted-by: Claude Code
New profile key apt_upgrade (safe or dist) resolved to
system_baseline_apt_upgrade; the pve profile uses dist, the Ubuntu
profiles keep the plain upgrade. The update entry point follows it when
system_baseline_system_type is set.
Assisted-by: Claude Code
The main entry point notified a restart. A restart stops every jail, which
flushes its bans out of the firewall until they are restored from Fail2Ban's
database when the jail starts again, and forgets failures counted toward
maxretry. A reload applies the new settings to the running jails. service_jail
already reloads.
The Restart Fail2Ban handler is removed: nothing notifies it any more, and a
handler name is not part of the role's interface (#257). A new side_effect.yml
bans an address, records the daemon's PID and rewrites jail.local; verify
asserts the new maxretry is active, the ban is in force and the PID is
unchanged (the PID is what separates a reload from a restart, since bans are
restored from the database).
Assisted-by: Claude Code
.apm-local/ is apm's local state directory and ignores itself through its
own .gitignore, so a local ansible-galaxy collection build copied it into
the archive, where check_tarball.py rejects it as a disallowed top-level
entry.
Assisted-by: Claude Code
The refuse-claude-md pattern was case-sensitive, so claude.md or CLAUDE.MD
passed it, yet a case-insensitive file system serves either as CLAUDE.md.
Match with the inline (?i) flag. The hook config is a ci image input, so
the ci image moves from 0.2.37 to 0.2.38.
Assisted-by: Claude Code
docker_apt_arch defaults to empty, which derives amd64 or arm64 from
the host architecture; another architecture fails the play, and a set
value is always used.
Assisted-by: Claude Code
An AGENTS.md under roles/ holds contributor rules; shipped in the
Collection, a consumer's agent reading an installed role would load
them. galaxy.yml build_ignore lists the current ones, and the archive
check now refuses any AGENTS.md, compared case-insensitively, as the
allow list behind that deny list. A root AGENTS.md was already refused
by ALLOWED_TOP.
Refs: #244
Assisted-by: Claude Code
Claude Code reads CLAUDE.md in place of AGENTS.md, so a stray CLAUDE.md,
CLAUDE.local.md or .claude/CLAUDE.md at any depth leaves an agent without
this repository's guidance, and nothing reports it. A language: fail hook
refuses such a file at commit time.
Refs: #244
Assisted-by: Claude Code
The weekly schedule and image age cases matched text the disk check
schedule message also holds; match each assert's own message. Add a
case at exactly the root's use so the strict comparison is pinned, and
check the below message so a df failure cannot pass for it.
Refs #319
Assisted-by: Claude Code
system_baseline_unattended_upgrade_package_blacklist (list of regular
expressions, default empty) is written to a drop-in as
Unattended-Upgrade::Package-Blacklist; an empty list removes it.
Assisted-by: Claude Code
Give each new input its own assert message so every refused-input case
matches only its own input, and cover a negative count and a bad disk
check schedule. Fire the pressure prune only above the threshold, as
the inputs describe it. Name the disk check script apart from the
pressure service, prefix the new registers as internal, and keep the
new comments short.
Refs #319
Assisted-by: Claude Code
An age-based prune does not cap disk use: the cache grows with how often
new image versions are published, and builds on the runner then fail for
lack of space. Keep the newest N image IDs per repository in the weekly
prune, and add an hourly pressure prune that runs the count prune and a
capped builder prune when the Docker root's filesystem passes a
threshold, behind the same job gate. Both are off by default.
Refs #319
Assisted-by: Claude Code