Under ADR 0002, an image holds no package a role installs. #478 made ufw and fail2ban --check pass on a host without the package, so the images no longer need to bake them in.
Images
molecule-ubuntu2404 and molecule-ubuntu2604 drop ufw and fail2ban, and keep iptables, openssh-server, python3-systemd and gnupg.
Their header, description and contents labels and the install comment are updated, and so are docs/images/molecule-ubuntu{2404,2604}.md.
Both image-smoke verify.yml files stop asserting the two packages.
Scenarios
The images delete /var/lib/apt/lists, so every scenario that reaches a ufw or fail2ban install now refreshes the APT cache first:
ufw default prepare installs ufw with update_cache. It needs the CLI to seed the stored rules before converge.
fail2ban default prepare refreshes the cache.
gitea default gains a prepare.yml that refreshes the cache and installs ufw, and its stale comment is fixed.
traefik and system_baseline already refreshed the cache.
The comments in the check-absent scenarios no longer say the image ships the package.
A clean-context review traced every scenario that reaches a ufw or fail2ban install and found no blocking issues. I applied its stale-comment note.
CI: this pull request runs the changed scenarios on the current images, which still have the packages.
Not verified
The scenarios on the rebuilt images. The images build after merge, and the Renovate pin pull request that follows runs every scenario against them; that run is the proof.
The rebuilt layer size was not measured.
I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.
Assisted-by: Claude Code
## What and why
Closes #435
Under ADR 0002, an image holds no package a role installs. #478 made ufw and fail2ban `--check` pass on a host without the package, so the images no longer need to bake them in.
**Images**
- `molecule-ubuntu2404` and `molecule-ubuntu2604` drop ufw and fail2ban, and keep iptables, openssh-server, python3-systemd and gnupg.
- Their header, description and contents labels and the install comment are updated, and so are `docs/images/molecule-ubuntu{2404,2604}.md`.
- Both image-smoke `verify.yml` files stop asserting the two packages.
**Scenarios**
The images delete `/var/lib/apt/lists`, so every scenario that reaches a ufw or fail2ban install now refreshes the APT cache first:
- ufw default prepare installs ufw with `update_cache`. It needs the CLI to seed the stored rules before converge.
- fail2ban default prepare refreshes the cache.
- gitea default gains a `prepare.yml` that refreshes the cache and installs ufw, and its stale comment is fixed.
- traefik and system_baseline already refreshed the cache.
- The comments in the check-absent scenarios no longer say the image ships the package.
## Verified
- `pre-commit run --all-files` passes.
- `python -m unittest discover -s tests/scripts` passes.
- `scripts/check_image_versions.py pins` passes.
- A clean-context review traced every scenario that reaches a ufw or fail2ban install and found no blocking issues. I applied its stale-comment note.
- CI: this pull request runs the changed scenarios on the current images, which still have the packages.
## Not verified
- The scenarios on the rebuilt images. The images build after merge, and the Renovate pin pull request that follows runs every scenario against them; that run is the proof.
- The rebuilt layer size was not measured.
---
- [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none.
Assisted-by: Claude Code
Claude
added this to the CI velocity (emergency) milestone 2026-11-29 18:56:04 +00:00
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
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What and why
Closes #435
Under ADR 0002, an image holds no package a role installs. #478 made ufw and fail2ban
--checkpass on a host without the package, so the images no longer need to bake them in.Images
molecule-ubuntu2404andmolecule-ubuntu2604drop ufw and fail2ban, and keep iptables, openssh-server, python3-systemd and gnupg.docs/images/molecule-ubuntu{2404,2604}.md.verify.ymlfiles stop asserting the two packages.Scenarios
The images delete
/var/lib/apt/lists, so every scenario that reaches a ufw or fail2ban install now refreshes the APT cache first:update_cache. It needs the CLI to seed the stored rules before converge.prepare.ymlthat refreshes the cache and installs ufw, and its stale comment is fixed.Verified
pre-commit run --all-filespasses.python -m unittest discover -s tests/scriptspasses.scripts/check_image_versions.py pinspasses.Not verified
NOTICEandREUSE.toml, or there is none.Assisted-by: Claude Code