Users could change their Keycloak email without verification, and every deploy stamped any address an inventory user held as verified. An address no Keycloak account holds (for example erpnext-api-bot@) could thus be claimed and reach apps that link SSO logins by email. The user profile now lets only admins edit the email, and email_verified.py stamps only an address that equals the inventory address.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI run 41261531965 Pixelfed#0 failed hlth-runtime on every node: 'PHP 8.5.10 is below the security floor 8.5.12'. ghcr.io/pixelfed/pixelfed:v0.14.4 ships PHP 8.5.10; v0.15.0 and v0.15.1 ship 8.5.11; v0.15.2 (index sha256:f1237913ef0d392a5afef1dab8e3dd01234435ea90314a3a7221a2ea00932132, amd64 sha256:4a1afe7a4139db0e7c7d5dc7b533195d977d81637b0b4d4223dae739571b7198, arm64 sha256:9b921469a2a07c14a7d5e061cff9071ca3750d6ea99a794e947412ae046fbb74) is the first official multi-arch tag with PHP 8.5.12. zknt/pixelfed stays amd64-only.
v0.15.2 moves to the serversideup v5 base, which defaults TRUSTED_PROXY=cloudflare and would take a client-supplied CF-Connecting-IP that our nginx passes through; set TRUSTED_PROXY=local as upstream's .env.docker.example requires. Not yet deploy-verified: three irreversible migrations, the home timeline cache key moved to v2 (feeds refill on first request), and the onion-OIDC login should be watched on the first run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI run 41261531965 Nextcloud#3 (multi network) tested Nextcloud on its onion address. integration_openproject builds redirect_uri from the request host, so it sent http://next.cloud.<onion>.onion/.../oauth-redirect, but ensure_nextcloud_storage.rb registered only the URIs built from the canonical NEXTCLOUD_URL; Doorkeeper answered every /oauth/authorize with 400 invalid_redirect_uri (proxy log: 6x 400, OpenProject web log status=400 user=6, trace page 'The requested redirect uri ... doesn't match client redirect URI').
NEXTCLOUD_NETWORK_BASE_URLS comes from lookup('network_urls', NEXTCLOUD_URL), like the Zammad and GitLab base URLs, and reaches the provisioning input as nextcloud_base_urls; the script registers every base URL with the apps/ and index.php/apps/ paths, canonical first, and the base URLs feed the converge digest so an install switched to multi network re-provisions. Clearnet-only and tor-only rows register the same string as before. Zammad, GitLab and Mattermost integrations still register only the canonical URI.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
galaxyserver deploy -6 ran the migration as one plain command for 28:30 and then lost its SSH channel (ServerAlive 15x3 ends it after 45 s of silence): the deploy ended UNREACHABLE while the script kept running on the host unobserved, possibly through final, which stops Stalwart and swaps the databases.
The task now runs migrate.sh as an async job polled every STALWART_MIGRATE_ASYNC_POLL (60 s); each poll is a short new SSH call and a failed poll is retried, so a dropped connection no longer ends the deploy. The budget STALWART_MIGRATE_ASYNC_TIME is lookup('timeout', 21600) (6 h, scaled by TIMEOUT_FACTOR); past it Ansible kills the job and the task fails loudly. Every phase but status takes a non-blocking flock on migrate-v016/migrate.lock and stops while another run holds it or a stalwart-migrate container of an earlier run still runs, so two migrations never touch the same store and dump. A kill inside final leaves Stalwart stopped and the next run refused while the orphan container lives.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gate pass 23's autoformat rewrapped the condition in test_admin_step_creates_missing_admin.py:_role_scripts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gate pass 23 failed tests/lint/filesystem/shell/test_no_or_true.py on init-gate.sh: occ_status swallowed every exit code with || true. It now returns 0 with the status on success and maps 1 (occ error), 124 (timeout) and 255 (php fatal while the tree is copied or upgraded) to an empty status, the not-ready state both slots already handle. Any other code, such as 127 from a missing su, timeout or php, ends the gate with that code and a message instead of waiting forever. Both slots now call occ_status directly so that exit reaches the gate.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gate pass 22 on feature/store-i18n failed test-lint on the ensure commit:
- test_no_repeated_when_runs: Joomla's add task and the group-less fail task both carried when: joomla_admin_plan == 'create'; they now share one block.
- test_oidc_claim_names_are_spot: MediaWiki's persona rationale spelled the preferred_username claim, which group_vars/all/11_oidc.yml declares once; it now says the Keycloak username claim.
- test_no_raw_project_walk: test_admin_step_creates_missing_admin.py walked roles with rglob; it now filters the cached iter_project_files() to the role's files/ and tasks/, and finds the same files.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cc70de8f28 wrote its reasoning into docblocks and headers. The facts move here:
- Matomo, SuiteCRM and WordPress write through php://stdout and php://stderr because php-src registers STDIN/STDOUT/STDERR for stdin-fed code only from PHP 8.3 on (PHP-8.2 sapi/cli/php_cli.c:956-959), and SuiteCRM runs php:8.2-apache. main() runs only when debug_backtrace() finds no including frame, since a stdin-fed script has no path to compare.
- SuiteCRM 8 has no console command to add a user, so a missing administrator is written as the rows User::save() and EmailAddress::addAddress() produce: one users row, the email_addresses row of its address (reused when another record already carries it) and the email_addr_bean_rel link. A parse error or a fatal outside main()'s try block still exits 255 with php's own message.
- MediaWiki creates a missing account only while local login is on; under SSO-only, createAndPromote fails on the password step, so SSO's first login creates it, named after Keycloak's username claim.
- listmonk grants every permission to role id 1 by that id alone (internal/auth/models.go SuperAdminRoleID), whatever the role is named.
- Joomla's CLI options use --password=value because Symfony binds a separate value only when it does not start with '-'.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In swarm CI run 41206003651 (Nextcloud#11) the first occ maintenance:install failed on a config.php lock after the upstream entrypoint had already copied version.php. Upstream skips the install whenever version.php exists and never retries, so the replacement task served an uninstalled Nextcloud that occ status still reported as healthy, and slots 2 and 3 waited for installed: true until converge gave up after about 25 minutes.
Slot 1, and compose where TASK_SLOT is unset, now exits 1 with the cause and the recovery when version.php and occ exist, the init lock is free and occ status prints installed: false. The task crash-loops and the stack readiness check ends the deploy within minutes with that message in the service log. occ status runs with a 120 s timeout in both branches. Why the lock failed on NFS is not addressed here.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Matomo, SuiteCRM, WordPress, MediaWiki, Joomla and Listmonk only realigned an existing admin login, so existing installs without platformadmin stopped the deploy. Each admin step now creates the account next to the old admin when it is missing and realigns it when it is an admin.
A platformadmin that exists without admin rights fails with its cause and remedy. MediaWiki alone promotes it, and only while SSO is the sole login and its confirmed email matches: there the account can only come from Keycloak's preferred_username. SuiteCRM keeps native login under SAML and lets users rename themselves, Listmonk's OIDC never creates that login, and Joomla's Keycloak plugin rewrites groups on every sign-in, so none of them promote.
Matomo, SuiteCRM and WordPress write through php://stdout and php://stderr: PHP 8.2 defines no STDOUT/STDERR for code fed on stdin. MediaWiki's account probe lives in files/sql/admin_state.sql and receives name and email as hex literals. A lint checks that each role's admin step creates a missing admin.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
application_id is not bound in the role-meta render context, so
test_no_application_id_in_meta and test_no_role_vars_in_meta reject it in
meta/tests.yml (gate 20). The docs pass still runs after every other
invokable role; the README example now shows the same form.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Next to the SYS_SERVICE_* unit-name constants in 06_daemons.yml the old
name read like a systemd unit; the condition routes service-loader calls.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SYS_SERVICE_LOADER_ROUTE_PENDING only renders inside a task whose vars
define list_or_shoot_roles; read elsewhere during preload it fails hard,
and a default([]) would silently skip the route instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sys-svc-compose (two routes) and sys-svc-webserver-core (one) entered
list_or_shoot on every app and vhost; during the constructor's preload that
only appends role names already queued, and the flush runs the queue
through unique anyway. In the production logs 27 of 31 calls on galaxyserver
and 31 of 35 on echoserver were such duplicates (~18 s and ~23 s per run).
SYS_SERVICE_LOADER_ROUTE_PENDING holds the condition once: outside the
preload every route still shoots as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A user the host's roles need but the inventory gives no password falls back
to a generated password that renders anew on every read, so password
converges set values nobody knows (echoserver and galaxyserver stopped at
web-app-matomo for that after passing validation). The validator now asks
provision's required_user_policies for each host's groups, merges the
host's users with Ansible's replace precedence and fails before the deploy,
naming the users and the provision command. Presence only: vaulted values
count, nothing is decrypted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A role's playwright.run_after names the roles its pass runs after; the new
playwright_order lookup reads it through role_tests (which now renders
Jinja with the queried role as application_id) and orders the round with
a stable topological sort, so only constrained roles move. web-app-docs
runs after every other invokable role: in CI run 41206003651 (Discourse#2)
its pass waited 3126 s for the docs server's Sphinx build while stalwart,
bigbluebutton, jitsi and prometheus (~400 s) queued behind it. Cycles,
self references, unknown roles and non-list values fail loudly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The yaml test waits out the docs server's Sphinx build of the deployed
tree; in CI run 41206003651 (Discourse#2) that poll ran 105 probes 30 s
apart, so the pass overshot the finished build by up to 30 s (15 s on
average). The budget, the transport-error report and the assertion stay.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cert_link_domains publishes live/<domain> as a symlink, and the per-directory
stat without follow reported it as no directory, so every redirect source
went through sys-front-tls on every deploy (galaxyserver 40 includes, ~98 s;
echoserver 48, ~132 s). Stat the base directory with follow and let find
recurse two levels; sources whose cert or key is really missing still get
the tls layer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Discourse v2026.10.0 caps the setting at 150000 (config/site_settings.yml),
so a larger value would fail the settings task on every deploy.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
services.discourse.site_settings feeds SiteSetting on every deploy,
together with the LDAP plugin settings. max_post_length defaults to
100000 instead of Discourse's 32000 and stays overridable per host.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every API response re-encrypted and resent the cookie session it read. Over Tor the landing page's trends and custom_emojis calls finish after the one-click SSO POST, overwrite omniauth.state and fail the OIDC callback with csrf_detected (CI Fediwall#0 onion pass). An initializer marks every Api::BaseController request session_options[:skip], mounted on the mastodon service in every mode.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gate pass 15 rejected rbac_reconcile.py and rbac_realm_groups.py as a prefix group. They are now rbac/reconcile.py and rbac/realm_groups.py with mirrored tests; the shared rest_script runner copies a script from its subpath and stages and runs it under its file name next to keycloak_admin.py.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
min_storage covered only the base (image, deployed and latest sites with one translation each, build scratch). The tag cap keeps up to three release tags of about 3.3 GB each on disk, so the declared need is now 25GB.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gate pass 14 rejected the parent-relative imports (ruff TID252) the moved weblate_network tests used for _stand_ins; the helper now sits in the same test package and test_settings_override imports it downward.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The realm RBAC step ran one kcadm round trip per group path and member through ensure_group_path_members.sh, about 609 s per XWiki job. A Python helper now reads the realm's groups and memberships once, computes the missing paths and members, and applies only the difference in one run; each failing item still fails loud and names itself.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Magento 2.4.8 wipes generated/ on every module:enable or module:disable, decided by the command name alone, and the role ran the toggle on every deploy. On CI Magento#0's update pass a Prometheus probe rendered a page during that wipe and wrote new generated classes into it, so rmdir failed and the deploy died. The role now reads module:status --enabled first and only flips the modules in the wrong state; on a fresh install the toggle runs before nginx starts routing to PHP, and a real flip also reloads nginx.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The access-log test from main (#1322) rendered nginx.conf.j2 with DEPLOYMENT_MODE, while store-i18n's template reads IS_SWARM_MODE, so every case failed with an undefined variable after the main merge.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gate passes 12 and 13 rejected the prefix-grouped weblate_network_*.py modules, the stand_ins.py test helper and unmirrored test paths. The modules are now weblate_network/strategy.py and middleware.py, mounted as a namespace package under /app/infinito and referenced by their dotted package names; the helper is _stand_ins.py and the module tests mirror the package.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Publishing tag v1.2.3 globbed prepared/v1.* and deleted every other v1.x tag's prepared tree, including one a parallel slot could be cloning from. With the exact glob each opened tag would keep its ~2.3 GB site and ~1 GB prepared tree forever, which 66 tags and a crawler following the version switcher turn into a full disk. Requests now stamp opened/<tag>, and after every build the builder moves out, under the slot lock, every tag beyond the three opened last that is neither queued nor building; latest and deployed always stay, and a dropped tag rebuilds on its next visit. The builder also clears scratch a killed predecessor left.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The onion Nextcloud page frames the clearnet Collabora editor, but the proxy's frame-ancestors only allowed 'self' and *.DOMAIN_PRIMARY, which matches neither the onion host nor its http scheme, so Chrome blocked the iframe and the editor websocket never opened. Collabora now adds every Nextcloud network origin, each with its own scheme, to its frame-ancestors through webserver_csp_whitelist_extra_by_app before the proxy stack renders.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>