diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2ed590a..ae83c8d 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,19 @@ mortis.kamino Release Notes .. contents:: Topics +v1.7.0 +====== + +Release Summary +--------------- + +Adds the user_management role, which completes wave 1. Its root fallback refuses to run when the primary user's name is not ansible_user. Existing roles are unchanged. + +Minor Changes +------------- + +- user_management - New role. Manages the primary ansible user and additional users (a user with ``state=absent`` is removed), their ``authorized_keys`` (exclusive by default), sudo and cloud-init. When the configured user cannot connect (a fresh guest) it falls back to root with the same deploy key, never a password, and hands the connection back to the configured user once it exists; the fallback refuses to run when the primary user's name is not ``ansible_user``. The optional ``user_management_lock_root_password`` (default false) replaces root's password hash with ``!`` and leaves root's keys and shell alone. + v1.6.0 ====== diff --git a/CLAUDE.md b/CLAUDE.md index e18fb93..416ab5d 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, `ufw` in 1.4.0; 1.5.0 adds no role (new `system_baseline` options); `sshd` in 1.6.0; `user_management` in the next release. +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; `user_management` in 1.7.0. **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 diff --git a/README.md b/README.md index 9ca38f9..71b2b44 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.6.0 holds the `docker`, `fail2ban`, `network_interfaces`, `sshd`, `system_baseline`, `systemd_hardening` and `ufw` roles. +Status: roles arrive in waves. Release 1.7.0 holds the `docker`, `fail2ban`, `network_interfaces`, `sshd`, `system_baseline`, `systemd_hardening`, `ufw` and `user_management` roles. ## Consuming @@ -16,7 +16,7 @@ name (FQCN) only, `mortis.kamino.`: collections: - name: https://git.rkdr.net/mortis/kamino.git type: git - version: v1.6.0 + version: v1.7.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 23c469f..0279fee 100644 --- a/changelogs/.plugin-cache.yaml +++ b/changelogs/.plugin-cache.yaml @@ -28,6 +28,10 @@ objects: description: Install and configure UFW name: ufw version_added: null + user_management: + description: Manage the ansible user, other users and their SSH keys + name: user_management + version_added: null plugins: become: {} cache: {} @@ -44,4 +48,4 @@ plugins: strategy: {} test: {} vars: {} -version: 1.6.0 +version: 1.7.0 diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 62ce45b..f1208c3 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -148,3 +148,21 @@ releases: - sshd-role.yml - ufw-rule-delete.yml release_date: '2026-11-15' + 1.7.0: + changes: + minor_changes: + - user_management - New role. Manages the primary ansible user and additional + users (a user with ``state=absent`` is removed), their ``authorized_keys`` + (exclusive by default), sudo and cloud-init. When the configured user cannot + connect (a fresh guest) it falls back to root with the same deploy key, never + a password, and hands the connection back to the configured user once it exists; + the fallback refuses to run when the primary user's name is not ``ansible_user``. + The optional ``user_management_lock_root_password`` (default false) replaces + root's password hash with ``!`` and leaves root's keys and shell alone. + release_summary: Adds the user_management role, which completes wave 1. Its + root fallback refuses to run when the primary user's name is not ansible_user. + Existing roles are unchanged. + fragments: + - 1.7.0.yml + - user-management-role.yml + release_date: '2026-11-16' diff --git a/changelogs/fragments/user-management-role.yml b/changelogs/fragments/user-management-role.yml deleted file mode 100644 index 56b250f..0000000 --- a/changelogs/fragments/user-management-role.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -minor_changes: - - user_management - New role. Manages the primary ansible user and additional users (a user with ``state=absent`` is removed), - their ``authorized_keys`` (exclusive by default), sudo and cloud-init. When the configured user cannot connect (a - fresh guest) it falls back to root with the same deploy key, never a password, and hands the connection back to - the configured user once it exists; the fallback refuses to run when the primary user's name is not - ``ansible_user``. The optional ``user_management_lock_root_password`` (default false) replaces - root's password hash with ``!`` and leaves root's keys and shell alone. diff --git a/galaxy.yml b/galaxy.yml index 57f1bce..3e96679 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: mortis name: kamino -version: 1.6.0 +version: 1.7.0 readme: README.md authors: - Defame1297