chore(release): 1.6.0
Adds the sshd role. ufw base rules can delete a rule (delete: true), so an open rule can be replaced by narrower ones, and fail2ban gains fail2ban_ignoreip. Existing behaviour is unchanged unless the new options are used. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
a4e80c1864
commit
bc86c2db9f
9 files changed
+53
-25
No files matched your search
@@ -4,6 +4,21 @@ mortis.kamino Release Notes
|
|||||||
|
|
||||||
.. contents:: Topics
|
.. contents:: Topics
|
||||||
|
|
||||||
|
v1.6.0
|
||||||
|
======
|
||||||
|
|
||||||
|
Release Summary
|
||||||
|
---------------
|
||||||
|
|
||||||
|
Adds the sshd role. ufw base rules can now delete a rule, so an open rule can be replaced by narrower ones, and fail2ban gains fail2ban_ignoreip. Existing behaviour is unchanged unless the new options are used.
|
||||||
|
|
||||||
|
Minor Changes
|
||||||
|
-------------
|
||||||
|
|
||||||
|
- fail2ban - add ``fail2ban_ignoreip``, written as ``ignoreip`` in the ``[DEFAULT]`` section of ``jail.local`` so it applies to every jail, the service jails included. The default is Fail2Ban's own (``127.0.0.1/8`` and ``::1``). The first run after upgrading adds the section and restarts Fail2Ban once.
|
||||||
|
- sshd - New role. Writes a hardened sshd drop-in selected by a profile (``pve``, ``ubuntu_lxc``, ``ubuntu_vm``), merged from a baseline, the profile and ``sshd_settings``, checked with ``sshd -t`` and reloaded through a handler. It refuses to run when the result would lock SSH out (password login off without public key login), when the ``pve`` profile does not allow root public-key login or lacks ``rsa-sha2-512`` (Proxmox VE cluster SSH needs both), and when any profile allows SHA-1 ``ssh-rsa``.
|
||||||
|
- ufw - ``ufw_rules`` entries accept ``delete`` (a boolean). An entry with ``delete: true`` removes the rule it describes, so a base rule can be replaced, for example an open SSH rule by narrower ones. Deletes are applied after every other rule of the list, a delete entry never satisfies the SSH lock-out guard, and a rule that the list both adds and deletes fails the play. ``service_rules`` does not accept the key.
|
||||||
|
|
||||||
v1.5.0
|
v1.5.0
|
||||||
======
|
======
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
`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
|
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, `ufw` in 1.4.0; 1.5.0 adds no role (new `system_baseline` options).
|
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; 1.5.0 adds no role (new `system_baseline` options); `sshd` in 1.6.0.
|
||||||
|
|
||||||
**Roadmap.** The roles still to come, and the ones that will never be extracted, are listed in
|
**Roadmap.** The roles still to come, and the ones that will never be extracted, are listed in
|
||||||
the README section "Roadmap". Context: the maintainer's private environment repository (a
|
the README section "Roadmap". Context: the maintainer's private environment repository (a
|
||||||
|
|||||||
@@ -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,
|
Linux baseline, firewall, SSH, user management and, in later releases, Proxmox,
|
||||||
Gitea and Gitea Actions runner roles.
|
Gitea and Gitea Actions runner roles.
|
||||||
|
|
||||||
Status: roles arrive in waves. Release 1.5.0 holds the `docker`, `fail2ban`, `network_interfaces`, `system_baseline`, `systemd_hardening` and `ufw` roles.
|
Status: roles arrive in waves. Release 1.6.0 holds the `docker`, `fail2ban`, `network_interfaces`, `sshd`, `system_baseline`, `systemd_hardening` and `ufw` roles.
|
||||||
|
|
||||||
## Consuming
|
## Consuming
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@ name (FQCN) only, `mortis.kamino.<role>`:
|
|||||||
collections:
|
collections:
|
||||||
- name: https://git.rkdr.net/mortis/kamino.git
|
- name: https://git.rkdr.net/mortis/kamino.git
|
||||||
type: git
|
type: git
|
||||||
version: v1.5.0
|
version: v1.6.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Its dependencies (`community.general`, `ansible.posix`) are declared in `galaxy.yml`, so
|
Its dependencies (`community.general`, `ansible.posix`) are declared in `galaxy.yml`, so
|
||||||
|
|||||||
@@ -12,6 +12,10 @@ objects:
|
|||||||
description: Manage /etc/network/interfaces
|
description: Manage /etc/network/interfaces
|
||||||
name: network_interfaces
|
name: network_interfaces
|
||||||
version_added: null
|
version_added: null
|
||||||
|
sshd:
|
||||||
|
description: Write a hardened sshd drop-in
|
||||||
|
name: sshd
|
||||||
|
version_added: null
|
||||||
system_baseline:
|
system_baseline:
|
||||||
description: Apply the OS baseline for a system type
|
description: Apply the OS baseline for a system type
|
||||||
name: system_baseline
|
name: system_baseline
|
||||||
@@ -40,4 +44,4 @@ plugins:
|
|||||||
strategy: {}
|
strategy: {}
|
||||||
test: {}
|
test: {}
|
||||||
vars: {}
|
vars: {}
|
||||||
version: 1.5.0
|
version: 1.6.0
|
||||||
@@ -119,3 +119,32 @@ releases:
|
|||||||
- system-baseline-tmux.yml
|
- system-baseline-tmux.yml
|
||||||
- system-baseline-update-toggle.yml
|
- system-baseline-update-toggle.yml
|
||||||
release_date: '2026-11-15'
|
release_date: '2026-11-15'
|
||||||
|
1.6.0:
|
||||||
|
changes:
|
||||||
|
minor_changes:
|
||||||
|
- fail2ban - add ``fail2ban_ignoreip``, written as ``ignoreip`` in the ``[DEFAULT]``
|
||||||
|
section of ``jail.local`` so it applies to every jail, the service jails included.
|
||||||
|
The default is Fail2Ban's own (``127.0.0.1/8`` and ``::1``). The first run
|
||||||
|
after upgrading adds the section and restarts Fail2Ban once.
|
||||||
|
- sshd - New role. Writes a hardened sshd drop-in selected by a profile (``pve``,
|
||||||
|
``ubuntu_lxc``, ``ubuntu_vm``), merged from a baseline, the profile and ``sshd_settings``,
|
||||||
|
checked with ``sshd -t`` and reloaded through a handler. It refuses to run
|
||||||
|
when the result would lock SSH out (password login off without public key
|
||||||
|
login), when the ``pve`` profile does not allow root public-key login or lacks
|
||||||
|
``rsa-sha2-512`` (Proxmox VE cluster SSH needs both), and when any profile
|
||||||
|
allows SHA-1 ``ssh-rsa``.
|
||||||
|
- 'ufw - ``ufw_rules`` entries accept ``delete`` (a boolean). An entry with
|
||||||
|
``delete: true`` removes the rule it describes, so a base rule can be replaced,
|
||||||
|
for example an open SSH rule by narrower ones. Deletes are applied after every
|
||||||
|
other rule of the list, a delete entry never satisfies the SSH lock-out guard,
|
||||||
|
and a rule that the list both adds and deletes fails the play. ``service_rules``
|
||||||
|
does not accept the key.'
|
||||||
|
release_summary: Adds the sshd role. ufw base rules can now delete a rule, so
|
||||||
|
an open rule can be replaced by narrower ones, and fail2ban gains fail2ban_ignoreip.
|
||||||
|
Existing behaviour is unchanged unless the new options are used.
|
||||||
|
fragments:
|
||||||
|
- 1.6.0.yml
|
||||||
|
- fail2ban-ignoreip.yml
|
||||||
|
- sshd-role.yml
|
||||||
|
- ufw-rule-delete.yml
|
||||||
|
release_date: '2026-11-15'
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
minor_changes:
|
|
||||||
- >-
|
|
||||||
fail2ban - add ``fail2ban_ignoreip``, written as ``ignoreip`` in the ``[DEFAULT]`` section of ``jail.local`` so it applies to
|
|
||||||
every jail, the service jails included. The default is Fail2Ban's own (``127.0.0.1/8`` and ``::1``). The first run after
|
|
||||||
upgrading adds the section and restarts Fail2Ban once.
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
minor_changes:
|
|
||||||
- sshd - New role. Writes a hardened sshd drop-in selected by a profile (``pve``, ``ubuntu_lxc``, ``ubuntu_vm``),
|
|
||||||
merged from a baseline, the profile and ``sshd_settings``, checked with ``sshd -t`` and reloaded through a handler.
|
|
||||||
It refuses to run when the result would lock SSH out (password login off without public key login), when the
|
|
||||||
``pve`` profile does not allow root public-key login or lacks ``rsa-sha2-512`` (Proxmox VE cluster SSH needs both),
|
|
||||||
and when any profile allows SHA-1 ``ssh-rsa``.
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
minor_changes:
|
|
||||||
- >-
|
|
||||||
ufw - ``ufw_rules`` entries accept ``delete`` (a boolean). An entry with ``delete: true`` removes the rule it describes,
|
|
||||||
so a base rule can be replaced, for example an open SSH rule by narrower ones. Deletes are applied after every other
|
|
||||||
rule of the list, a delete entry never satisfies the SSH lock-out guard, and a rule that the list both adds and deletes
|
|
||||||
fails the play. ``service_rules`` does not accept the key.
|
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
namespace: mortis
|
namespace: mortis
|
||||||
name: kamino
|
name: kamino
|
||||||
version: 1.5.0
|
version: 1.6.0
|
||||||
readme: README.md
|
readme: README.md
|
||||||
authors:
|
authors:
|
||||||
- Defame1297
|
- Defame1297
|
||||||
|
|||||||
Reference in new issue
Block a user