With noauto in opts and boot left at its default true, ansible.posix.mount warned on every swarm deploy that it ignores boot. boot: false appends noauto itself, so the ephemeral probe mount keeps the same options without the warning.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
sys-stk-full includes the front proxy with run_once and delegate_to, so every set_fact inside is broadcast to all hosts of the play. A worker context queued the clearnet URL (its group_names lack svc-net-tor) over the manager's onion queue, and the deferred probe then ran on every host: workers and the NFS server, which serve nothing and cannot resolve .onion, answered -1 and failed the swarm deploy with 'OpenResty does not serve ... even after a restart' after a needless OpenResty restart. Only the stack host now queues a vhost, and only the first host of svc-prx-openresty probes the queue; an empty queue skips before the group is read.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Stalwart v1.0.1 shows the password field right after the username, without the Allow consent step the spec waited 60 s for, so the recovery admin login timed out in every attempt. The spec now waits for Allow or the password field, clicks Allow only when it appears, and checks the same after sign-in.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
make docs renders the role's services into the cosmos diagram; the 0.16 store migration image declared in meta/services.yml was missing from it.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The update started one kcadm JVM per step: the client and both realms' mail settings as async jobs with their reaps, then each declared client in turn, about 27-31 s in a Nextcloud deploy. realm_settings.py reads the client scopes, clients and both realms once over the admin REST API, creates what is missing and writes a client or realm only when it drifted; secrets reach it on stdin through the new rest_script_stdin parameter. The remaining update steps are renumbered and every reference follows.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
`make autoformat` rewrites roles/web-app-seaweedfs/vars/main.yml and
tests/unit/python/roles/web-app-stalwart/test_store_guard.py on every
checkout of main, so every quality gate on every branch leaves them as
unstaged changes, and the gate lints a tree the commit does not carry.
The YAML change folds one line of the `>-` scalar
SEAWEEDFS_S3_ADMIN_CURL; the parsed value is identical. The Python
change is ruff's line wrapping only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stalwart v1.0 refuses an existing account with primaryKeyViolation; the batched provisioning from 1fbd4758e3 only knew alreadyExists, so every update deploy skipped the password sync and the listed-id fallback hid the refusal (msmtp then failed with 535). An account now counts as existing when the refusal's objectId is the listed account of that name, any other refusal fails the assert, and the update patches credentials/<k>/secret instead of replacing the whole credentials list, which would have dropped every app password, API key and second factor. sys-token-store gains write_many.yml, so all bot tokens land in one store write and one applications re-render; write.yml delegates a one-entry batch to it.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Stalwart, Mailu and LDAP provision every bot and account holder of the whole users catalogue, but the generator pinned only the users of the resolved roles. The bots of undeployed roles (no-reply, blackhole, bounce, newsletter, helpdesk, contact) fell back to strong_password, got a new secret on every deploy, rewrote the token store six times per run and left email.password consumers on a stale value. The generator now also pins every catalogue user holding an account or the bot role unless a role states its password outright, and reads policies independent of declaration order; existing pins are never overwritten.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The apt module loads its whole cache before it finds that every name is installed, about 2.4 s per call; an update deploy spent ~28 s on twelve such no-op calls from roles outside the batch. package_install now asks dpkg-query, pacman --query or rpm --query under LC_ALL=C first and returns unchanged only when every plain name is proven to be in the requested state; anything it cannot read in full runs the module as before.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The openssl.cnf SAN list followed the unsorted SAN order and flipped between runs. The CA trust bundle was rebuilt with cat and changed_when true; build-trust-bundle.sh now compares a staged copy and rewrites the bundle in place, keeping the inode containers bind-mount, only when it differs. The trust wrapper, which runs update-ca-certificates, now runs only when openssl verify against the distribution bundle (default CA path off) does not already trust the Root CA, when no bundle exists, or when the wrapper itself changed.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
generate_ssh_key: true made the user module warn on every deploy after the first one that the existing key is kept without force. A stat of the key decides whether to ask for one.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ruff format reflows the package batch, registry, plan and invocation code and tests and the Stalwart and Nextcloud tests, ansible-lint rewraps long Jinja lines in folded scalars of sys-service, Nextcloud and SeaweedFS, mbake restores the Makefile's final newline, and the Nextcloud OAuth test merges its nested with statements (SIM117).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
path-single-owner fails when more than one role sets owner, group or mode on the same path, which flips it on every deploy. touch-preserves-times fails on file state touch without preserved times, which reports changed on every run. file-mode-quoted fails on a numeric YAML mode such as 600, which Ansible applies as octal 1130. The NFS server mount point now only ensures the directory, the Akaunting first-run marker keeps its times, and the per-host secrets directory carries a nocheck because sys-token-store sets the same root 0700 on STACK_HOST only.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
YAML reads the unquoted mode 600 as decimal, which Ansible applies as octal 1130: sticky bit, no read for the owner, group write and execute on a file holding the SMTP password.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
select-admin-state.sql joined select-ldap-auth-source-exists.sql under the shared 'select' prefix, which the prefix-grouping lint rejects. Both now live in files/sql/select/ and their three readers point there.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
a7685e3b21 derived the worktree lab subnet as 10.244.<slot>.0/24, which
lies inside NETWORK_TOR_VIRTUAL_CIDR (10.240.0.0/12). On a swarm with
svc-net-tor the nft output chain redirects every TCP connection to that
range into Tor's TransPort, so the nodes could not reach each other: in
the slot-114 worktree `curl http://10.244.114.10:5000/v2/` timed out on
the manager itself and svc-prx-openresty died pushing to the stack
registry with Client.Timeout.
The prefix is now 10.160.<slot>, outside every range the platform
reserves in group_vars/all/08_networks.yml.
The lint now reads the reserved ranges from that file instead of a
hardcoded list: NETWORK_TOR_VIRTUAL_CIDR, NETWORK_MESH_POOL,
NETWORK_DOCKER_ADDRESS_POOLS, NETWORK_NESTED_DOCKER_ADDRESS_POOLS and
NETWORK_NESTED_DOCKER_BIP, plus the primary lab subnet and the worktree
INFINITO_SUBNET range. Against the 10.244 prefix it fails every slot on
the Tor range.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
user-backup sets the backups root to backup:backup 0700 and the two cleanup roles reset it to root 0755; svc-bkp-volume-2-local and sys-svc-compose flip /opt/compose between 0755 and 0700; sys-ca-selfsigned and sys-svc-compose-ca flip the CA directory between 0750 and 0755. One task now owns each path's owner and mode, the others only ensure it exists. The databases.csv touch preserves its times, and docker.list ends in a newline so the source sanitizer no longer rewrites it and the apt cache is refreshed only after a real repository change.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The admin step ran its Rails runner on every deploy. It now digests its sources, its inputs and the administrator and settings state OpenProject holds, compares that with the admin-provision.sha256 stamp in the instance directory, and runs only on a mismatch or when services.openproject.admin.force is set.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
db:migrate took about 24 s on every deploy. After a successful run the
deploy stamps the web container's image id as the comment of
public.schema_migrations; a deploy whose image matches the stamp skips the
migration, a new image, a failed run or a recreated database migrates. The
stamp is read unmasked because masking short config values would corrupt a
hex image id, and written through a DO/format() block because sqlfluff cannot
parse COMMENT ON ... IS with a placeholder.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
OpenBao keeps no record of who read which secret without an audit device,
and 2.7 refuses to enable one over the API, so the server config declares a
file device writing to stdout, which cannot block and lands in the container
log with secret values only as salted HMACs. Every deploy fails unless the
device is active, a probe secret read through the AppRole session shows up
in the log with path, operation, display_name and time, and the probe value
does not appear in plaintext. openbao becomes a regular shared provider so
consumers such as the landing page role can declare services.openbao.
Requirement 047; taken over from the feature/openbao-audit worktree.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
On a fresh host the self-signed certificate directory of a redirect source
does not exist yet, and find warned that it skipped a path that is not a
directory. A stat on the target host now hands find only the existing
directories; with none found, sys-front-tls still runs for every source.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
An inventory group web-app-cst-<name> with applications.<id>.custom: true and
a pinned source {url, version, path} is pulled into roles/ before the play,
read raw (Jinja, Ansible tags and credential URLs refused), placed through a
staging directory under an exclusive lock, and owned by a marker that names
its own directory, so a pull or roles-clean never replaces or removes a
directory it did not place and a failed pull leaves roles/ as it was.
Directory inventories, host lists and non-UTF-8 files behave as Ansible
reads them; generated test deploys pass --skip-pull. make roles-pull,
roles-clean and roles list, INFINITO_EXTRA_MOUNTS for local sources, the
web-app-cst category, the reserved prefix lint and a central
repository_files() that also yields the gitignored custom roles let every
lint scan them like in-tree roles. Supersedes the uncommitted 045 External
Roles draft and reuses its fetch, sync and mount design.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
310663ae8c left the Makefile without a trailing newline. lint-makefile
(mbake) refuses that with "Missing final newline" / "Would reformat:
Makefile", so the Lint job fails on main and on every PR that merges it.
A local `make quality-high` hides it: its autoformat step adds the
newline to the working tree before the lint phase runs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
01_bootstrap.sh pins the five swarm nodes into the shared cache network
at 200 + INFINITO_INSTANCE * 5. That band fits a /24 only for instances
0 to 10; from instance 11 on the script aborted with "pushes the node
band past ...254", so no worktree past slot 10 could start a swarm
cluster while the package cache runs. Five nodes per slot cannot fit
255 slots in one /24 with any fixed formula.
Instances whose band fits keep their pinned addresses, so the primary
checkout and CI behave as before. Above that, the nodes join the cache
network without --ip and Docker assigns them from its pool (the upper
half of the subnet), the same way every worktree stack container joins
it. Nothing in the repository reads the nodes' cache-network addresses.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The batch lint cannot see the conditions an include or a role invocation puts
around a task file, so an install there could pass as unconditional and be
dropped onto every host. Every package_install task in a role now has to say
why it cannot ride the deploy-start batch; the 26 existing ones name their
reason (needed before update, repository first, task or include condition,
conditional role, removal, controller delegation).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A constructor task after the update role and the swarm auto-placement installs,
in one package-manager call, every package id of every role the host's groups
may run: meta dependencies, service edges and every role invocation readable
from tasks and handlers, conditions ignored. Ids that must stay with their role
(a conditional install, a repository added first, a need before update) carry
batch: false in meta/packages.yml and keep their task; roles reference shared
root ids with shared: true. 42 per-role install tasks go, and a lint keeps the
split: no batched id in a role task, none in a role run ahead of the batch.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The contributor docs described repository settings that are not in
place. security.md marked "Require status checks", "Require branch to
be up to date" and "Require signed commits" as enforced, but the active
ruleset `Main` has no required_status_checks and no required_signatures
rule, and the separate `Signed` ruleset is disabled. repository.md
listed Dependabot alerts, security and version updates, secret scanning
and push protection as disabled although all of them are on, and its
summary repeated the two rules that are not enforced. branch.md claimed
branch protection enforces the branch naming rules, while only the PR
validation run checks the prefix. Three pages still described a hadolint
SARIF job in call-lint.yml that no longer exists, which hid that nothing
uploads the Hadolint results the ruleset asks for.
The pages now state what the ruleset and the repository settings
enforce today, name the policy pages for rules that are policy only,
and record that no workflow uploads Hadolint results.
Scorecard alerts 472, 504 and 505 depend on repository settings and
process and stay open; 507 and 539 are no longer reported on main.
Refs #853
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scripts/system/worktree/up.sh pinned INFINITO_SWARM_LAB_SUBNET to
192.168.$((244 + slot)).0/24. From slot 12 on that third octet exceeds
255, so every worktree past slot 11 carries an invalid subnet
(192.168.358.0/24 for slot 114), and make swarm-zombie dies at the lab
network creation with `invalid subnet: netip.ParsePrefix(...)`.
The lab prefix is now 10.244.<slot>, valid and distinct for every slot
up to max_slot 255, and outside both the primary lab subnet
192.168.244.0/24 and the 172.30.0.0/16 worktree subnets. The host
daemon allocates nothing from 10.0.0.0/8.
A new lint renders the prefix for every slot and fails on an invalid,
repeated or overlapping subnet; against the old derivation it fails 247
of 255 slots.
Worktrees that were pinned before this fix keep their custom.env; the
ones at slot 12 or above need their INFINITO_SWARM_*_IP and
INFINITO_SWARM_LAB_SUBNET pins rewritten to 10.244.<slot>.x and a
make dotenv before they can run swarm.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Listing, reading, uploading and activating the Sieve forward scripts each run
as one request for every forwarding account, with one method call per account
addressed through its accountId by the recovery admin, at most
STALWART_JMAP_MAX_METHOD_CALLS per request, instead of one request per account
under act-as. The account lookup joins the limits read, a missing account
stops before the limits are raised, and only changed scripts are uploaded.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The refresh handler is inlined instead of included per notify, Result and
ExecMainStatus come from one systemctl show, the script and unit template
sources resolve as strict first_found vars instead of set_fact plus assert,
the base routine is imported statically, one changed debug task notifies the
forced handlers, and sys-timer reloads systemd only when its timer changed.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The bidirectional OAuth coupling converged on every deploy. A digest over the
provisioning sources, its inputs and the coupling state read from both sides
(the client ids and secret Nextcloud holds, the storage and OAuth pair
OpenProject holds) now gates it against a stamp in the instance directory; a
lost or drifted coupling changes the digest and converges again, and
rotate_oauth_client still forces a run.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The carrier key switched from the tokens file's path and hash to the
sys_token_store_users fingerprint once the token store loaded, so the
stage-wide park re-rendered the applications SPOT (about 11 s) even when the
tokens were identical. Both sources now sign as a digest over exactly the
tokens the users hydration reads; the store helpers move to users/store.py
to keep the package under the file length cap.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Specs can run WCAG checks through AxeBuilder without a role-local package.
playwright.axe_version pins it with an npm update source, and the shared
install stamp carries both versions so a host with an older stamp reinstalls.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The SSO ACL whitelists /api/ for the bearer-token API Nextcloud calls, and
the vhost has honoured it since the role-owned ACL include. A forged identity
header on /api/v3/users/me therefore meets OpenProject's own 401 and must
mint no session, which the bridge test now asserts.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A custom role is an ordinary inventory group web-app-cst-<name> marked with
custom: true and a pinned source; core pulls it into roles/ before the play
and scans it like any in-tree role. It supersedes the uncommitted 045
External Roles draft and keeps its credential, atomic-sync and mount rules.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>