Commit Graph
100 Commits
Author SHA1 Message Date
Defame1297 067e0e4b3e docs(pihole): say how to clear app_password and what the upgrade run does
Build / build (pull_request) Successful in 34s
Molecule / select (pull_request) Successful in 9s
Lint / lint (pull_request) Successful in 2m45s
Molecule / scenarios (pull_request) Successful in 3m24s
Molecule / Result (pull_request) Successful in 2s
Lint / renovate-config (pull_request) Successful in 9s
The refusal message and the changelog fragment now tell the consumer to
remove app_password from pihole_overrides, the fragment says the first run
after upgrading re-renders pihole.toml and reconfigures Pi-hole, and the
role description lists the empty app_password among the conditions it
checks.

Refs: #383
Assisted-by: Claude Code
2026-12-06 22:09:22 +00:00
Defame1297 cb78edff6f fix(pihole)!: refuse a non-empty app password and render app_pwhash empty
Released pihole-FTL checks an app_pwhash that does not start with `$` as a
legacy double-SHA256 hash and, on a match, upgrades it to a BALLOON hash
written into the main webserver.api.pwhash. One login with the app
password the role rendered therefore replaced the web password. FTL
master fixes this, no release has it yet, and the role does not pin FTL.

validate.yml now refuses a non-empty config.webserver.api.app_password,
and the template always renders app_pwhash = "", which FTL treats as app
passwords disabled. The key stays in the defaults; only a value is
refused. Molecule verifies the rendered empty hash and the new refusal.

BREAKING CHANGE: a non-empty config.webserver.api.app_password now fails
the role, and app_pwhash always renders empty.

Refs: #383
Assisted-by: Claude Code
2026-12-06 21:35:12 +00:00
Defame1297 7cb99de32d Merge pull request 'chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.55' (#534) from renovate/own-ci-images into main
Renovate / renovate (push) Successful in 43s
Reviewed-on: #534
2026-12-06 20:50:42 +00:00
Defame1297 ddfb1c6d0a Merge pull request 'docs(roles): allow a no_log output fact from an opt-in entry point; list openbao on the Roadmap' (#533) from docs/openbao-role-decisions into main
Renovate / renovate (push) Successful in 33s
Reviewed-on: #533
2026-12-06 20:41:43 +00:00
Defame1297 b2d29df657 docs(security): accept unseal keys in vaulted inventory for openbao
Molecule / select (pull_request) Successful in 4s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 1s
Lint / lint (pull_request) Successful in 2m0s
Build / build (pull_request) Successful in 23s
Lint / renovate-config (pull_request) Successful in 5s
Assisted-by: Claude Code
2026-12-06 20:38:48 +00:00
Defame1297 2f2d980ef7 Merge branch 'main' into docs/openbao-role-decisions
Build / build (pull_request) Successful in 34s
Molecule / select (pull_request) Successful in 4s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 1s
Lint / lint (pull_request) Successful in 2m42s
Lint / renovate-config (pull_request) Successful in 7s
2026-12-06 20:30:37 +00:00
Defame1297 3b91a40db1 Merge pull request 'ci: shift checks left (check-json, script tests, image pins) and name the meta-dependency check' (#527) from ci/187-246-shift-left-checks into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:168a88cc61bdd95c8f871e3903d4e0a525e340c2b28a70dadd6d1503ecc7c391, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 22s
Renovate / renovate (push) Successful in 44s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 23s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, molecule-controller, ) (push) Successful in 19s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, ci, ) (push) Successful in 7m7s
Reviewed-on: #527
2026-12-06 20:24:40 +00:00
Defame1297 fbdee5f778 docs(roles): count a no_log output fact from an opt-in entry point as handed to the consumer's store
Lint / lint (pull_request) Successful in 3m12s
Molecule / select (pull_request) Canceled after 0s
Molecule / scenarios (pull_request) Canceled after 0s
Molecule / Result (pull_request) Canceled after 0s
Build / build (pull_request) Successful in 45s
Lint / renovate-config (pull_request) Canceled after 7s
Also list openbao on the Roadmap, ahead of the role that removes it.

Assisted-by: Claude Code
2026-12-06 20:16:59 +00:00
Defame1297 26d7b4914c docs(agents): say that a push also runs the script tests
Build / build (pull_request) Successful in 30s
Molecule / select (pull_request) Successful in 8s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 1s
Lint / lint (pull_request) Successful in 2m20s
Lint / renovate-config (pull_request) Successful in 9s
Refs: #187

Assisted-by: Claude Code
2026-12-06 19:51:21 +00:00
Defame1297 6432eb52b0 docs(roles): name the test that fails a meta dependency
test_roles_call_each_other_by_full_name_only in
tests/scripts/test_select_molecule_scenarios.py already fails when a role's
meta/main.yml declares dependencies, and Lint runs it through the
script-tests hook. That test is the Lint check the rule waited for, so the
rule now names it as its control, and the workflow rules and the selector's
docstring no longer describe a meta dependency as allowed.

Refs: #246

Assisted-by: Claude Code
2026-12-06 19:15:36 +00:00
Defame1297 fac7ed47be ci(pre-commit): run check-json, the script tests and the image pins as hooks
A contributor learns about a broken renovate.json, a failing script test or
a bad image pin from Lint today; as hooks they fail before the push.

- check-json from pre-commit-hooks covers renovate.json.
- script-tests runs the suite at pre-push, since it takes minutes. Its
  GIT_DIR points at an uncreatable path, so a fixture that keeps the
  caller's git environment fails instead of writing to this repository.
  Lint runs it by id; the suite now runs under the network guard.
- check-image-pins runs check_image_versions.py pins on every commit: its
  inputs span workflows, Dockerfiles and docs/images, and it fails when one
  is missing. Lint's pre-commit run replaces its separate step.

Adding hooks changes .pre-commit-config.yaml, an input of the ci image, so
this pull request takes Lint's slow path and the next Images run publishes
a new ci version.

Refs: #187

Assisted-by: Claude Code
2026-12-06 19:11:42 +00:00
Defame1297 b2e547edd5 test(scripts): reach the fake registry past Lint's dead proxy
Lint's fast path exports a dead proxy with an empty no_proxy, and
next_image_version.py uses urllib's default opener, which honours them, so
the RegistryClient tests could not reach their fake registry on 127.0.0.1.
Setting no_proxy for loopback in the tests lets the suite run under the
guard instead of the workflow unsetting it.

Refs: #187

Assisted-by: Claude Code
2026-12-06 19:11:16 +00:00
Defame1297 6c80ab7772 test(scripts): keep git fixtures off the caller's GIT_* variables
A git hook exports GIT_DIR (and often GIT_INDEX_FILE). A fixture that passes
the caller's environment to git would run its init, add and commit against
this repository instead of its temporary one once the suite runs as a hook.

tests/scripts/git_env.py gives each fixture a copy of the environment
without any GIT_* key and with no user or system config. The bot pull
request gate's repository tests also isolate os.environ, because the gate
runs git in-process.

Refs: #187

Assisted-by: Claude Code
2026-12-06 19:10:56 +00:00
Defame1297 d6037df6e4 Merge pull request 'ci(renovate): validate the config in Lint, bump Renovate's own image weekly, run on push to main' (#525) from ci/188-172-renovate-self-bump into main
Renovate / renovate (push) Successful in 29s
Reviewed-on: #525
Reviewed-by: Defame1297 <[email protected]>
2026-12-06 17:56:36 +00:00
Defame1297 2c9221ef45 ci(lint): give renovate-config room for a cold image pull
Build / build (pull_request) Successful in 36s
Lint / lint (pull_request) Successful in 3m7s
Molecule / select (pull_request) Successful in 6s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 1s
Lint / renovate-config (pull_request) Successful in 2m42s
Raise the renovate-config timeout to 15 minutes: after a self-bump the
runner pulls the large -full image first. The comment on the validator
step now says the clone credential is kept out of it, not the job token,
which the runner may still pass to every step. The workflow rules note
that renovate-config is the Lint job outside the ci image.

Refs: #188
Assisted-by: Claude Code
2026-12-06 17:35:28 +00:00
Defame1297 fc62e2e110 docs(renovate): state what holds Dockerfile automerge and the validator check
The dockerfile rule no longer claims the bump's own CI builds the new
image: Images builds it only after the merge, and the pin-follow pull
request's CI runs on it. The top-level description says code-owned files
automerge only once a code owner approves.

making-a-change.md quotes the full validator command and marks it a
control only once Lint / renovate-config is a required check. The
renovate.yml concurrency comment drops an unverified queueing claim.

Refs: #172
Refs: #188
Assisted-by: Claude Code
2026-12-06 17:26:03 +00:00
Defame1297 9fb3cbd4fd ci(lint): keep the job token away from renovate.json and pin image lines in place
The renovate-config job clones in its own step and validates in a second
step, so the job token is not in the environment that reads the pull
request's renovate.json.

check_bot_pr_diff.py now refuses a moved image line in every workflow
whose pins a bot may move, lint.yml included, not only in image.yml and
renovate.yml. Tests cover a moved lint.yml line, an added second
Renovate line and a changed indentation.

Refs: #188
Assisted-by: Claude Code
2026-12-06 17:25:56 +00:00
Defame1297 076546f91b docs(contributing): point renovate.json syntax at Lint's validator job
Syntax is now checked by Lint's renovate-config job; a local
renovate --platform=local run stays for behaviour changes.
making-a-change.md also gains the two review-held rules for
renovate.json: descriptions of at most two short sentences, and a test or
check before an automerge exception.

Refs: #172
Refs: #188
Assisted-by: Claude Code
2026-12-06 17:02:21 +00:00
Defame1297 936e253af0 ci(renovate): run on push to main and let Renovate bump its own image
Renovate runs on every push to main, so after each merge the next bot
pull request is rebased without waiting for the daily schedule; the
renovate concurrency group still queues at most one run. The job timeout
drops from 30 to 10 minutes.

The rule that disabled updates to renovate.yml is replaced by a weekly
rule for renovate/renovate: a 3-day release age, never automerged, since
the job runs with the write-capable bot token. One pull request moves
the pin in renovate.yml and its copy in lint.yml. RENOVATE_DOCKER_MAX_PAGES
stays within Docker Hub's anonymous paging limit, so the image's release
timestamps are found and the wait applies.

Our own Docker images get an explicit zero release age. Every rule
description is cut to at most two sentences, and the top-level one now
says that an update with no release timestamp gets no wait.

Closes: #172
Closes: #188
Assisted-by: Claude Code
2026-12-06 17:02:10 +00:00
Defame1297 763ec5dfd3 ci(lint): validate renovate.json in the pinned Renovate image
Add a renovate-config job to Lint that runs renovate-config-validator
--strict --no-global in a copy of renovate.yml's Renovate image, so the
config is checked by the Renovate that runs it and the check can be
required. The ci image stays without Node.

check_bot_pr_diff.py now lets a bot pull request move the tag and digest
of the renovate/renovate image line in renovate.yml and lint.yml, in
place, keeping the name and the -full flavour. A test holds the two pins
equal.

Refs: #188
Assisted-by: Claude Code
2026-12-06 17:01:55 +00:00
Defame1297 d1db4fb0db Merge pull request 'chore(renovate): update the apm pin in pyproject.toml and uv.lock' (#523) from chore/518-renovate-uv into main
Reviewed-on: #523
2026-12-06 08:40:12 +00:00
Defame1297 5a130f143f Merge branch 'main' into chore/518-renovate-uv
Molecule / select (pull_request) Successful in 4s
Lint / lint (pull_request) Successful in 3m37s
Molecule / scenarios (pull_request) Successful in 35m29s
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 31s
2026-12-06 08:03:56 +00:00
Defame1297 cce3e54e7f Merge pull request 'chore(release): 3.5.0' (#524) from chore/release-3.5.0 into main
Build / build (push) Successful in 1m0s
Reviewed-on: #524
2026-12-06 08:03:33 +00:00
Defame1297 33f4ee960e chore(release): 3.5.0
Build / build (pull_request) Successful in 51s
Lint / lint (pull_request) Successful in 4m46s
Molecule / select (pull_request) Successful in 6s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 2s
Minor release: the ufw role masks nftables.service, so an upgrade of the
nftables package can no longer flush the rules ufw and Docker loaded.

Assisted-by: Claude Code:claude-opus-5-5
2026-12-06 07:53:31 +00:00
Defame1297 6d054b0f8b Merge branch 'main' into chore/518-renovate-uv
Molecule / select (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 3m39s
Molecule / Result (pull_request) Canceled after 0s
Molecule / scenarios (pull_request) Canceled after 11m3s
Build / build (pull_request) Successful in 29s
2026-12-06 07:52:20 +00:00
Defame1297 9dba48a30d Merge pull request 'fix(ufw): mask nftables.service so an upgrade cannot flush the rules' (#522) from fix/ufw-mask-nftables into main
Reviewed-on: #522
2026-12-06 07:52:08 +00:00
Defame1297 2b0326801f chore(renovate): update the apm pin in pyproject.toml and uv.lock
Build / build (pull_request) Successful in 49s
Molecule / select (pull_request) Successful in 2s
Lint / lint (pull_request) Successful in 4m48s
Molecule / Result (pull_request) Canceled after 0s
Molecule / scenarios (pull_request) Canceled after 16m17s
Enable the pep621 manager for the root pyproject.toml, which updates
uv.lock with it. apm-cli gets its own pull request without automerge: CI
never runs apm, so a green run says nothing about a new version. The
manager also reads requires-python, a floor for ruff rather than a pin,
so it is disabled, and lock file maintenance is off for uv.lock, whose
check refuses a change to any package but apm-cli.

Closes: #518

Assisted-by: Claude Code
2026-12-06 07:22:02 +00:00
Defame1297 1e95d8cbdd chore(uv): rewrite uv.lock as the Renovate image's uv writes it
uv 0.13.1, the version in the pinned Renovate image, writes lock revision
5 and drops two markers on httpcore2's dependencies that uv 0.11 kept.
The bot-diff check refuses a change to any package but apm-cli, so the
lock is rewritten once here, with `uv lock --upgrade-package apm-cli` at
the unchanged pin. No package, version, source, file or hash changes, and
uv 0.11.24 reads the lock and leaves it as it is.

Refs: #518

Assisted-by: Claude Code
2026-12-06 07:21:56 +00:00
Defame1297 47641ae01d ci(lint): accept an apm-cli bump in the bot-diff check
A Renovate pull request may now change pyproject.toml and uv.lock, but
only together, so the pep621 manager can move the apm pin. In
pyproject.toml only the version of a quoted name==version pin may change.

uv.lock is parsed with tomllib in a module of its own, check_uv_lock.py,
because uv installs whatever the lock names and a line-shape rule cannot
tie a file to its package: a file of another package under apm-cli, an
added package, a marker that drops a dependency and a downgrade all passed
one. The parsed rule allows only apm-cli moving up to the pin in
pyproject.toml, as plain releases compared as numbers, with the same kinds
of file as before (an sdist if it had one, the same wheel tags), each on
files.pythonhosted.org under /packages/ without dot segments or escapes,
named for apm-cli at the pin, by sha256. Every other package, the root
project beyond its apm-cli specifier and the top level beyond `revision`
must stay as they are. Without the same file kinds, a lock could drop the
wheels and make uv build apm-cli from its sdist with a build backend
fetched at sync time. A bump that moves anything else is made by hand.

Refs: #518

Assisted-by: Claude Code
2026-12-06 07:21:44 +00:00
Defame1297 c617bee02a fix(ufw): mask nftables.service so an upgrade cannot flush the rules
Molecule / select (pull_request) Successful in 2s
Lint / lint (pull_request) Successful in 4m5s
Molecule / scenarios (pull_request) Successful in 12m51s
Molecule / Result (pull_request) Successful in 0s
Build / build (pull_request) Successful in 33s
When nftables.service is enabled, the nftables package's postinst
restarts it on upgrade. The stock /etc/nftables.conf begins with
`flush ruleset` and the unit's ExecStop flushes too, so every rule ufw
and Docker loaded was deleted until they reloaded.

The role now masks the unit without stopping it, gated on ufw_enabled
and the new opt-out input ufw_mask_nftables. systemd refuses every job
but a stop on a masked unit, so the postinst's try-restart fails
before anything runs (the postinst ignores the failure) and the unit
does not start at boot. Masking works when the unit is absent too.

Assisted-by: Claude Code:claude-opus-5-5
2026-12-05 22:33:26 +00:00
Defame1297 f7da80b326 Merge pull request 'chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.54' (#521) from renovate/own-ci-images into main
Reviewed-on: #521
2026-12-05 20:52:07 +00:00
Defame1297 535926b36e Merge pull request 'chore(apm): pin apm with uv' (#520) from chore/517-apm-uv into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:168a88cc61bdd95c8f871e3903d4e0a525e340c2b28a70dadd6d1503ecc7c391, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 13s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 16s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, molecule-controller, ) (push) Successful in 14s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, ci, ) (push) Successful in 4m7s
Reviewed-on: #520
2026-12-05 20:32:44 +00:00
Defame1297 595f517b49 chore(apm): pin apm with uv
Molecule / select (pull_request) Successful in 5s
Lint / lint (pull_request) Successful in 4m16s
Molecule / scenarios (pull_request) Successful in 34m33s
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 28s
A bare `apm` is whatever version a machine has. apm 0.37.0 to 0.39.1
refuse an apm.lock.yaml rewritten by 0.39.2 or later, and versions before
0.39.0 drop `disable-model-invocation` from the deployed Claude commands.
uv now runs one pinned version, from a .venv of its own.

apm-cli leaves requirements-dev.txt, so there is one pin. Its lock loses 40
packages and no other version moves. apm.lock.yaml is regenerated with the
pinned apm.

Refs: #517
Assisted-by: Claude Code
2026-12-04 21:48:53 +00:00
Defame1297 d732ac0a71 Merge pull request 'chore(dev): move the dev tools from .venv to .venv-dev' (#519) from chore/516-venv-dev into main
Reviewed-on: #519
Reviewed-by: Defame1297 <[email protected]>
2026-12-04 21:16:58 +00:00
Defame1297 f62097a748 chore(dev): move the dev tools from .venv to .venv-dev
Molecule / select (pull_request) Successful in 3s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 1s
Lint / lint (pull_request) Successful in 1m49s
Build / build (pull_request) Successful in 34s
uv uses .venv as its project environment, and `uv sync --frozen` removes
every package that is not in uv.lock. The tools the git hooks need would
go with it, so they get a directory of their own.

Re-running scripts/dev-setup.sh switches the hooks of an older clone and
leaves its .venv alone. Ignore rules and prunes cover both directories.

Refs: #516
Assisted-by: Claude Code
2026-12-04 20:45:49 +00:00
Defame1297 b7b763e1fa Merge pull request 'chore(release): 3.4.0' (#515) from chore/512-release-3.4.0 into main
Build / build (push) Successful in 16s
Reviewed-on: #515
2026-12-04 19:33:54 +00:00
Defame1297 1dfdaf48ec chore(release): 3.4.0
Build / build (pull_request) Successful in 41s
Molecule / select (pull_request) Successful in 8s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 1s
Lint / lint (pull_request) Successful in 2m10s
Minor release: system_baseline persists its sysctl hardening in its own
sysctl.d drop-in, so it survives a reboot on Debian 13, and refuses ICMP
redirects on every interface.

Refs #512

Assisted-by: Claude Code:claude-opus-5-5
2026-12-03 19:21:05 +00:00
Defame1297 3d7b66072e Merge pull request 'fix(system_baseline): refuse ICMP redirects on every interface' (#514) from fix/511-icmp-redirects into main
Reviewed-on: #514
2026-12-03 19:15:06 +00:00
Defame1297 83f4cc2c5b Merge branch 'main' into fix/511-icmp-redirects
Molecule / select (pull_request) Successful in 6s
Lint / lint (pull_request) Successful in 2m56s
Molecule / scenarios (pull_request) Successful in 5m33s
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 32s
2026-12-03 19:08:37 +00:00
Defame1297 eaece480c8 Merge pull request 'fix(system_baseline): persist sysctls in an own sysctl.d drop-in' (#513) from fix/510-sysctl-dropin into main
Reviewed-on: #513
2026-12-03 18:52:01 +00:00
Defame1297 191431a8e4 Merge branch 'main' into fix/510-sysctl-dropin
Build / build (pull_request) Successful in 32s
Molecule / select (pull_request) Successful in 4s
Lint / lint (pull_request) Successful in 3m2s
Molecule / scenarios (pull_request) Successful in 5m18s
Molecule / Result (pull_request) Successful in 1s
2026-12-03 18:45:52 +00:00
Defame1297 2158233241 Merge pull request 'chore(deps): update own ci images' (#507) from renovate/own-ci-images into main
Reviewed-on: #507
2026-12-03 17:48:32 +00:00
Defame1297 74e574ee80 fix(system_baseline): refuse ICMP redirects on every interface
Molecule / select (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 2m23s
Molecule / scenarios (pull_request) Successful in 10m38s
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 28s
With forwarding off the kernel accepts redirects when either `all` or the
interface's own value is 1, and over IPv6 only the interface's value counts.
The profiles now also set `default` and, with a wildcard, every existing
interface, over IPv4 and IPv6.

Refs #511

Assisted-by: Claude Code:claude-opus-5-5
2026-12-03 17:44:02 +00:00
Defame1297 d88e5d237a fix(system_baseline): persist sysctls in an own sysctl.d drop-in
Lint / lint (pull_request) Successful in 4m54s
Molecule / select (pull_request) Successful in 3s
Molecule / scenarios (pull_request) Successful in 18m54s
Molecule / Result (pull_request) Successful in 0s
Build / build (pull_request) Successful in 1m5s
systemd-sysctl on Debian 13 does not read /etc/sysctl.conf, so the
hardened values were lost on reboot. The role now applies the live values
on their own, writes them to a drop-in under /etc/sysctl.d and removes its
keys from /etc/sysctl.conf.

Refs #510

Assisted-by: Claude Code:claude-opus-5-5
2026-12-03 17:23:51 +00:00
Defame1297 cf99893855 Merge pull request 'fix(images): build when Ubuntu has upgraded a base package' (#509) from fix/images-base-upgrade into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:168a88cc61bdd95c8f871e3903d4e0a525e340c2b28a70dadd6d1503ecc7c391, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 2m55s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 3m19s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, molecule-controller, ) (push) Successful in 3m54s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, ci, ) (push) Successful in 6m12s
Reviewed-on: #509
Reviewed-by: Defame1297 <[email protected]>
2026-12-03 16:44:00 +00:00
Defame1297 508ed5ce12 docs(images): name the leftover check in the setup step comment
Molecule / select (pull_request) Successful in 2s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 0s
Lint / lint (pull_request) Successful in 2m14s
Build / build (pull_request) Successful in 22s
The check compares package names and unowned files now, not a pristine
filesystem.

Assisted-by: Claude Code
2026-12-03 08:38:26 +00:00
Defame1297 9127ac565a fix(images): build when Ubuntu upgrades a base package
Installing the job container's tools upgrades base packages once Ubuntu
has newer ones, and the purge does not downgrade them, so the version
check failed every image. Kaniko now empties the root filesystem and
unpacks the base image before its first snapshot (--pre-cleanup), so the
versions no longer matter. Extra packages and files no package owns
still fail the job.

With the filesystem emptied, a failed build can leave no rm for the last
step, so the build step empties the credential file itself.

The images also kept the base image's package versions. Each Dockerfile
now upgrades them, and the base digests move to the newest published.

Refs #508

Assisted-by: Claude Code
2026-12-03 08:30:16 +00:00
Defame1297 e446e1e09a Merge pull request 'ci: follow-ups after moving Molecule to the molecule-controller image' (#506) from ci/505-controller-followups into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Failing after 13s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Failing after 16s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Failing after 14s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Failing after 13s
Reviewed-on: #506
2026-12-03 08:11:51 +00:00
Defame1297 2f5a997dd7 Merge remote-tracking branch 'origin/main' into ci/505-controller-followups
Build / build (pull_request) Successful in 24s
Molecule / select (pull_request) Successful in 5s
Lint / lint (pull_request) Successful in 2m57s
Molecule / scenarios (pull_request) Successful in 35m31s
Molecule / Result (pull_request) Successful in 1s
# Conflicts:
#	requirements-dev.lock
2026-12-02 09:47:21 +00:00
Defame1297 8497af3407 Merge pull request 'chore(deps): update own ci images' (#504) from renovate/own-ci-images into main
Reviewed-on: #504
2026-12-02 09:29:37 +00:00
Defame1297 22f5bc33e9 chore: correct comments the ci image change left stale
Build / build (pull_request) Successful in 28s
Molecule / select (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 3m0s
Molecule / Result (pull_request) Canceled after 0s
Molecule / scenarios (pull_request) Canceled after 18m22s
image.yml's push paths listed extensions/molecule/requirements.yml under
the ci image, which no longer bakes it; it now sits with the
molecule-controller files. The list only triggers the build, so the paths
are unchanged. requirements-dev.txt no longer feeds Molecule, so the
proxmoxer comment names lint only. The ufw probe comments now say the
probe's stdout is empty in check mode, in two lines each, and two lines
in lint.yml and the workflow rules are re-wrapped.

Assisted-by: Claude Code
2026-12-02 09:26:03 +00:00
Defame1297 a48cd063ea fix(ci): treat only a NAME_UNKNOWN 404 as an image with no tags
next_image_version.py read any 404 on the first tags/list page as a
repository not pushed yet, so a wrong registry path or a proxy's 404 page
would restart the image at <base>.0 instead of failing. The OCI
distribution spec answers a missing repository with 404 and the error
code NAME_UNKNOWN, so only that answer now means no tags.

RegistryError carried only the readable text of the body, so it now also
carries the body's OCI error codes. The tests cover a plain 404 page and a
404 with another code, both of which now raise.

Assisted-by: Claude Code
2026-12-02 08:51:21 +00:00
Defame1297 6fee0ea8b2 fix(ufw): detect check mode without a command's skipped result
The probes in install.yml, orphan_rules.yml, service_rules.yml and
sysctl.yml took a skipped `command` task as the sign of check mode.
ansible-core 2.22 deprecates that: command.py marks its check-mode
`r['skipped'] = True` for removal in 2.25, and the 2.22 changelog says
"Returning skipped from a module or action plugin is deprecated and will be
removed in ansible-core 2.25". The probe would then report ok, and the role
would delete rules and edit sysctl.conf under --check.

The probe now runs `echo ran` and reads its output: a command does not run
in check mode, under --check or the check_mode keyword, so the output is
empty there. Checked against ansible-core 2.22 and a copy with the skipped
return removed, in a normal play, a check_mode play and --check.
service_rules.yml had the same probe and is changed with the others.

Assisted-by: Claude Code
2026-12-02 08:44:38 +00:00
Defame1297 39ec8e5b3c build(ci): drop molecule's Docker driver and community.docker from the ci image
Molecule runs in the molecule-controller image. In the ci image, only
Lint's "Test the repository scripts" step uses molecule:
test_check_scenarios_load_checkout.py runs check_scenarios_load_checkout.py,
which imports molecule's config lookup, and test_run_molecule_scenarios.py
expands platform names with molecule's interpolator. Both skip silently
without molecule, so molecule stays, with a comment naming the step.

Nothing in Lint or Build uses the Docker driver (molecule-plugins[docker])
or the docker SDK it pulls in: those tests use molecule's default driver
and a stub docker module. No linted file calls a community.docker module,
and a local clone, which never installs extensions/molecule/requirements.yml,
passes ansible-lint. So the driver, docker, selinux and community.docker
leave the ci image, and extensions/molecule/requirements.yml leaves its
pin record: a community.docker bump no longer publishes a ci version.

The lock is regenerated with scripts/lock-requirements.sh. Every script
test passes, none skipped, in a venv installed from the new lock.

Assisted-by: Claude Code
2026-12-02 08:43:39 +00:00
Defame1297 722e81f233 Merge pull request 'chore(deps): update lint tooling' (#491) from renovate/lint-tooling into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Failing after 14s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 14s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Successful in 2m10s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 5m56s
Reviewed-on: #491
2026-12-02 08:42:42 +00:00
Defame1297 570d16d861 Merge branch 'main' into renovate/lint-tooling
Molecule / select (pull_request) Successful in 7s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 1s
Lint / lint (pull_request) Successful in 2m34s
Build / build (pull_request) Successful in 38s
2026-12-02 08:39:16 +00:00
Defame1297 891deec3a8 Merge pull request 'chore(deps): refresh pip-compile outputs' (#492) from renovate/pip-compile-refresh into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Failing after 18s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 19s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Successful in 17s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 7m47s
Reviewed-on: #492
2026-12-02 08:33:20 +00:00
Defame1297 ffa4cf5760 Merge branch 'main' into renovate/pip-compile-refresh
Molecule / select (pull_request) Successful in 6s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 2s
Lint / lint (pull_request) Successful in 3m35s
Build / build (pull_request) Successful in 36s
2026-12-02 08:29:28 +00:00
Defame1297 3414880d05 ci(molecule): rename the run script after the molecule-controller image
scripts/run_molecule_in_ci_image.sh runs inside the molecule-controller
image, not the ci image, so its name pointed readers at the wrong image.
Its test file and class follow, and every reference is updated. ADR 0003
keeps the old name: it records what that change touched.

main's selector sees the old and the new path (it diffs with
--no-renames) and neither is on IGNORED, so this pull request runs every
scenario through the renamed script of its own checkout.

Assisted-by: Claude Code
2026-12-02 08:27:57 +00:00
Defame1297 08c589e910 docs(requirements): name the molecule-controller image as Molecule's consumer
Molecule runs in the molecule-controller image, which bakes these
collections, and the run script installs them when a pull request changes
them. The header still said the ci image served Molecule and that the
workflow installed them itself.

Assisted-by: Claude Code
2026-12-02 08:21:41 +00:00
Defame1297 476239b119 Merge pull request 'ci(molecule): skip the Molecule runner when no scenario is selected' (#503) from ci/433-skip-empty-molecule into main
Reviewed-on: #503
2026-12-02 08:12:32 +00:00
Defame1297 e4039871a6 Merge branch 'main' into ci/433-skip-empty-molecule
Molecule / select (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 4m27s
Molecule / scenarios (pull_request) Successful in 39m25s
Molecule / Result (pull_request) Successful in 3s
Build / build (pull_request) Successful in 26s
2026-12-02 00:00:32 +00:00
Defame1297 69ed7776b0 Merge pull request 'chore(deps): update dependency molecule to v26.11.1' (#490) from renovate/molecule-26.x into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Failing after 15s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 18s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Successful in 1m55s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 9m2s
Reviewed-on: #490
2026-12-01 23:44:22 +00:00
Defame1297 479efe1ddc ci(molecule): fail the Molecule result when select's output is lost
Build / build (pull_request) Successful in 25s
Lint / lint (pull_request) Successful in 2m26s
Molecule / select (pull_request) Successful in 21s
Molecule / Result (pull_request) Canceled after 0s
Molecule / scenarios (pull_request) Canceled after 10m23s
An empty select output meant "nothing selected", so an output lost on
the way from select to result also passed the required check. select now
writes `none` for an empty selection; scenarios runs for neither `none`
nor an empty output, and result passes a skipped scenarios only for
`none`.

The result-logic test runs under sh, as act runs a job container's step
without a shell, and a new test parses what select writes to
GITHUB_OUTPUT. The fork-guard test compares each job with the literal
guard.

Assisted-by: Claude Code
2026-12-01 23:42:59 +00:00
Defame1297 2d1f142662 ci(molecule): skip the Molecule runner when no scenario is selected
A pull request that selects no scenario still took the single Molecule
runner slot to pull the controller image, select nothing and exit.

The workflow now has three jobs. select runs the selector from main's
copy in a job container on kamino-docker, in the molecule-controller pin,
and outputs the selected list. scenarios runs it on kamino-molecule and
is skipped when the list is empty. result runs always() and is the one
job to require: it fails unless select passed and scenarios passed or
was skipped for an empty list, because Gitea counts a skipped job as
passing. Scheduled and dispatched runs still select every scenario.

container.image cannot read env, so the controller pin is written in all
three jobs; a test holds the copies equal. The pin moves to 0.1.1, which
has git for the select job's checkout. Branch protection must then
require "Molecule / Result (pull_request)".

Closes #433

Assisted-by: Claude Code
2026-12-01 23:20:01 +00:00
Defame1297 d2db03b48d Merge branch 'main' into renovate/pip-compile-refresh
Lint / lint (pull_request) Successful in 7m13s
Molecule / molecule (pull_request) Successful in 15s
Build / build (pull_request) Canceled after 1m15s
2026-12-01 23:13:04 +00:00
Defame1297 12cc3b8ef4 Merge branch 'main' into renovate/molecule-26.x
Build / build (pull_request) Successful in 23s
Lint / lint (pull_request) Successful in 4m8s
Molecule / molecule (pull_request) Successful in 39m35s
2026-12-01 23:04:09 +00:00
Defame1297 492a68395e Merge pull request 'ci(images): add git to the molecule-controller image' (#502) from ci/488-controller-git into main
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 15s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Successful in 1m42s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 15s
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Failing after 44s
Reviewed-on: #502
2026-12-01 22:53:29 +00:00
Defame1297 75f9d27329 ci(images): add git to the molecule-controller image
Molecule / molecule (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 2m3s
Build / build (pull_request) Successful in 39s
The Molecule select job runs the selector in this image, and the
selector diffs the checkout with git.

Closes #488

Assisted-by: Claude Code
2026-12-01 22:42:23 +00:00
Defame1297 2ad2fe6060 Merge pull request 'ci(molecule): run Molecule in the molecule-controller image' (#487) from ci/431-pin-molecule-controller into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Failing after 17s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 17s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Successful in 17s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 5m25s
Reviewed-on: #487
Reviewed-by: Defame1297 <[email protected]>
2026-12-01 22:23:40 +00:00
Defame1297 70adc0de29 Merge branch 'main' into ci/431-pin-molecule-controller
Lint / lint (pull_request) Successful in 3m32s
Molecule / molecule (pull_request) Successful in 36m15s
Build / build (pull_request) Successful in 39s
2026-12-01 21:46:31 +00:00
Defame1297 f842cd16b9 Merge pull request 'chore(release): 3.3.0' (#501) from chore/483-release-3.3.0 into main
Build / build (push) Successful in 1m0s
Reviewed-on: #501
2026-12-01 21:45:30 +00:00
Defame1297 3124af964c chore(release): 3.3.0
Build / build (pull_request) Successful in 52s
Molecule / molecule (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 2m56s
Minor release: adds the nfs_client and pve_vm roles, a pinned checksum
for the Docker APT key, an hourly staleness window for the traefik APT
refresh, and fixes ufw and fail2ban failing under --check on a host
where they were not installed yet.

Assisted-by: Claude Code:claude-opus-5-5
2026-12-01 21:33:42 +00:00
Defame1297 5fd5d63984 Merge branch 'main' into ci/431-pin-molecule-controller
Lint / lint (pull_request) Successful in 3m27s
Molecule / molecule (pull_request) Canceled after 19m49s
Build / build (pull_request) Successful in 40s
2026-12-01 21:23:38 +00:00
Defame1297 ceaa43c7ab Merge pull request 'feat(pve_vm): add the pve_vm role' (#489) from feat/482-pve-vm-role into main
Reviewed-on: #489
2026-12-01 20:56:44 +00:00
Defame1297 773de8eba4 Merge branch 'main' into feat/482-pve-vm-role
Lint / lint (pull_request) Successful in 4m48s
Molecule / molecule (pull_request) Successful in 37m37s
Build / build (pull_request) Successful in 56s
2026-12-01 20:13:01 +00:00
Defame1297 bdf2cd8e59 Merge branch 'main' into ci/431-pin-molecule-controller
Lint / lint (pull_request) Successful in 4m4s
Molecule / molecule (pull_request) Canceled after 9m7s
Build / build (pull_request) Successful in 33s
2026-12-01 20:09:19 +00:00
Defame1297 a011f07d27 Merge pull request 'chore(deps): update own ci images' (#486) from renovate/own-ci-images into main
Reviewed-on: #486
2026-11-29 20:11:29 +00:00
Defame1297 f3cab37c7b feat(pve_vm): add the pve_vm role
Lint / lint (pull_request) Successful in 2m57s
Molecule / molecule (pull_request) Successful in 30m40s
Build / build (pull_request) Successful in 46s
Manage a Proxmox VE QEMU VM through the Proxmox API: clone from a
template, cloud-init user, SSH keys and network, update only on detected
drift, grow the boot disk, apply the power state, wait for SSH and
cloud-init, and delete behind pve_vm_allow_destroy. The role never sets
a cloud-init password and deletes a stored one with no_log.

Inputs are validated first under the always tag: the API credentials,
and pve_vm_disk_size while the disk is managed; the clone asserts
pve_vm_clone_vmid. Only pve_vm_exists is public, every other fact and
register is __pve_vm_.

The molecule scenario runs offline on noble and resolute: validation
with positive and refusal cases, drift detection over seeded VM configs,
and static checks over the role's task files that no proxmox_kvm task
or module_defaults entry carries cipassword and that the one task
deleting a stored cipassword is no_log. The API lifecycle and the
cloud-init wait are not exercised.

README Roadmap: the pve_vm wave 2 line and the opnsense and
proxmox_firewall line are removed; wave 3 stays.

Closes #482

Assisted-by: Claude Code:claude-opus-5-5
2026-11-29 20:10:33 +00:00
Defame1297 91cc633665 docs(molecule): say the profile callbacks come from the molecule-controller image
Lint / lint (pull_request) Successful in 5m7s
Molecule / molecule (pull_request) Successful in 52m5s
Build / build (pull_request) Successful in 1m11s
Assisted-by: Claude Code
2026-11-29 19:25:33 +00:00
Defame1297 4db1a2b3c9 docs: describe Molecule running in the molecule-controller image
The ci image's labels and doc, the consumer lists, the Molecule rules in
.gitea/workflows/AGENTS.md and the accepted risk on pin bumps in SECURITY.md said Molecule
runs in the ci image. They now name the molecule-controller image, its pin files and which
pin files select scenarios.

Closes #431

Assisted-by: Claude Code
2026-11-29 19:25:33 +00:00
Defame1297 89bd579e87 ci(molecule): run Molecule in the molecule-controller image
Molecule ran in the ci image, so a ci pin bump for a tool only Lint uses selected every
scenario (ADR 0003). The workflow now pins molecule-controller 0.1.0 by digest as
CONTROLLER_IMAGE, the hand-made first pin the ADR calls for.

- The run script checks /opt/molecule-pins.sha256 and installs requirements-molecule.lock
  when a pull request changed a pin file.
- The selector reads CONTROLLER_IMAGE: a controller pin change selects every scenario; a ci
  pin bump touches only lint.yml and build.yml, which are on IGNORED, so it selects none.
- Tests show requirements-molecule.* selects every scenario and requirements-dev.* none.
- Renovate's molecule.yml regex matches CONTROLLER_IMAGE.

Closes #434

Assisted-by: Claude Code
2026-11-29 19:25:33 +00:00
Defame1297 6e89e4d857 Merge pull request 'ci(images): stop baking ufw and fail2ban into the molecule images' (#485) from images/435-stop-baking-ufw-fail2ban into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 48s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 59s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Successful in 22s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 19s
Reviewed-on: #485
2026-11-29 19:11:40 +00:00
Defame1297 f1598486f0 test(molecule): stop saying the image ships ufw and fail2ban
Lint / lint (pull_request) Successful in 3m38s
Molecule / molecule (pull_request) Successful in 14m55s
Build / build (pull_request) Successful in 34s
Assisted-by: Claude Code
2026-11-29 18:53:24 +00:00
Defame1297 c64b4b932b ci(images): stop baking ufw and fail2ban into the molecule images
ADR 0002 keeps a package a role installs out of the molecule images, so its scenario exercises
the install. The ufw and fail2ban roles install their packages, so both images drop them; iptables,
openssh-server, python3-systemd and gnupg stay as fixtures. The labels, header comments, image
docs and image-smoke package lists no longer claim the packages are baked or that a converge
makes no network calls.

Refs: #435
Assisted-by: Claude Code
2026-11-29 18:53:24 +00:00
Defame1297 6e9709f0da test(molecule): refresh the APT cache where a scenario installs ufw or fail2ban
The molecule images keep no APT lists, and the ufw and fail2ban scenarios, and the gitea
scenario's remove path, relied on those packages being baked in. Their prepare now refreshes the
cache, so they keep working once the images stop shipping the packages.

Refs: #435
Assisted-by: Claude Code
2026-11-29 18:53:24 +00:00
Defame1297 ac9a11413d Merge pull request 'ci(images): build and publish the molecule-controller image' (#484) from ci/477-molecule-controller-image into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 18s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 21s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Successful in 1m36s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 16s
Reviewed-on: #484
Reviewed-by: Defame1297 <[email protected]>
2026-11-29 18:52:27 +00:00
Defame1297 1289da3104 Merge branch 'main' into ci/477-molecule-controller-image
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 3m21s
Molecule / molecule (pull_request) Successful in 32m9s
2026-11-29 18:19:41 +00:00
Defame1297 7f28fccfe4 Merge pull request 'fix(ufw, fail2ban): pass --check on a host without the package' (#481) from fix/478-ufw-fail2ban-check-mode into main
Reviewed-on: #481
Reviewed-by: Defame1297 <[email protected]>
2026-11-29 18:08:26 +00:00
Defame1297 c402720376 Merge branch 'main' into fix/478-ufw-fail2ban-check-mode
Lint / lint (pull_request) Successful in 3m45s
Molecule / molecule (pull_request) Successful in 13m26s
Build / build (pull_request) Successful in 40s
2026-11-29 17:54:14 +00:00
Defame1297 468d167d3a Merge pull request 'docs(adr): say how a later ADR that changes part of an earlier one is recorded' (#480) from docs/453-adr-partial-change into main
Reviewed-on: #480
Reviewed-by: Defame1297 <[email protected]>
2026-11-29 17:53:47 +00:00
Defame1297 a1d42eadce Merge branch 'main' into docs/453-adr-partial-change
Molecule / molecule (pull_request) Successful in 16s
Lint / lint (pull_request) Successful in 1m50s
Build / build (pull_request) Successful in 58s
2026-11-29 17:50:49 +00:00
Defame1297 14c7dde464 Merge pull request 'ci(molecule): fail the run when a scenario has molecule's prerun on' (#479) from ci/452-prerun-check into main
Reviewed-on: #479
2026-11-29 17:49:40 +00:00
Defame1297 56c5c6dd72 ci(images): fail the controller self-check on an empty locked version
Lint / lint (pull_request) Successful in 3m25s
Molecule / molecule (pull_request) Canceled after 7m3s
Build / build (pull_request) Successful in 33s
The self-check reads the ansible-core and molecule versions from the
lock with sed; an empty result made the grep match any version. It now
fails the build instead.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:34:17 +00:00
Defame1297 c3a7cef195 fix(scripts): give a repository not pushed yet no tags
The registry answers tags/list for a repository that does not exist yet
with 404 NAME_UNKNOWN (OCI distribution spec), which failed the Images
version step for the first build of a new image such as
molecule-controller. A 404 on the first tags/list page now reads as no
tags, so the image gets <base>.0; a 404 on a manifest stays an error.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:34:01 +00:00
Defame1297 a9a973a523 fix(ufw, fail2ban): keep the check-mode guard out of vars and test service_rules
Lint / lint (pull_request) Successful in 4m29s
Molecule / molecule (pull_request) Canceled after 1m14s
Build / build (pull_request) Successful in 38s
vars/ holds constants only, so ufw's __ufw_can_configure is now a
set_fact after the install probe; the guards default it to true when the
install tasks were skipped by tags.

service_rules already skips its reconcile when `ufw status` fails under
check mode; the ufw check-absent scenario now calls it so CI holds that.
The fail2ban service jail task's tags sit with the task again, above the
comment of the configuration test.

Refs #478

Assisted-by: Claude Code
2026-11-29 17:10:25 +00:00
Defame1297 0fb4fd70ee ci(renovate): bump the molecule-controller pins like the ci ones
Renovate's pip-compile manager now reads requirements-molecule.lock, and
its uv manager reads the controller Dockerfile's uv pin. The bot-PR
guard holds the controller requirements and lock to the same rules as
requirements-dev.txt and its lock, so the bot's pull requests for them
are neither refused nor freer than the ci ones. The ansible tooling
group spans both locks, so one pull request moves both ansible-core
pins, which check_image_versions.py holds equal.

Checked with renovate 44.161.0 --platform=local: it extracts
requirements-molecule.txt with requirements-molecule.lock, and the uv
pin of images/molecule-controller/Dockerfile.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:09:29 +00:00
Defame1297 fd448d7e9e ci(images): add the molecule-controller image
ADR 0003 moves Molecule out of the ci image, so a ci bump for a tool
only Lint uses stops selecting every scenario. This builds and publishes
the image; nothing pins it yet (#431).

It bakes requirements-molecule.lock (ansible-core, molecule,
molecule-plugins[docker]) on the Python of .python-version and the
collections of both requirements.yml files, and records their checksums
in /opt/molecule-pins.sha256. Its last RUN checks the tool versions
against the lock, the Docker driver, every pinned collection and the
pin record, so a broken image fails its build. It has no image-smoke
scenario: it is the controller of every scenario, and the full run of
its pin pull request proves it; images/AGENTS.md records the exception.

check_image_versions.py pins now checks the Python header of both locks
and fails when their ansible-core pins differ, so Lint and Molecule
judge the code with one ansible-core. The new requirements files stay
off the selector's IGNORED list, so a bump there runs every scenario.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:03:35 +00:00
Defame1297 26c6026d1a ci(scripts): lock either root requirements file
The molecule-controller image gets a requirements file and lock of its
own (ADR 0003), so the lock script takes the file to lock:
requirements-dev.txt by default, as before, or requirements-molecule.txt.
Any other argument is a usage error, so a typo cannot write a lock
somewhere else.

The new test runs the script against a stub interpreter, so it needs
no network.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:03:05 +00:00
Defame1297 2d338d4764 docs(adr): say where the pointer to a later ADR goes
Build / build (pull_request) Successful in 1m6s
Lint / lint (pull_request) Successful in 4m37s
Molecule / molecule (pull_request) Successful in 17s
Assisted-by: Claude Code
2026-11-29 17:00:45 +00:00