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
The step no longer chooses between credentials, so its name says it
checks the push token, and the log records that the probe passed. The
Dockerfile says why the smoke workflow sets `permissions: {}`.
Refs #145
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
Add zizmor (v1.32.0, pinned by SHA) as a pre-commit hook over
.gitea/workflows, offline at its default level; it fails on
pull_request_target and on ${{ }} expanded into run:. The ci image
bakes and smoke-tests the new hook environment, so its version moves
to 0.2.32.
image.yml drops `packages: write` and the job-token probe: Gitea 28
refuses the job token for organisation packages, and the latest build
used the org push token. One probe of that token now fails fast.
Refs #145
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
The file only requests the maintainer's review; branch protection makes
the approval required. Also say why some patterns match nothing yet, and
that everything else is unowned.
Refs #144
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
Add the root CODEOWNERS with one owner, the maintainer, over the gate files:
workflows, scripts, images, lint and REUSE configs, sanity ignores, the
changelog config, galaxy.yml, the contributor and agent docs and the apm
setup. It owns itself, and Gitea reads the root path first.
Gitea drops one backslash before compiling a pattern, so literal dots are
written \\. and reach the engine as \.
The pin files and README.md stay unowned. CODEOWNERS joins galaxy.yml
build_ignore, so the tarball check does not refuse it, and the molecule
selector's IGNORED, since no scenario reads it.
Refs #144
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
The comments and docstrings that cited a document outside this
repository now state their reason inline or nothing. No pointer to a
future ADR is added, and no behaviour changes.
Closes#128
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
This repository is public and stands alone. Comments and prose no longer
describe another repository, its documents, hosts, network or runner
sizing; each one states its own reason or is gone.
- Workflow headers keep the conclusions (disposable runner with no
outside secret, the if: guard is not a boundary, no fork pull
requests, the image build's memory cap) and drop the description.
- Isolation lines are worded as a property of this repository.
- The denied image namespace stays in check_image_versions.py, described
only as a namespace this repository's CI must not use.
- CLAUDE.md and CONTRIBUTING.md gain the standing rule and the search to
run when bringing content in from another repository.
- ci image 0.2.29 -> 0.2.30: .pre-commit-config.yaml and
requirements-dev.txt are image inputs.
The ADR 0004 pointers, the README Roadmap, the skills-source mentions
and released changelog entries stay as they are.
Closes#108
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
Adds the traefik role, the first role of wave 2, and the internal _binary_update role
it uses to swap in a new release with rollback (not part of the public API). The
trivial README and comment fixes of the wave 1 scrub ship here too. Existing roles are
unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Moves the traefik role from the environment repository, the first wave 2 role and the
first caller of the internal _binary_update role.
Against the source:
- The update path stages the downloaded, checksum-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 checksum failure still leaves the running service untouched and
says so; a failure in the swap keeps the rollback message of _binary_update.
- Two small behaviour changes come with _binary_update: the backup is taken whenever a
live binary exists (the source skipped it when the binary reported no version), and a
failure before the stop no longer restarts the running service.
- The legacy name guards (pre-rename variables of the environment) are dropped, as in
the wave 1 roles, and the argument_specs and README no longer mention them.
- Environment references are gone from comments, the README and the argument_specs:
issue numbers, host names, inventory paths, playbooks and the role's own history. The
Renovate comment on traefik_version is dropped, since this repository has no manager
for it; the README and argument_specs recommend pinning the version in inventory.
- meta namespace mortis; the scenario follows the Kamino conventions (header,
test_sequence, no provisioner env) and calls the role by FQCN.
- The scenario's verify gains a real version bump: down to another release (v3.7.18)
and back to the role default with traefik_update, asserting the version, an active
unit and no staging directory, backup or download left behind.
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
Swaps a staged, verified binary into place for a systemd service: refuse when nothing
executable is staged, then reload, stop and wait, back up the live binary, rename the
staged file over it, start and wait for active, and compare the reported version. A
failure after the stop restores this run's backup, starts the service again and fails
with a message that says whether the restore and the restart worked. Under --check the
waits and the version check are skipped, so a preview against a stopped service does
not fall into the rollback. The staged file is removed in every case.
The role is internal (ADR 0004 in the environment repository): called only by roles of
this Collection by FQCN, outside the public API, marked by the underscore, [INTERNAL]
in its meta and argument_specs, and a first task that refuses a call without a parent
role. traefik is its first caller and arrives in the same release.
Two molecule scenarios use stub binaries under a stub unit, without network: default
(successful bump and idempotence, a binary that cannot start, a binary that reports the
wrong version, nothing staged, a direct call, a first install) and check_mode (the bump
under molecule check against a stopped service changes nothing).
Lint: role-name is skipped (its regex rejects the leading underscore, as for
prometheus.prometheus roles/_common), meta has no role_name (schema[meta] uses the same
regex and cannot be skipped), and .ansible-lint-ignore lists the role's own files for
var-naming[no-role-prefix], which strips the underscore from the variable but not from
the role name and so cannot pass. The ignore file is kept out of the Collection build
and is on the scenario picker's IGNORED list. The README Roadmap no longer lists the role.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
The scenario picker assumed the roles were independent and a test enforced it. Wave 2
roles call other Collection roles (traefik includes ufw and the internal _binary_update),
so a change to the called role must also run the callers' scenarios.
A role uses another when a file under its directory names it as mortis.kamino.<role>;
the relation is followed transitively and read from the tree under test. A role the
pull request deletes or renames still counts as used by the roles that name it, so
their scenarios run and show the break.
The independence test becomes a test that fails a bare or templated role name in an
include, import (also in the k=v form), play roles: entry or meta dependency, and task
includes that reach outside the role through '..'. It walks .yml and .yaml files and has
its own cases for each form. This lands before the first such role because the workflow
runs the picker from the base branch's copy.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
A trusted contributor of another repository in the organisation, such as
the agent skills source, can be a friend or an outsider here: write access
there grants nothing in this repository.
Refs: #249
Assisted-by: Claude Code:claude-opus-5-5
The Roadmap now names the wave 2 helper `_binary_update`: an internal
role called only by Collection roles, outside the semver promise, that
ships with the traefik extraction (ADR 0004 amendment, review in the
environment repository's #365).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm