From d4f4d748a421e895197127be44055062ce4c4a1d Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sat, 14 Nov 2026 18:31:16 +0000 Subject: [PATCH] chore(release): 1.4.0 Adds the ufw role (main, service_rules and orphan_rules entry points), copied from the environment repository's role with unchanged behaviour. Existing roles are unchanged. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm --- CHANGELOG.rst | 13 ++++++++++++ CLAUDE.md | 2 +- README.md | 4 ++-- changelogs/.plugin-cache.yaml | 6 +++++- changelogs/changelog.yaml | 21 +++++++++++++++++-- .../fragments/molecule-docker-gnupg.yml | 3 --- changelogs/fragments/ufw-role.yml | 6 ------ galaxy.yml | 2 +- 8 files changed, 41 insertions(+), 16 deletions(-) delete mode 100644 changelogs/fragments/molecule-docker-gnupg.yml delete mode 100644 changelogs/fragments/ufw-role.yml diff --git a/CHANGELOG.rst b/CHANGELOG.rst index de21e64..4261203 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,19 @@ mortis.kamino Release Notes .. contents:: Topics +v1.4.0 +====== + +Release Summary +--------------- + +Adds the ufw role (entry points main, service_rules and orphan_rules), copied from the environment repository's role with unchanged behaviour. Existing roles are unchanged. + +Minor Changes +------------- + +- ufw - New role. Installs and enables UFW with default policies, base rules, ``before.rules`` and sysctl overrides, and refuses to run when the rules would lock the host out of SSH. Besides ``main``, the ``service_rules`` entry point applies a service role's own rules tagged with its name, and the ``orphan_rules`` entry point reports, and optionally deletes, the tagged rules of owners that are no longer managed. + v1.3.0 ====== diff --git a/CLAUDE.md b/CLAUDE.md index 5610eaa..05918e9 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -6,7 +6,7 @@ Guidance for Claude Code (claude.ai/code) in this repository. `mortis.kamino`: an Ansible Collection (GPL-3.0-or-later, REUSE-compliant), extracted role by role from the author's homelab environment repository. The design contract is ADR 0004 (in the -maintainer's environment repository). Roles arrive here wave by wave; `docker` is in 1.0.0, `fail2ban` in 1.1.0, `network_interfaces` and `systemd_hardening` in 1.2.0, `system_baseline` in 1.3.0. +maintainer's environment repository). Roles arrive here wave by wave; `docker` is in 1.0.0, `fail2ban` in 1.1.0, `network_interfaces` and `systemd_hardening` in 1.2.0, `system_baseline` in 1.3.0, `ufw` in 1.4.0. Fork pull requests from untrusted users are not accepted for now: a fork controls its own workflow file, so the `if:` guards are a convenience, not a boundary (see the header of diff --git a/README.md b/README.md index 2ceb710..a381861 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ An Ansible Collection of reusable, hardened roles for a self-hosted home lab: Linux baseline, firewall, SSH, user management and, in later releases, Proxmox, Gitea and Gitea Actions runner roles. -Status: roles arrive in waves. Release 1.3.0 holds the `docker`, `fail2ban`, `network_interfaces`, `system_baseline` and `systemd_hardening` roles. +Status: roles arrive in waves. Release 1.4.0 holds the `docker`, `fail2ban`, `network_interfaces`, `system_baseline`, `systemd_hardening` and `ufw` roles. ## Consuming @@ -16,7 +16,7 @@ name (FQCN) only, `mortis.kamino.`: collections: - name: https://git.rkdr.net/mortis/kamino.git type: git - version: v1.3.0 + version: v1.4.0 ``` Its dependencies (`community.general`, `ansible.posix`) are declared in `galaxy.yml`, so diff --git a/changelogs/.plugin-cache.yaml b/changelogs/.plugin-cache.yaml index 1c59b69..c4a55a5 100644 --- a/changelogs/.plugin-cache.yaml +++ b/changelogs/.plugin-cache.yaml @@ -20,6 +20,10 @@ objects: description: Harden systemd for a system type name: systemd_hardening version_added: null + ufw: + description: Install and configure UFW + name: ufw + version_added: null plugins: become: {} cache: {} @@ -36,4 +40,4 @@ plugins: strategy: {} test: {} vars: {} -version: 1.3.0 +version: 1.4.0 diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 011171e..ea3e089 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -55,8 +55,6 @@ releases: release_date: '2026-11-10' 1.3.0: changes: - release_summary: Adds the system_baseline role, the first role that needs other - collections; community.general and ansible.posix are now declared dependencies. minor_changes: - galaxy.yml - Declare ``community.general`` (>=14.0.0) and ``ansible.posix`` (>=2.2.0) as dependencies, needed by ``system_baseline``. ``ansible-galaxy`` @@ -68,6 +66,25 @@ releases: ``main``, the ``update`` and ``reboot`` task files are supported entry points for callers that drive their own reboot; ``reboot`` sets the ``system_baseline_reboot_required`` fact. + release_summary: Adds the system_baseline role, the first role that needs other + collections; community.general and ansible.posix are now declared dependencies. fragments: - system-baseline-role.yml release_date: '2026-11-14' + 1.4.0: + changes: + minor_changes: + - ufw - New role. Installs and enables UFW with default policies, base rules, + ``before.rules`` and sysctl overrides, and refuses to run when the rules would + lock the host out of SSH. Besides ``main``, the ``service_rules`` entry point + applies a service role's own rules tagged with its name, and the ``orphan_rules`` + entry point reports, and optionally deletes, the tagged rules of owners that + are no longer managed. + release_summary: Adds the ufw role (entry points main, service_rules and orphan_rules), + copied from the environment repository's role with unchanged behaviour. Existing + roles are unchanged. + fragments: + - 1.4.0.yml + - molecule-docker-gnupg.yml + - ufw-role.yml + release_date: '2026-11-14' diff --git a/changelogs/fragments/molecule-docker-gnupg.yml b/changelogs/fragments/molecule-docker-gnupg.yml deleted file mode 100644 index 514d1f6..0000000 --- a/changelogs/fragments/molecule-docker-gnupg.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -trivial: - - docker - the molecule scenario takes gnupg from the molecule image, so the README no longer lists it among what the scenario needs the Ubuntu mirrors for. diff --git a/changelogs/fragments/ufw-role.yml b/changelogs/fragments/ufw-role.yml deleted file mode 100644 index 9ddb3f3..0000000 --- a/changelogs/fragments/ufw-role.yml +++ /dev/null @@ -1,6 +0,0 @@ -minor_changes: - - ufw - New role. Installs and enables UFW with default policies, base rules, ``before.rules`` and - sysctl overrides, and refuses to run when the rules would lock the host out of SSH. Besides ``main``, - the ``service_rules`` entry point applies a service role's own rules tagged with its name, and the - ``orphan_rules`` entry point reports, and optionally deletes, the tagged rules of owners that are no - longer managed. diff --git a/galaxy.yml b/galaxy.yml index 891c5d7..16fec0f 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: mortis name: kamino -version: 1.3.0 +version: 1.4.0 readme: README.md authors: - Defame1297