diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 4fb771d..365c902 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,19 @@ mortis.kamino Release Notes .. contents:: Topics +v3.5.0 +====== + +Minor Changes +------------- + +- ufw - New input ``ufw_mask_nftables`` (default ``true``) and tag ``ufw_nftables``. Set the input to ``false`` on a host that loads its own ruleset through ``nftables.service``; the role never unmasks the unit. + +Bugfixes +-------- + +- ufw - An upgrade of the ``nftables`` package no longer deletes the firewall rules on hosts where ``nftables.service`` is enabled. The package's postinst restarts that unit, whose stock ``/etc/nftables.conf`` begins with ``flush ruleset``, so the rules ufw and Docker loaded were gone until they reloaded. The role now masks ``nftables.service`` without stopping it whenever ``ufw_enabled`` is true, also when the unit or the package is absent, so the first run reports ``changed`` once. A host that loads its own ruleset through ``nftables.service`` (NAT tables or sets, for example) would lose it at the next reboot without a warning, because a masked unit does not start: set ``ufw_mask_nftables: false`` on such a host before upgrading. + v3.4.0 ====== diff --git a/README.md b/README.md index aa78385..9b8f7a7 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ An Ansible Collection of reusable, hardened roles for a self-hosted home lab: `nfs_client`, `pihole`, `pve_lxc`, `pve_vm`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`, `ufw` and `user_management`, plus the internal `_binary_update`. Roles still to come are listed under [Roadmap](#roadmap). -Status: roles arrive in waves. Release 3.4.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `nfs_client`, `pihole`, `pve_lxc`, `pve_vm`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`, `ufw` and `user_management` roles (and the internal `_binary_update`, which `cloudflared`, `gitea`, `gitea_runner` and `traefik` call). +Status: roles arrive in waves. Release 3.5.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `nfs_client`, `pihole`, `pve_lxc`, `pve_vm`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`, `ufw` and `user_management` roles (and the internal `_binary_update`, which `cloudflared`, `gitea`, `gitea_runner` and `traefik` call). ## Consuming @@ -17,7 +17,7 @@ name (FQCN) only, `mortis.kamino.`: collections: - name: https://git.rkdr.net/mortis/kamino.git type: git - version: v3.4.0 + version: v3.5.0 ``` Its dependencies (`community.general`, `ansible.posix`, `community.proxmox`) are declared in `galaxy.yml`, so diff --git a/changelogs/.plugin-cache.yaml b/changelogs/.plugin-cache.yaml index 7fc319f..0577741 100644 --- a/changelogs/.plugin-cache.yaml +++ b/changelogs/.plugin-cache.yaml @@ -93,4 +93,4 @@ plugins: strategy: {} test: {} vars: {} -version: 3.4.0 +version: 3.5.0 diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 86b33c7..cb2c9ea 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -599,3 +599,24 @@ releases: - 511-system-baseline-icmp-redirects.yml - 511-system-baseline-sysctl-wildcard.yml release_date: '2026-12-03' + 3.5.0: + changes: + bugfixes: + - 'ufw - An upgrade of the ``nftables`` package no longer deletes the firewall + rules on hosts where ``nftables.service`` is enabled. The package''s postinst + restarts that unit, whose stock ``/etc/nftables.conf`` begins with ``flush + ruleset``, so the rules ufw and Docker loaded were gone until they reloaded. + The role now masks ``nftables.service`` without stopping it whenever ``ufw_enabled`` + is true, also when the unit or the package is absent, so the first run reports + ``changed`` once. A host that loads its own ruleset through ``nftables.service`` + (NAT tables or sets, for example) would lose it at the next reboot without + a warning, because a masked unit does not start: set ``ufw_mask_nftables: + false`` on such a host before upgrading.' + minor_changes: + - ufw - New input ``ufw_mask_nftables`` (default ``true``) and tag ``ufw_nftables``. + Set the input to ``false`` on a host that loads its own ruleset through ``nftables.service``; + the role never unmasks the unit. + fragments: + - ufw-mask-nftables-input.yml + - ufw-mask-nftables.yml + release_date: '2026-12-06' diff --git a/changelogs/fragments/ufw-mask-nftables-input.yml b/changelogs/fragments/ufw-mask-nftables-input.yml deleted file mode 100644 index f6da830..0000000 --- a/changelogs/fragments/ufw-mask-nftables-input.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -minor_changes: - - >- - ufw - New input ``ufw_mask_nftables`` (default ``true``) and tag ``ufw_nftables``. Set the input to ``false`` - on a host that loads its own ruleset through ``nftables.service``; the role never unmasks the unit. diff --git a/changelogs/fragments/ufw-mask-nftables.yml b/changelogs/fragments/ufw-mask-nftables.yml deleted file mode 100644 index eb5684d..0000000 --- a/changelogs/fragments/ufw-mask-nftables.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- -bugfixes: - - >- - ufw - An upgrade of the ``nftables`` package no longer deletes the firewall rules on hosts where - ``nftables.service`` is enabled. The package's postinst restarts that unit, whose stock ``/etc/nftables.conf`` - begins with ``flush ruleset``, so the rules ufw and Docker loaded were gone until they reloaded. The role now - masks ``nftables.service`` without stopping it whenever ``ufw_enabled`` is true, also when the unit or the - package is absent, so the first run reports ``changed`` once. A host that loads its own ruleset through - ``nftables.service`` (NAT tables or sets, for example) would lose it at the next reboot without a warning, because - a masked unit does not start: set ``ufw_mask_nftables: false`` on such a host before upgrading. diff --git a/galaxy.yml b/galaxy.yml index 6a8917d..5f7b8b8 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: mortis name: kamino -version: 3.4.0 +version: 3.5.0 readme: README.md authors: - Defame1297