The role listed every service unit file to answer one question: is each
unit in its disable and mask lists installed? The listing keeps PID 1 busy
for as long as the host has unit files. Ask about the listed units only,
with one `systemctl show --property=LoadState`; a unit with no unit file
reports `not-found` and is skipped as before.
An instance name such as [email protected] is now matched when its template
exists. A template name such as [email protected] makes the lookup fail, where
the listing matched it.
Closes#283
Assisted-by: Claude Code
Ignore .claude/settings.local.json and stop ignoring .claude/hooks/, so
hooks apm deploys are committed for review. Track .claude/settings.json
with disableSkillShellExecution, so no committed skill runs a shell
command when it loads. State the apm primitive policy in apm.yml and the
hook-ownership rule in the setup doc.
Assisted-by: Claude Code:claude-opus-5-5
Keep only the git and mattpocock plugins in apm.yml (bin, core and gitea
dropped, per #104) and regenerate apm.lock.yaml with apm-cli 0.36.1.
Pin apm-cli 0.36.1 in requirements-dev.txt and its hashed lock, the floor
set by #252: before 0.29.0, `apm audit --ci` compares the whole
.claude/settings.json. This is an image input, so the ci image moves to
0.2.33.
Closes#193
Assisted-by: Claude Code:claude-opus-5-5
trim_blocks removed the newline after the endif, so the touch and the
gate call ran as one command and the ps-fails case never reached the
gate. An inline expression keeps the line break.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
A root CLAUDE.md stops Claude Code loading the nested AGENTS.md files,
so it goes, with no adapter. The root AGENTS.md holds the seven
principles, the five code-style rules, the working rules, the verify
commands, the repository structure and one triggered pointer per
contributor doc and nested AGENTS.md.
AGENTS.md replaces CLAUDE.md in galaxy.yml build_ignore (the tarball
check allows no AGENTS.md) and on the Molecule selector's IGNORED list
(no scenario reads it). The setup and issue-tracker docs stop naming
CLAUDE.md.
Closes#185
Assisted-by: Claude Code:claude-opus-5-5
Copied from the maintainer's local role and reworked for the Collection:
the binary swap and rollback of an update go through the internal
_binary_update role, input checks move to tasks/validate.yml, the
removal ends the role, commands take argv, and the molecule tooling
needs an explicit collections requirements file. Adds a molecule
scenario with stub Docker, runner and release files.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Each file holds its directory's rules in full: the rule, a one-sentence
reason and how it is held (control, review or aspirational). The interim
dependency and image section of making-a-change.md moves into
scripts/AGENTS.md and images/AGENTS.md; the contributor docs point to the
new files.
Closes#182
Assisted-by: Claude Code:claude-opus-5-5
The holocron skills repository was transferred from Defame1297/holocron
to Mortis/Holocron and is now public. Point the five apm dependencies at
the new location over HTTPS so they clone anonymously, without SSH keys,
and regenerate apm.lock.yaml, which records the owner/repo verbatim.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
CONTRIBUTING.md becomes a short entry point: the two positions and an
index. The rules move to one file per trigger in docs/contributing/
(setup, making a change, AI assistance, code style, reviewing), each
written as the rule, its reason and how it is held. GLOSSARY.md gains
Driver, Unattended agent and Agent account. CLAUDE.md's bot-branch note
now points to the new rule against pushing to someone else's branch.
Closes#189
Assisted-by: Claude Code:claude-opus-5-5
Bug and feature-request YAML forms with blank issues disabled and a
contact link to SECURITY.md, and a pull request template with What and
why, Verified and Not verified plus the third-party-material statement.
The templates are on the Molecule selector's IGNORED list: no scenario
reads them, so a template-only change runs no scenarios.
Closes#191
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
The gitea role accepts a release only when it carries a valid signature by
gitea_gpg_key_id or one of its subkeys, so an expired, revoked or replaced
Gitea release key makes every install and update fail closed, without
warning, on the day it happens.
scripts/check_gitea_release_key.py reads the pins from the role defaults,
fetches the release key into a throwaway keyring and only the .asc of the
pinned release (never the binary), and fails when the primary key or a
signing subkey expires within 60 days, is revoked or expired, or when a
signature in the .asc is not by a valid signing key of the pinned key. Its
docstring says what to do on a failure.
The Gitea release key workflow runs it weekly, by hand, and on pull requests
that change the role defaults or the check, so a gitea_version bump is
checked against the new release's signature. It runs in the ci image at the
pin of lint.yml; that image has gpgv but not gpg, so the job installs gpg and
gpg-agent from the Ubuntu archive per run instead of making the check an
image input. The tests that make keys skip without gpg, so the Lint job's
unittest run (no gpg) still covers the parsing and rendering tests.
The workflow pins the ci image, so it joins the pin consumers of
check_image_versions.py and check_bot_pr_diff.py: Renovate's pin follow-up
edits every workflow, and the bot-diff gate would otherwise refuse that pull
request. The new workflow and script are on the molecule selector's IGNORED
list, since no scenario reads them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
ADR 0001 names two positions, trusted contributor and outsider. The
glossary still defined a friend whose fork pushes run after approval,
which that decision removed. The outsider entry now says what happens
to their fork or AGit pull request.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
ADR 0001 records the stance: actors and how far each is defended, assets,
the trust boundary, least-privilege targets, the layers against a pull
request that removes its own gate, and what is not done. The accepted
risks go to a new register in SECURITY.md, one entry per risk with why it
is accepted, its trigger and its planned reduction.
Closes#143
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
SelectTest called select() against the repository itself, so its expectations
depended on which real roles use which: with gitea using fail2ban, a change to
fail2ban also selects gitea, and test_two_roles failed with "role without a
molecule scenario". The selection tests now run on a temporary tree that holds
the roles of ALL and no use of one role by another, like UsersTest, which
covers the users.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Moves the gitea role from the environment repository, the second wave 2 role and the
second caller of the internal _binary_update role.
Against the source:
- The update path stages the downloaded, signature-verified binary in a directory next to
the live one and hands the stop, backup, swap, restart, version check and rollback to
mortis.kamino._binary_update (include_role with apply tags, so --tags update reaches
it). A download or signature failure still leaves the running service untouched and
says so; a failure in the swap keeps the rollback message of _binary_update. Its default
version regex is the one the source used.
- The same two small behaviour changes as for traefik come with _binary_update: the backup
is taken whenever a live binary exists, and a failure before the stop no longer
restarts the running service.
- The update no longer removes a PID file between the stop and the start, and
gitea_pid_file is gone: the unit runs `gitea web` without --pid and has no PIDFile=,
so Gitea writes no PID file and systemd reads none.
- The database-migration warning of the source's rollback message (the previous binary
may refuse a migrated schema) moves to the gitea_update docs in the README and the
argument_specs, since _binary_update owns the failure message.
- The legacy name guard (pre-rename variables of the environment) is dropped, as in the
wave 1 roles, and the argument_specs and README no longer mention it. The jwt secret,
mailer and e-mail confirmation asserts stay.
- Environment references are gone from comments, app.ini.j2, the README and the
argument_specs: issue numbers, decision records, host names, inventory paths,
playbooks, the network and proxy layout and other roles' copies of the paths. The
Renovate comment on gitea_version is dropped; the README and argument_specs recommend
pinning the version in inventory. The mint messages no longer name a playbook.
- On a fresh host the token assert and the SSH-key upload ran before the unit was
written and Gitea started, so a first install could never complete. Both now run after
the service check, and the upload first waits (up to 60 s, not under --check) for the
local listener; the listener address is resolved once for both.
- REVERSE_PROXY_LIMIT, hard-coded to 2, is now gitea_reverse_proxy_limit with default 1:
a limit above the real number of proxies lets a client forge the address Gitea logs and
Fail2Ban bans. A setup with two proxies sets it to 2.
- The gitea commands with user-supplied values (migrate, admin user list and create, and
the token mint) take argv instead of a command string; still run through sudo -u.
- gitea_version is asserted at role start to be a plain X.Y.Z, with no leading v.
- meta namespace mortis; the scenario follows the Kamino conventions (header,
test_sequence, no provisioner env) and calls the role by FQCN, also in the child
ansible-playbook of the mint CI-guard cases. Coverage is unchanged.
No other default changed; DISABLE_REGISTRATION stays hard-coded to true.
Changelog fragment, README Roadmap and the CLAUDE.md role list updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Review round 2: the no-alias ban was decided for inputs only; the
fragment check requires a fragment and checks the section only for a
dropped platform; schema[role-arg-spec] holds entry-level misuse; say
why internal roles are listed in .ansible-lint-ignore; scope the
all-three-releases aim to roles that target both kinds of host.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
Review: name the check each pending control will be, not only its issue;
state complexity and the role-name exemption as future controls; name
schema[role-arg-spec] for the validation misuse; merge the duplicated
input rule into the role interface; add entry-point validation and the
negative-test ordering; drop the claim that contributor docs point here.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
State every role rule in force with its reason and how it is held. Rules
whose control has not landed say "review until #N lands".
Keep the file out of the Collection tarball (build_ignore) until the
tarball check refuses AGENTS.md at any depth, and put it on the Molecule
selector's IGNORED list: no scenario reads it.
Closes#181
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG