16 conflicts, resolved per hunk:
- sys-stk-front-proxy: tasks/main.yml keeps the network-sibling loop;
the single stack_host_contents write of http.conf plus vhost and the
front_proxy_vhost_changed gate move into tasks/vhost.yml, with the
http.conf decided per sibling domain so an onion vhost gets no HTTPS
redirect.
- sys-front-tls: 01_http.yml is gone as the updater intends; the
cert-renew include in main.yml gates on the vhost domain's TLS.
- sys-svc-compose: the updater's resolve_host_cid without the remote
echo and the prepared pending flag in up.yml, written with
IS_SWARM_MODE and the repeated-when block grouping.
- web-app-nextcloud: the updater's post-upgrade gate and pending-only
plugin configuration, which already carry the pinned-plugin handling.
- web-app-xwiki: one XWIKI_CORE_VERSION for the readiness probe and
style.css.j2; OIDC/LDAP follow xwiki_extensions_ready at bootstrap,
the S3 blob store stays off there as TestBlobstoreRenderOrder demands.
- roles_with_service: onion swap and dashboard card key combined, the
canonical domain is the canonical URL's host in both branches.
- sys-ctl-hlth-csp: --clearnet-timeout and --concurrency together;
run_checker forwards its options to build_docker_cmd, keeping the
script under the 500-line limit.
- web-app-matrix: Element branding and web_client_location side by side.
- web-app-stalwart/README.md: the generated Cosmos section is dropped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
csp-checker 3.2.0 checks every URL in its own browser context and takes --concurrency for a worker pool. The role pins 3.2.0, sets HEALTH_CSP_CONCURRENCY to 4, and the systemd unit hands it through script.py to the container command ahead of the -- URL separator, for the clearnet and the onion batch alike. TimeoutStartSec keeps its sequential sizing.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
test_include_uniform_apply_keyword flagged legacy_checkout.yml after 11c2d8dcd3 moved its guard onto the include: both tasks repeated become: true. The include in 03_launcher.yml now applies become to the file and keeps the guard; the order test reads include_tasks in its mapping form too.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
make docs renders the Cosmos intro from the role title, which 5b8e33db84 changed to Stalwart; the committed README still said Stalwart Mail Server.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
tests/integration/roles flagged two of today's bundles: the Discourse legacy-checkout guard lived in a block inside the included file, so the file loaded even when the guard was false; it now sits on the include_tasks in 03_launcher.yml and the file holds the two tasks with become. XWiki's utils/extensions_ready.yml included _check_extension_via_groovy.yml by bare name from tasks/utils/; it now uses {{ role_path }}/tasks/..., which resolves under include_tasks and include_role tasks_from alike (a bare ../ breaks under tasks_from, as the XWiki replay harness showed).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Every TLS vhost ran its own certificate lookup, an include of sys-front-tls/tasks/01_http.yml and a separate http.conf write before the vhost template. The letsencrypt role now reads the certificate inventory once per play (utils/certificates.yml), and sys-stk-front-proxy writes the http->https handler and the vhost in one stack_host_contents call, http.conf first so a path collision keeps the old outcome. 01_http.yml is gone; its cert-renew dependency include moved into sys-front-tls/tasks/main.yml under the same conditions, and web-opt-rdr-domains already writes its own http.conf. front_proxy_vhost_changed keeps the reload verification and fallback restart tied to the vhost file, as nginx_conf.changed was before.
Replay harness over 8 apps (proxy fresh/rerun/http-only/vhost-only/404, collision, self-signed, TLS off, swarm worker and manager, check mode, redirect domains): rendered files byte-identical, same handler and probe paths; the negative control diverges. About 160-195 s per full production run (55 TLS vhosts).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Every database consumer called baudolo-seed through the seed task, 37 times and always 'changed' in a full production run (54.4 s), although databases.csv rarely changes. The first seed of a play now reads the file once (05_read-seeded-databases.yml) into svc_bkp_volume_2_local_seeded; baudolo_seed_current compares the consumer's row with it and baudolo_seed_apply advances the cached state the way baudolo-seed writes the file, so the command runs only for a missing or differing row. A file baudolo did not write byte for byte (hand-edited, CRLF, short rows) falls back to one call per consumer; 02_reset forgets the cache with the file.
Replay harness old vs new: databases.csv byte-identical in fresh, empty, converged, drift and reset-mid-play scenarios; converged seeds 37 -> 0, drift 38 -> 2; the negative control without reset invalidation diverges. About 44 s per unchanged redeploy.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Each plugin ran its own occ config:app:set per configuration value right after its install or enable, and a redeploy rewrote every value. Install and enable now queue the plugin; the configure stage runs once for the queue: it loads every queued addon spec, reads occ config:list once, keeps only the values Nextcloud does not hold exactly (nextcloud_plugin_config_pending; typed, masked and structured values are always kept), and runs the hooks in queue order afterwards.
Combined with store-i18n's 7f72e53a58: the pending occ config:app:set calls go on the stdin of one container exec -i ... sh -s, so no value (Talk, OnlyOffice, whiteboard, BBB secrets) reaches a host argv; a failing call names its appid/configkey.
Replay harness old vs new: identical final state, updated keys and hook order in first-deploy, converged, drift and failure scenarios (failure stops at the same key); converged config:app:set calls 19 -> 3. Merge note: resolve 03_configure.yml with this side against 7f72e53a58.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Every app's compose pass ran three remote tasks before compose up: create the directories, compose ps for running containers, and stat the pending marker (53 apps x ~2.7 s in a production run). compose_instance_prepare does all three in one call from 02_stack_host_prep.yml, sharing the directory creation with directory_batch through utils/directory_batch.py; compose ps runs only in compose mode. up.yml evaluates the registered result, named compose_instance_before_files because it predates 04_files: the running check is skipped whenever the compose, env or override file changed in this run (those changes notify compose-up themselves).
Replay harness old vs new: rendered files and the compose-up, marker and swarm handlers identical in every scenario; the only difference is the skipped running check when only the override changed, where compose-up still runs. About 85 s per full production run.
Merge note: store-i18n's a4c7fda974 hoists the removed marker stat into a block; resolve up.yml with this side.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
resolve_host_cid ran a shell task on the stack host for every call even in compose mode, where it only echoed resolve_compose_cid back. The container-id shell task now runs in swarm only, and _LOCAL_CID takes resolve_compose_cid directly in compose. The util is included from about 60 roles; a full production run spent ~41 s on the 63 compose echoes.
Replay harness old vs new: compose and swarm output facts identical (incl. the resolve-container-id subshell form), compose remote shells 20 -> 0, swarm commands unchanged; the mutant control reports DIFFERENT.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
DISCOURSE_REPOSITORY_DIR appended the repository URL to the services directory, so the launcher lived under services/https:/github.com/discourse/discourse_docker.git/. It now lives under services/discourse_docker. Before the clone, launcher/legacy_checkout.yml removes the URL-named tree (computed with relpath against the services directory) and prunes its emptied parents; a guard skips the cleanup when that path would escape the services directory or equal the new checkout. The cleanup must precede the clone: git otherwise resolves the old relative path as a URL and aborts with 'protocol ... is not supported'. Discourse data stays in the launcher's named volume and /var/discourse/shared; the first deploy rebuilds once because the bootstrap digest lived in the old containers/ directory.
relpath joins the builtin filters test_defined knows.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
After an image update the YOURLS code was ahead of its schema (db_version 506 vs 507) and every short URL redirected to admin/upgrade.php until someone clicked Upgrade. install.yml now includes upgrade.yml, which runs files/php/upgrade_database.php as www-data inside the container: it boots YOURLS with YOURLS_UPGRADING, runs yourls_upgrade(1/3) when yourls_upgrade_is_needed(), prints 'upgraded <old> -> <new>' or 'current <version>', and turns YOURLS' die() exits into exit 1. A probe short URL must then answer 301/302 without pointing at admin/upgrade.php.
E2E against YOURLS 1.10.6 code with MariaDB: 506 -> 507 upgraded, second run 'current 507', duplicate-key failure exits 1 with the message. PHPUnit: 8 tests, 23 assertions.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The dashboard card of every app opened its primary domain, so Matrix led to the Synapse status page and Stalwart to its admin UI. A role can now declare services.dashboard.card: <key of meta/domains.yml canonical>; docker_cards builds the card URL with lookup('canonical_url', app, key), the Apps menu reuses it, and roles_with_service('dashboard') hands the same domain to the tile e2e spec. Matrix sets card: element, Stalwart card: webmail. Without card nothing changes, and the prometheus/matomo target lists are untouched. A lint requires the key to resolve in the role's own domains.canonical.
The Matrix ansible flavor also sets Synapse's web_client_location to Element through matrix_synapse_configuration_extension_yaml, as the compose flavor already does, so matrix.<domain>/ redirects there. Merge note: feature/iam-profile-rbac defines the same extension variable inside the OIDC block; the next merge must combine both into one block (agreed with that session).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A host that defines CAPTCHA with one provider replaces the group_vars mapping (no hash_behaviour merge), so galaxyserver, which configures only hCaptcha, left CAPTCHA.RECAPTCHA undefined. RECAPTCHA_ENABLED then failed to render, the applications render fallback returned the expression as text, and Keycloak's '| bool' coerced it to False with a deprecation warning that ansible-core 2.23 turns into an error. Both flags now check that their provider mapping is defined first; the effective values stay the same for every existing inventory.
test_captcha_enabled renders every role's services.recaptcha/hcaptcha.enabled through the real templar for defaults, both providers, only the other provider and only this provider, and fails on the raw text (negative control with the old expression: 4 subtests).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The TCP-auth wait passed PGPASSWORD=<value> on the container exec command line, where it shows in the host's process list. It now names the variable only (-e PGPASSWORD) and sets the value through the task environment, the form store-i18n's merge c887b8e04e already uses for this file and its test_exec_env_passes_no_value lint enforces.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Eight changed_when checks matched strings Nextcloud v34 never prints, so the tasks reported changed on every redeploy: occ upgrade prints 'No upgrade required.' (Upgrade.php:214), app:update prints '... up-to-date or no updates could be found' (AppUpdate.php:124,126), and db:add-missing-columns/-indices/-primary-keys print '<table> table updated successfully.' only on real work (AddMissingColumns.php:68, AddMissingIndices.php:82,117, AddMissingPrimaryKeys.php:74). maintenance:repair has no no-op output and always clears the frontend caches (ClearFrontendCaches.php:31-36), so it now reports changed; it only runs when the post-upgrade pass is due.
Scenario harness 24/24; the negative controls with the old strings report changed on no-op output.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Every redeploy ran occ maintenance:repair --include-expensive (43.5 s, maintenance mode on) and listed the appstore updates through Tor (49.7 s) although the version had not changed. 03_upgrade.yml now reads occ status and files/mimetype_version after occ upgrade; nextcloud_needs_post_upgrade decides whether the pass is due (version changed in this deploy, or the expensive repair has not run for the running version). A due deploy includes 03_upgrade/01_post_upgrade.yml with today's app update and repair; an unchanged one includes 03_upgrade/02_cached_updates.yml, which updates only the unpinned enabled apps whose release stored by the updatenotification background job is newer (nextcloud_cached_app_updates, PHP version_compare semantics). NEXTCLOUD_PLUGINS_PINNED is the single source of the pinned check.
Verified against echoserver's live occ output (status, marker, updatenotification cache, app:list, with debug log lines): unchanged redeploy is not due and finds no update. Scenario harness 24/24 incl. negative controls on the old file. About 86 s per unchanged redeploy.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The logo rule lived in the in-house theme, which is rendered once with
the canonical domain and served unchanged on every sibling, so the onion
page pointed at https://cdn.<clearnet>/.../logo.svg (PhpMyAdmin#0). The
rule moves to files/logo.css with content: var(--design-url-logo-svg),
which sys-front-inj-design composes into the role stylesheet it links
per vhost from that vhost's network CDN, as 19 other roles already do.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
svc-db-postgres/tasks/01_init.yml: the updater moved the TCP-auth wait
into 01_init/ready.yml, run once per container; that structure wins,
and ready.yml keeps store-i18n's PGPASSWORD passed by name through
environment instead of on the exec argv, which
test_exec_env_passes_no_value requires.
web-app-gitea/tasks/01_manager_ops.yml: store-i18n's administrator
password realignment stays; the OIDC/LDAP-only readiness wait goes, as
the updater's /api/v1/version wait at the top already covers it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every redeploy rendered the bootstrap config with OIDC/LDAP off, restarted XWiki, waited ~80 s for REST, checked the add-ons and then switched auth back on with a second restart and wait. A probe now asks the running wiki as superadmin first: when its core version equals the pinned core and every add-on reports INSTALLED at its pin, the bootstrap already renders the final auth config, so the final phase finds nothing to change. Any other answer (fresh install, missing add-on, pin or core bump, unreachable, 401, distribution wizard, 503, any status) falls back to today's two-restart flow; the written xwiki.properties is identical in every case.
Verified on echoserver under the live OIDC config: superadmin basic auth answers 200 on /rest/wikis/xwiki/spaces and on bin/view (no Keycloak redirect, trylocal), and /rest/ reports <version>18.8.0</version>. Replay harness: redeploy on pin 2 -> 0 restarts, with another config change 2 -> 1, all fallback scenarios unchanged. About 190 s per unchanged redeploy.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
fd7f001046 set the SSO plugin's SchemeOverride to the canonical
domain's web protocol. On a clearnet deployment with an onion sibling
that is https, so the plugin minted https://media.<onion>/sso/OID/
redirect/Keycloak, while redirect_uris registers onion hosts as http,
and Keycloak refused every login with invalid_redirect_uri (Jellyfin#1).
The override existed because Jellyfin 10.11 ignores X-Forwarded-* while
KnownProxies is empty, so Request.Scheme read http on clearnet too. The
auth step now sets KnownProxies to NETWORK_TRUSTED_PROXY_CIDRS before
the final restart, and the plugin config drops SchemeOverride, so the
callback follows X-Forwarded-Proto: https on clearnet, http on onion.
Jellyfin now also sees the real client address instead of the gateway.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The per-app mapper payloads covered every rbac app of the current run,
and the run follows APPLICATIONS_WHITELIST across all hosts, while the
LDAP role groups and the purge keep-set follow this host's group_names.
On a multi-host swarm, svc-bkp-nfs-2-local (placed on the NFS host) got
a mapper without any LDAP group; its sync dropped the Keycloak groups,
hit ModelDuplicateException and answered HTTP 400 (Searxng#0).
The payloads now iterate the run apps this host also deploys, in run
order. The realm path without LDAP keeps the full run set.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every database consumer resolved the postgres container and waited for TCP auth again, although the container was created once in 00_core with a handler flush and is not restarted later in the play. 01_init now includes the resolve-and-wait block (moved unchanged to 01_init/ready.yml) only when the service|container|port target differs from the last verified one; a container-manager-restart handler forgets the target so a Docker daemon restart forces the wait again. About 67 s per full production run.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
With SEMAPHORE_WEB_ROOT set, Semaphore rewrites index.html's
<base href="/"> to the full clearnet web root, so the onion page loaded
its JS and CSS from https://semaphore.<domain>/ and the onion CSP
blocked them (hlth-csp failed, semaphore#1). Unsetting the web root is
not an option: it also decides the session cookie's Secure flag.
Every served vhost other than the web root's host now gets a sub_filter
that turns that tag back into <base href="/">, passed to sys-stk-full as
webserver_location_extra_configuration. SEMAPHORE_WEB_ROOT is defined
once and read by the env file, the OIDC redirect_url and the rewrite.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A gated app served on clearnet and tor runs one oauth2-proxy per
network, and the onion instance publishes on
services.<entity>.ports.local.sso_onion. The console declared only
sso, so rendering its compose file failed with
"'sso_onion' not found in dict" (seaweedfs#0). It now takes 16549 from
the sso_onion band 16520-16559.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sys-stk-front-proxy's vars/main.yml now combines the deferred-probe answers with the builtin union filter. test_all_used_filters_have_definitions knew intersect and difference but not union, so it reported union as undefined. Same line as store-i18n's 2da9b9c64f.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
/healthz/ready proxies straight to the app backend, past the vhost's
'location = / { return 302 /admin/; }'. Pi-hole's FTL redirects / only
when the Host header equals webserver.domain and answers 404 for every
other host, so the blackbox probe of the pihole vhosts failed with
probe_success 0. services.prometheus.ready_path now points the probe at
admin/, which FTL serves for any host, as web-svc-xmpp already does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The vhost.yml task that freezes and queues each sibling's probe target
was 92 characters long, over the 80-character name limit, and the
updater's union filter in vars/main.yml was missing from
BUILTIN_FILTERS, so test_all_used_filters_have_definitions reported it
as undefined.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gitea web runs the pending migrations itself before it opens its HTTP listener. The role waited only for the TCP port, which accepts connections before Gitea listens, and then ran its own 'gitea migrate' in parallel: on galaxyserver both applied migration 327 and the role's run died on 'Duplicate column name is_disabled'. The role now waits until /api/v1/version answers 200, which Gitea only serves after its own migration, and drops the port wait, the app.ini wait and the explicit migrate. The former OIDC/LDAP-only readiness wait became redundant and is removed.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
make i18n-prune cleared 666 core and 14086 docs msgstr values across
the 105 core.po and docs.po catalogues that test_i18n_catalogs flags
as damaged (spans not preserved) or collapsed (merged into one line).
No msgid or msgctxt changes; every catalogue still compiles with msgfmt.
The emptied entries fall back to English until the next translation run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflict in roles/sys-stk-front-proxy/tasks/main.yml: store-i18n moved
the per-vhost tasks into the network-sibling loop of tasks/vhost.yml, so
main.yml keeps HEAD and the deferred probe lands in vhost.yml instead:
every sibling domain is queued in front_proxy_deferred_probes, and the
inline probe of an unchanged vhost is gone in favour of the batched one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The volume probes treated a failed `container volume inspect` as "fresh install" only when stderr said "no such volume", which is what the compose daemon prints ("get postgres_data: no such volume"). The Docker daemon on the swarm nodes prints "volume postgres_data not found", so every swarm deploy of a role with a postgres dependency failed at svc-db-postgres/tasks/upgrade/detect.yml before deploying anything: about 50 swarm jobs of fork run 40042690056 (e.g. job 120723739212, log line 11063). nextcloud's major-upgrade probe had the same check.
Both probes now accept either wording; any other inspect error still fails the task. Checked with an ad-hoc evaluation of the expression for both wordings and for "permission denied".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit b87bee3329)
Each vhost used to run its own sequential reachability probe. The role now queues the vhost and deferred_probe.yml checks the whole queue with one uri_probe_batch call after the shared-service preload and after the server roles. A vhost answering like a stale config restarts OpenResty once; one still unserved afterwards fails the deploy by name. uri_probe_batch takes follow_redirects explicitly so the probe sees the redirect status itself.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
galaxyserver full-3 stopped in 02_credentials.yml with
'Validation failed: Primary email has already been taken'. Its legacy
Discourse has no 'administrator' account, and administrator@veen.world is a
secondary address of kevinveenbirkenbach (id 1, primary kevin@veen.world).
ensure_admin_user.rb found no user by the username, built a new one with
that address, and Discourse refused it because the address is unique across
all user_emails rows, secondary ones included.
Before it assigns the address, the runner now looks the address up among the
other accounts' addresses. A secondary hit is removed there, so the account
keeps its primary and the administrator gets the address. A primary hit
stops the runner and names both accounts, since that is a second person and
not a leftover alias.
Evidence: a Ruby harness with User and UserEmail stubs that enforce the
uniqueness the way Discourse does. The new runner passes all four cases (the
galaxyserver data, a foreign primary, an existing administrator with a free
address, one already holding it). The previous runner fails the galaxyserver
case with the exact message from the deploy.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
feature/updater's server.test.js starts the login broker without
SITE_TITLE, which the broker on this branch reads through requireEnv. After
the merge (9df6619903) the broker exited with 1, startBroker rejected, the
after hook called stopBroker(undefined) and node waited forever, so the
whole JavaScript unit suite hung.
feature/iam-profile-rbac carries a combined version of this file
(c3221a3e1c) that also sets SITE_TITLE; it wins this hunk when that branch
merges back, together with the broker change its extra test needs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts resolved:
- sys-front-inj-matomo: inject.yml keeps the store-i18n split; the cached
failed site list load (5b7284c4a4) is ported into resolve_site.yml next
to its token guard, and test_site_cache.py reads that file.
- web-app-bluesky: platform_administrator from store-i18n with the
prefix-free handle and its i8- reserved variant from feature/updater;
the broker CONFIG keeps siteTitle, storePath and chooseHandlePath.
- web-app-stalwart README: the managed Quick Setup section is dropped,
the docs role renders it.
- README.md: the role overview is regenerated from the merged tree.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3.1.3 stops the CSP check from hanging and from failing at random:
- the success path closes a page with a 30 s bound, so a page.close() that
never returns (seen on echoserver after mastodon.infinito.nexus, the unit
idle for over 30 minutes until its 1 h TimeoutStartSec) no longer blocks
the deploy's terminator
- the browser close is bounded at 5 s
- a redirect hop's status no longer counts as the document status, so a
redirect into a 204 is not reported as unreachable at random
3.1.1 was tagged but never published; 3.1.2 and 3.1.3 passed their release
runs, and the 3.1.3 manifest is pullable.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Every wall reads its posts from Mastodon and Friendica. Both already hand
their own onion sibling over to clearnet (Mastodon builds its URLs from
one LOCAL_DOMAIN, Friendica from one system.url), so an onion wall could
only fill itself by leaving the onion and stayed empty instead (CI
Fediwall#2, #928). Serving it on both networks would take onion JSON
rewrites in two federation servers plus a Fediwall patch.
The onion vhost now answers with the shared handover redirect to the
canonical clearnet origin; the clearnet vhost is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both entries describe a `-e NAME=<value>` exposure that the code no longer
has: espocrm forwards CONFIG_VALUE through environment: since ffed838bc7,
pretix forwards MCP_TOKEN the same way since 177255329f (#1213).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The front's conf.json carried the canonical (clearnet) origin in "api" and
"eventsUrl". The OIDC plugin derives its login target from "api", so a
login on the onion sibling jumped to the clearnet /oidc/authenticate and
mozilla-django-oidc built a clearnet redirect_uri (CI run 40131272595,
Taiga#0); every API call of the onion front went to clearnet as well.
- conf.json uses "/api/v1/" and "/events"; taiga-front resolves both
against window.location, and the plugin's login target becomes
oidc/authenticate/, which /login and /register resolve on the current
host.
- the gateway maps the plugin's post-login Location, built from the
static SITES front, to the requesting scheme and host; on clearnet that
is the identity.
Media URLs still come from the static TAIGA_URL.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dashboard card takes its title and its 'Explore ...' link text from the
role README's first heading, which read 'Stalwart Mail Server' while every
other app card carries the bare product name. The heading is now 'Stalwart';
make readme-generate rewrote the two Quick Setup sentences that repeat the
title and make readme-index the root README index, whose diff holds only the
Stalwart lines. make test-lint passes, including the README schema lint.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
5b7284c4a4 named its reset task with 81 characters, one over the limit of
test_name_emoji_and_length, and 754d35c4de built the path to
roles/web-app-keycloak/vars/main.yml with a pathlib chain that test_file_spot
requires to come from ROLE_FILE_VARS_MAIN. Both commits went in without the
lint suite. The task keeps its behaviour under a 70-character name, the test
reads the same file through the constant. make test-lint: 577 passed.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
gotoOnion follows the redirect chain, so a front page that hands over to
SSO returned the issuer's page. SuiteCRM's SAML login does that without
oauth2-proxy: on an onion pick the onion / answered 302 to /saml/login and
on to the clearnet Keycloak, whose TLS response carried HSTS, and
expectHstsWhenTls failed with "must not emit HSTS over plaintext onion
transport" (CI run 40131272595, SuiteCRM#0).
529876c7ca moved eight oauth2-proxy specs to ownResponseHeaders. The 27
remaining gotoOnion front-page specs now use it as well; without a
redirect the first response is the final one, so only a cross-host
hand-off changes which vhost the assertion reads. web-svc-html keeps its
content-type and CSP checks on the final response.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The exec argv rules missed four shapes the issue names:
- `-e {{ ('NAME=' ~ ...) | quote }}`, a NAME=VALUE pair built in Jinja,
is now read like the plain `-e NAME=VALUE` form;
- `container run` and `docker run` count as an exec;
- in a task that sets no_log, item.value, item.configvalue, a b64encode
payload or a *_b64 var on the exec line is a secret;
- a set_fact or vars: name whose definition holds a credential key or
source is a secret under any name (es_user_payload).
Against the pre-fix role files the rules flag the three Nextcloud occ
tasks, the WordPress AI Engine and OIDC payloads and the elasticsearch
user payload; the current tree has no finding.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The broker built every handle as kc-<username>. The PDS (0.4.66) caps the
first handle label at 18 characters, so kc-kevinveenbirkenbach (22) failed
createAccount with InvalidHandle: Handle too long, and the prefix only
existed to dodge the PDS's reserved names.
handle.js derives the label from the Keycloak username without a prefix and
adds i8- only after the PDS answers Reserved handle (1029 names, among them
administrator). A label that fits neither way leads to a form at /sso/handle
where the user picks 3 to 18 characters of [a-z0-9-] that contain a hyphen,
which no Keycloak username holds, and never contain i8-. The POST must come
from the proxied host's origin; the hostname is compared, since nginx passes
Host without its port.
store.js keeps username -> {handle, did, encrypted app-password} in a JSON
file (0600, written through a rename) in the new broker_data volume, so a
broker restart neither creates a second account nor resets a password. A
stored entry whose login the PDS refuses gets its password reset by DID; when
that login still fails the account is gone (a single-volume PDS rollback) and
the user is provisioned again. Concurrent first visits share one
provisioning. A derived handle that is taken is only recovered when no other
user holds it in the store, and an e-mail address a legacy kc- account still
holds ends in a 409 page instead of a retry loop.
Without the broker, 04_native_admin.yml follows the same rule: the plain
handle first, i8- on Reserved handle. The native Playwright tests sign in by
e-mail, which the PDS resolves, and accept either handle.
Evidence: the PDS rules and messages were read from the 0.4.66 image.
server.test.js runs the broker as a child process against a PDS stub that
answers with those messages: plain, i8-, form, 403/400/409, the takeover
guard, restart, lost account, reset and the concurrent visits, whose test
fails without provisionOnce. Unit tests 21/21, JavaScript suite 102/102,
make test-lint and make lint pass. The image builds and the node user writes
the store into a fresh volume.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
local_config.sh passed its substitutions as `sed -e "s/.../${PATCH_PASSWORD}/"`,
so the password expanded into the sed command line inside the container,
which host ps shows for the length of the call (#1213).
The substitutions are now written by the printf builtin into a mktemp
script that `sed -f` reads and an EXIT trap removes. Output, PATCHED
marker and idempotence are unchanged (compared against the previous
script with a password containing /, &, " and \).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- elasticsearch: the consumer user's payload carries its password and went
into curl's -d on the exec line; curl now reads it as --data-binary @-
from the task's stdin through ELASTICSEARCH_EXEC_SHELL_STDIN.
- rabbitmq: add_user and change_password take only the username and read
the password from stdin (rabbitmqctl's infer_password, present since
4.0.0); the RMQ_PW environment variable is gone.
- redis: the healthcheck rendered `redis-cli -a <password>`; it now
authenticates with REDISCLI_AUTH from the container's own
REDIS_PASSWORD and is declared in meta/services.yml through the
container_healthcheck SPOT with unchanged timings. Administration.md
stops expanding the password in the operator's host shell.
Refs #1213.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The AI Engine and OIDC addons passed their base64 payloads as
`-e NAME=<payload>`, and wp-discourse wrote its options into the
`wp eval` code, so the LiteLLM API key, the OIDC client secret and the
Discourse API key sat on the host-side container exec argv (#1213).
Each payload now goes through `-e NAME` plus the task's environment:,
which the PHP side already reads with getenv(); wp-discourse decodes
getenv('WP_OPTION_JSON_B64') and gains no_log.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>