List the remaining decided main protection settings, the tag and
release/* allowlist members and the Owners rule; name the workflows
that use the job token; hold account creation as aspirational; define
a full run before its first use.
Assisted-by: Claude Code
Add docs/contributing/maintaining.md with what only the maintainer does:
the secret rotation list, granting and withdrawing a trusted contributor,
agent and bot accounts, the intended settings and releases. Point to it
from the root AGENTS.md and the CONTRIBUTING.md index.
The two release rules (red nightly, no release while red) are held by
aspirational until their controls exist.
Closes#262
Assisted-by: Claude Code
Major release: raises the ansible-core floor to 2.22 and removes the
gitea_runner molecule tooling inputs. Also new docker, fail2ban,
gitea_runner and system_baseline features and a system_baseline
check-mode fix.
Assisted-by: Claude Code:claude-opus-5-5
Scenarios load mortis.kamino from the checkout, not the copy molecule installs from
galaxy.yml, so galaxy.yml goes on the selector's IGNORED list. A new check, run by
run_molecule_in_ci_image.sh before the scenarios, fails the run when the environment
molecule gives ansible-playbook would resolve the collection anywhere else.
Closes#355
Assisted-by: Claude Code
requires_ansible and every role's min_ansible_version said 2.19, which CI
never tested; CI tests only the pinned ansible-core (2.22). The floor now
equals that minor. ansible-lint 26.10.1's built-in supported list ends at
2.19, so .ansible-lint adds 2.22 for meta-runtime[unsupported-version].
BREAKING CHANGE: ansible-core 2.19, 2.20 and 2.21 (and controller Python
3.12) are no longer supported.
Closes#164
Assisted-by: Claude Code
Name the roles under roles/ in the README intro and the Galaxy
description, and drop the NOTICE and REUSE.toml entries and licence texts
(Apache-2.0, EUPL-1.2, MIT) of roles that are not in the Collection. The
reuse_lint.py wrapper only tolerated those unused texts, so the hook runs
plain `reuse lint`. The GPL-3.0-only reason is ufw's before.rules.j2.
Remove HANDOFF.md and .reuse from build_ignore (neither has existed) and
correct the galaxy.yml comment on dependency bounds.
Part of #164
Assisted-by: Claude Code
A removal that fails because another run's sweep was first is harmless,
but checking that with `docker container inspect` also passed when the
daemon could not be reached. Both removal steps now remove what they
can and then list the containers they meant to remove; a failing list
or a container still listed fails the step.
The workflow rules name the test that holds the sweep's age bound to
the job timeout.
Assisted-by: Claude Code:claude-opus-5-5
Reading /proc/<pid>/stat raises ProcessLookupError when the process
exits between the open and the read, which made the lane-kill tests
fail now and then.
Assisted-by: Claude Code:claude-opus-5-5
A script test now fails when the sweep step's age bound differs from the
job's timeout-minutes, since a shorter bound would remove a live run's
containers. The final cleanup removes this run's containers one by one
and fails only when one is still there, as another run's sweep may have
removed it first once this run passed its timeout.
Assisted-by: Claude Code:claude-opus-5-5
The sweep now fails the step when a timestamp cannot be parsed or a
container it removes is still there, while tolerating one another run's
sweep removed first. Its 30-minute bound and the job's timeout point at
each other, since a shorter bound would remove a live run's containers.
The concurrency comments of Lint and Build now say that runs on one ref
queue rather than cancel, and the scenarios' comment names the run
script as what removes their containers. The workflow test checks the
label filters of the sweep and cleanup steps by name.
Assisted-by: Claude Code:claude-opus-5-5
Two Molecule runs could not overlap on one Docker daemon because every
scenario's container name was fixed; only the runner's single slot kept
them apart. Each platform is now named and labelled by KAMINO_RUN_ID
(run id and attempt, "local" outside CI), the run script expands those
names with molecule's own interpolator before removing them, and the
workflow removes its own containers by label and only sweeps labelled
leftovers older than the job timeout, so a run still going is never hit.
Non-pull-request runs get a concurrency group of their own.
Push to main no longer triggers Molecule, Lint or Build: a merged pull
request was already tested, and the nightly and manual Molecule runs
cover every scenario. Build keeps its v* tag trigger.
Assisted-by: Claude Code:claude-opus-5-5
ansible makes its temp dir under ~<user>/.ansible/tmp. Without a passwd
entry the tilde does not expand and mkdir runs relative to the playbook's
directory, which is read-only under /opt/venv once the image's own
molecule is used. Move molecule.yml to ci 0.2.40 so this pull request
runs the baked toolchain that failed on the pin pull request.
Assisted-by: Claude Code
Pin molecule and its Docker driver in requirements-dev.txt and bake them,
with the driver's collection, into the ci image. The Molecule job runs
docker run on the pinned ci image with the Docker socket and the checkout
mounted at the same path, as the runner user. A pull request whose pins
differ from the image installs its own pins first, so a core bump runs its
scenarios on the new core. gitea_runner no longer installs the molecule
venv and collections.
Closes#225
Assisted-by: Claude Code
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
.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
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
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
The public-place rule bars naming another of the maintainer's
repositories, its issues or its decisions; the roadmap stands alone
without them.
Assisted-by: Claude Code
The held-by lines in AGENTS.md and the contributor docs hold rules by a control,
by review or aspirationally, and SECURITY.md's Accepted risks count repository
settings such as branch protection and code-owner approval, but the glossary
defined only control and limited it to hooks and CI jobs. Define all three, the
merge and role terms, and replace the avoided gate, guard and enforce wording.
Assisted-by: Claude Code
The plain scalar `cloudflared_test_posts[0] is search('"status": 200')`
holds ': ', so YAML parsed it as a one-key mapping and ansible-core
refused it ("Conditional expressions must be strings"). A folded block
scalar keeps it a string.
Assisted-by: Claude Code:claude-opus-5-5
molecule interpolates environment variables in molecule.yml, so `$1`
and `$*` in the embedded stub script failed the config parse ("Invalid
placeholder") before any step ran. `$$` renders as a literal `$`.
Assisted-by: Claude Code:claude-opus-5-5
Cleanup now checks /proc/<pid>/cmdline before it signals the pid, so a
reused pid is never killed, and removes the pid file afterwards.
Assisted-by: Claude Code:claude-opus-5-5
The overwrite guard listed the zone's first 100 records only, so a
record further on went unseen. It now queries each ingress hostname by
name and compares names case-insensitively, and the prune listing pages
through result_info.total_pages. Query values are urlencoded. The
template task validates config.yml with cloudflared before it replaces
the file; the rendered content is unchanged. The API stub filters by
name and pages to match.
Assisted-by: Claude Code:claude-opus-5-5
Ingress hostnames must be lowercase, with an optional leading *. and no
whitespace: they land unquoted in config.yml. The service account names
and directories must hold no newline or %, which the unit would read as
directives, and the directories must be absolute. A set tunnel id must
be a lowercase UUID, the shape the stale-credentials search relies on.
Each refusal has a negative case in the scenario.
Assisted-by: Claude Code:claude-opus-5-5
A lookup that still returned 404 after its retries failed the lookup
task itself, whose output no_log hides, so the message with the re-mint
steps never ran. The lookup now ignores its own failure; the next task
fails with the re-mint steps for a 404 or a deleted tunnel, and a new
one fails with the HTTP status for any other lookup error.
Assisted-by: Claude Code:claude-opus-5-5
The role is in the Collection now, so it leaves the wave 2 Roadmap
line, and the status line names it as an unreleased caller of the
internal _binary_update role.
Assisted-by: Claude Code:claude-opus-5-5
Runs without Cloudflare and without a real cloudflared: a stub of the
Cloudflare API on the controller's loopback answers the tunnel, zone and
DNS record calls through cloudflared_api_base_url, a stub binary stands
in for the daemon, and the releases come from file:// URLs.
Covers the converge with an update through _binary_update and its
idempotence, the rendered files and the running unit, the input asserts,
the deleted-tunnel and DNS guards, a stale hash and a failed checksum,
the mint entry point (as child processes outside CI) and the remove
path. The cloudflare_dns calls cannot reach the stub and are not run.
Assisted-by: Claude Code:claude-opus-5-5
Installs cloudflared as a systemd service for a locally managed
Cloudflare Tunnel: checks that the tunnel exists, manages its proxied
CNAMEs, renders config.yml and the credentials file, and updates the
binary through the internal _binary_update role. The opt-in mint entry
point creates the tunnel and registers its id and credentials as no_log
facts for the calling play to persist.
Validation runs first under always and asserts the tunnel secrets with
the mint instructions; the secrets stay optional in the argument spec on
purpose. cloudflared_manage_dns lets the records be managed elsewhere.
A removal now ends the role.
Assisted-by: Claude Code:claude-opus-5-5