Commit Graph
14682 Commits
Author SHA1 Message Date
kevinveenbirkenbachandClaude Opus 5.5 1b9c6f9d12 feat(test-e2e-playwright): ship @axe-core/playwright in the shared runner
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>
2026-10-28 22:12:12 +01:00
kevinveenbirkenbachandClaude Opus 5.5 2c686f77b4 test(web-app-openproject): expect a 401 on the SSO-whitelisted API, not a Keycloak bounce
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>
2026-10-28 22:10:32 +01:00
kevinveenbirkenbachandClaude Opus 5.5 88182e8d1f docs(requirements): add 046 custom roles pulled from inventory-declared sources
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>
2026-10-28 22:05:20 +01:00
kevinveenbirkenbachandClaude Opus 5.5 5586a31d82 chore(lint): drop the three lints that parsed the MCP requirement audit
test_mcp_audit_completeness, test_mcp_audit_classification and
test_mcp_blocked_reasons held roles against the audit lists and tables of
requirement 035, so every new role, a custom web-app-cst-* role included,
had to be written into a requirement document. No lint pins the content of
a requirement; the audit stays as a review record.

Requirements 025 and 035 no longer claim that a lint enforces the audit,
and 035 drops its demand for such a test. Same removal as 0e9210c36a on
feature/store-i18n, where the audit moved into ADR 0003.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 21:36:47 +01:00
kevinveenbirkenbachandClaude Opus 5.5 8d604f8eed fix(web-app-keycloak): copy the ldap-roles mapper shallowly so no plugin loader is rebuilt
deepcopy of the lazy mapper dict copied the templar it points to; ansible-core
rebuilds each plugin loader of that copy through __setstate__ with aliases,
which emits the filter/test PluginLoader aliases deprecation. The filter only
sets top-level keys, so a shallow dict is enough.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 21:29:30 +01:00
kevinveenbirkenbachandClaude Opus 5.5 fcf0c4d9a2 fix(web-app-stalwart): exempt the stalwart-migrate image entry from the service flag lints
stalwart_migrate exists only so the image updater keeps the migration image
current; migrate.sh runs it and it is never deployed, so it has neither a
group-gated flag nor a Playwright surface.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 21:25:02 +01:00
kevinveenbirkenbachandClaude Opus 5.5 d71ebc0997 fix(web-app-stalwart): take the client address from Forwarded with the 1.0 HTTP schema
Stalwart 1.0 dropped useXForwarded and rejects it as an invalid x:Http patch.
Its replacement is clientIpSource, with forwardedHops naming the trusted
proxies in front of it: one, the OpenResty vhost that sets Forwarded.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 21:20:20 +01:00
kevinveenbirkenbachandClaude Opus 5.5 b99c6f7a44 test(sys-svc-proxy): resolve the forwarded base include from the repository root
forwarded.conf.j2 includes headers/forwarded_base.conf.j2 by its path from
the repository root, the way Ansible searches templates, so the test's loader
searches the root next to the headers directory.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 21:08:53 +01:00
kevinveenbirkenbachandClaude Opus 5.5 e8a4106367 test(web-app-stalwart): model the 0.16 store migration in the store guard walk
The guard now includes store_guard/migrate.yml for a store from before 1.0
and re-reads its layout, so the walk feeds that include's result into the
final assert: a migrated store passes, one left before 1.0 still stops.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 21:07:59 +01:00
kevinveenbirkenbachandClaude Opus 5.5 7023bc1108 fix(web-app-stalwart): read the migrate banner from the full help and run all phases in one call
The stalwart-migrate container wrapper prints its CA trust lines before the
banner, so the first line never named the series. A loop over the phases
kept running after a failed phase; the script's all phase stops at the first.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 21:06:13 +01:00
kevinveenbirkenbachandClaude Opus 5.5 75eed3f1d8 feat(web-app-stalwart): migrate a 0.16 store during the deploy
The store guard now runs the staged migrate.sh from upgrade to final instead of stopping the deploy, reads the store layout again and lets the same deploy start Stalwart 1.x on the migrated store. Without a terminal, prepare accepts the recommended answer of every question stalwart-migrate marks as not answered and validates again, failing loudly if any stay open. The assert remains for a store that still predates 1.0 after the migration.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 19:32:56 +01:00
kevinveenbirkenbachandClaude Opus 5.5 5073248b25 feat(web-app-stalwart): stage a stalwart-migrate script when the store guard finds a 0.16 store
The v1.0 port stops every deploy on a 0.16 store and left the migration to manual README steps. The guard now stages migrate-v016/ on the stack host: a static migrate_v016.sh, the values it reads in migrate.env and the target config.json pointing at stalwart_v1. Its phases are upgrade, check, backup, target, prepare, sync, final, status and all. Versions come from stalwart-migrate's --help banner and the floating tag of its source series, not from a pin. upgrade recreates an older 0.16 server on that tag through the compose wrapper or service update. check insists on that exact image and on the role's server matching the tool's target series. A failed final run or rename puts the 0.16 store and server back. stalwart_migrate is declared as a disabled service, so the image updater bumps it and the prepull skips it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 19:05:01 +01:00
kevinveenbirkenbachandClaude Opus 5.5 2bf593bf1e fix(sys-front-inj-all): render one body-filter Lua file per domain
The file was named after the application, so an app served on several domains (SeaweedFS filer/master, Stalwart mail/webmail) overwrote it once per domain on every deploy. The last domain won its dashboard iframe host and Matomo site id for all others, and every deploy reloaded OpenResty for the flip-flop. The file is now <domain>.lua, the naming store-i18n already uses, and its path comes from lookup('nginx', 'files.lua', domain) for writer, reader and the Matomo reinjection. The reinjection stats the live domain's file instead of globbing leftovers.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 18:45:39 +01:00
kevinveenbirkenbachandClaude Opus 5.5 1af8fd9d30 fix(sys-svc-mail-smtp): stop postfix only where its binary is installed
A removed but unpurged postfix leaves its init script behind, so the service module warned on every deploy that postfix is an init script on a systemd host, and failed_when: false hid any real stop failure. The stop now runs only when /usr/sbin/postfix exists, and a failing stop fails the deploy.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 18:41:39 +01:00
kevinveenbirkenbachandClaude Opus 5.5 91ae3c934c Merge remote-tracking branch 'origin/main' into feature/updater-lockdown-probe
Takes main's Stalwart v1.0.0 port (server v1.0.0, WebUI v2.0.2, 0.16 store guard). manager_ops.yml keeps the updater's per-account forwards ahead of main's store marker, which stays the last task. The root README drops Akaunting with main.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 18:26:37 +01:00
kevinveenbirkenbachandClaude Opus 5.5 670acd86dc fix(sys-svc-proxy): open the paths an SSO ACL whitelists in role-owned vhosts too
Only basic.conf.j2 rendered services.sso.oauth2.acl. The OpenProject and Checkmk vhost overrides gated every path, so Nextcloud's server-side POST to OpenProject's /oauth/token got the oauth2-proxy 302 to Keycloak, json_decode returned null and the OAuth redirect answered 500. The ACL block now lives in location/sso_acl.conf.j2, which basic and both overrides include. An override passes its identity header for gated locations and clears X-Remote-User on the open ones, since both apps trust that header. The vhost lint requires the include from every gated override whose role declares an ACL.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 18:11:54 +01:00
kevinveenbirkenbachandClaude Opus 5.5 22811ddcd4 refactor(sys-svc-proxy): set the four forwarded request headers from one snippet
Host, X-Real-IP, X-Forwarded-For and X-Forwarded-Proto were spelled out inline in the SSO endpoint, the logout location, the KIX and SeaweedFS container proxies and three OpenTalk locations. forwarded_base.conf.j2 now holds them, and forwarded.conf.j2 adds Forwarded, X-Forwarded-Port and X-Forwarded-Ssl on top. The rendered directives stay the same; only a vhost that sets proxy_x_forwarded_proto (OpenCloud) now sends it on /logout as well.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 18:06:27 +01:00
kevinveenbirkenbach 65431ad7ca Merge pull request #1251 from infinito-nexus/update/version-sources-web-app-stalwart-20261028-f3b426f
update(versions): update pins with a declared source (web-app-stalwart)
2026-10-28 17:55:56 +01:00
infinito-nexus-updater[bot] b05f4c0124 update(versions): update pins with a declared source (web-app-stalwart) 2026-10-28 16:44:56 +00:00
kevinveenbirkenbach 83ba787554 Merge pull request #1239 from infinito-nexus/update/repository-refs-web-app-discourse-20261027-e6a0fdd
update(repos): bump git refs to latest semver tags (web-app-discourse)
2026-10-28 17:43:06 +01:00
kevinveenbirkenbachandClaude Opus 5.5 11ea75112e fix(web-app-keycloak): return to the requested page after an SSO login
The 401 jump to /oauth2/start lost the original URI, so oauth2-proxy sent every login back to '/'. A first Nextcloud -> OpenProject connect dropped its /oauth/authorize request on the way. The named location @oauth2_start hands $request_uri to oauth2-proxy as X-Auth-Request-Redirect, left empty for non-GET/HEAD requests and for URIs that would push Keycloak's state past its limit.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 17:39:38 +01:00
kevinveenbirkenbachandClaude Opus 5.5 b69aaeeb44 fix(lint): read the Playwright vars path through ROLE_FILE_VARS_MAIN
1002909f8c pointed test_playwright_helpers_staged at roles/test-e2e-playwright/vars/main.yml as a literal path, which test_file_spot rejects: role-file paths come from utils.roles.mapping.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 17:22:43 +01:00
kevinveenbirkenbachandClaude Opus 5.5 44aaa68924 refactor(tls): add url.origin and use it wherever url.base lost its trailing slash
lookup('tls', app, 'url.base') always ends in '/', and 39 call sites in 25 files rebuilt the slash-less form by hand with regex_replace('/$', ''), regex_replace('/+$', ''), trim('/') or .rstrip('/'), directly or on a variable holding url.base. The lookup now returns that value as url.origin (scheme://host, url.base minus its final '/'), and every call site reads it; two sites that stripped the slash only to append it again now take url.base as is, and GITLAB_URL and DASHBOARD_JS_CDN_URL lost their last consumer.

test_url_base_no_double_slash gains the rule url-base-strip, so url.origin stays the only way to the slash-less URL; it flags all nine HEAD sites probed and none after the change. The same lint keeps url-base-double-slash and url-base-addon-value, which put the nine Nextcloud integration URLs, the Mattermost and SuiteCRM facts and the XWiki instance on the slash-less form, drop the stray '/' before Joomla's index.php callback, and give BBB its api.url as [base, suffix] | url_join plus the trailing '/' its client appends 'api/<call>' to; bbb.spec.js now requires exactly that form.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 17:21:53 +01:00
kevinveenbirkenbachandClaude Opus 5.5 199d7fdcbf fix(web-app-nextcloud): converge the OpenProject OAuth coupling on every deploy
Connecting a user to OpenProject failed: the instance URL carried url.base's trailing slash, so Nextcloud redeemed the code at //oauth/token (HTTP 500), integration_openproject stayed in its fresh-setup state so isAdminConfigOk was false and no Connect button rendered, and duplicate OAuth clients piled up across deploys. The coupling now converges on each deploy: a PHP helper creates or repairs the Nextcloud OAuth2 client (numeric id, OpenProject callback, same-name duplicates removed); one rails runner call ensures the storage, its OAuth application and the Nextcloud client on it, renewing the OpenProject secret when Nextcloud holds none or a stale one, or when rotate_oauth_client forces it, and realigning the application's redirect_uri after a host change; nc_oauth_client_id is stored only after that call succeeded. openproject_instance_url has no trailing slash and fresh_project_folder_setup is 0.

No secret travels in argv or environment: on the way to OpenProject they ride the same stdin as the Ruby script, as a PROVISION_INPUT heredoc, and the credentials go into Nextcloud through occ lines on the container shell's stdin, taken verbatim from 7f72e53a58 on feature/store-i18n. A Ruby truth table over seven scenarios, with the staged state as negative control, covers fresh install, rerun, a Nextcloud that lost client and secret, a stale secret, forced rotation and a host change. A new Playwright test connects a user through the OAuth round trip and expects Nextcloud's oauth-redirect below 500 and 'Connected as'.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 17:06:36 +01:00
kevinveenbirkenbachandClaude Opus 5.5 94ed66f1e3 fix(security): stop ansible.builtin.command from expanding $VARs in argv scripts
8ab950f13c hands the postgres, MediaWiki and XWiki scripts to bash -c as argv text, and ansible.builtin.command runs os.path.expandvars over every argv item unless expand_argument_vars is false. Any $NAME that also exists in the task environment was replaced before bash ran: with container=docker set in the dev container, set_postgres_superuser_password.sh targeted a container named docker and retried its outer loop until the deploy hung. The four argv tasks now pass expand_argument_vars: false.

Verified through Ansible replicas: postgres rc=0 with every exec on the right container and 0 ps -ww hits, MediaWiki 1.46 installed with 0 ps -ww hits, the XWiki hash matches; a live deploy reports [UNCHANGED] for the shared postgres.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 16:53:39 +01:00
kevinveenbirkenbachandClaude Opus 5.5 1002909f8c perf(test-e2e-playwright): stage each role's Playwright tree as one tarball
ansible.builtin.copy moved the 66-file Nextcloud tree file by file at about 0.46 s each (30.8 s per run in the deploy log), and the shared helpers followed in a loop of their own. The role tree is now packed on the controller and unpacked in one unarchive, together with a helper archive packed once per run, the pattern the persona flows already use. A replica of the real tasks staged a tree identical to the copy result (71/71 files, root-owned, 0644/0755) in 1.4 s instead of 24.3 s.

test_playwright_helpers_staged now checks the helper glob where it moved: TEST_E2E_PLAYWRIGHT_HELPERS_DIR in vars/main.yml and the fileglob query in 01_setup.yml.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 16:26:38 +01:00
kevinveenbirkenbach 5589f4665d Merge pull request #1250 from infinito-nexus/update/docker-image-versions-web-app-jenkins-20261028-7e63bf9
update(images): update Docker image versions (web-app-jenkins)
2026-10-28 16:22:27 +01:00
infinito-nexus-updater[bot] e1d6f59b97 update(images): update Docker image versions (web-app-jenkins) 2026-10-28 15:19:49 +00:00
kevinveenbirkenbachandClaude Opus 5.5 8ab950f13c fix(security): hand secrets to scripts on stdin and lint task argv for credentials
A task-level environment: does not keep a value off the host argv: Ansible prefixes it to its own /bin/sh -c command line (measured: script and command with environment show the value in ps, command with stdin does not). The postgres superuser script, both of its callers, the MediaWiki installer, the XWiki superadmin debug script and the three OpenLDAP schema tasks now take their secrets on stdin. psql reads the new password with \set from its environment instead of -v, MediaWiki gets --dbpassfile/--passfile, and ldapsm runs through its own entry point with -W appended inside the interpreter.

The swarm join talks to the Docker API through uri_retry with the token in the request body; SWARM_MANAGER_PORT and SWARM_LISTEN_ADDR are the single source for 2377. The new task-argv-secret lint flags a credential, including *_PW and *_PASS names, rendered into the command line of a script, command or shell task that runs no container exec or run.

Probes: rotation on a throwaway postgres_custom:18 [CHANGED] in 2 s with 0 ps hits, the real or_update.sh installed mediawiki:1.46 with 0 ps hits, a replica of the ldapsm task reached the bind (Invalid credentials) with 0 ps hits, the swarm join body passed the daemon's field validation through uri_retry.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 16:17:10 +01:00
kevinveenbirkenbach 939513219d Merge pull request #1227 from infinito-nexus/update/docker-image-versions-web-app-stalwart-20261026-f99d2b6
update(images): update Docker image versions (web-app-stalwart)
2026-10-28 16:15:36 +01:00
kevinveenbirkenbach 67b1f48fdb Merge pull request #1233 from infinito-nexus/fix/web-app-seaweedfs/anonymous-deny
fix(web-app-seaweedfs): deny unsigned reads on non-public consumer buckets
2026-10-28 16:14:22 +01:00
kevinveenbirkenbachandClaude Opus 5.5 ef5718e20b fix(svc-db-postgres): keep the superuser password off argv and drop the 30 s pre-check
Both callers handed the password to set_postgres_superuser_password.sh as an argument, and the script passed it on as -e NAME=VALUE to container exec, so the host process list showed it twice. It now arrives as POSTGRES_SUPERUSER_PASSWORD in the task's environment and reaches the container through -e NAME without a value, the same text as ffed838bc7 on feature/store-i18n.

The check whether the password already worked retried 15 times 2 s before ALTER USER, although it only decides between [CHANGED] and [UNCHANGED]; one attempt does that. A rotation on a throwaway postgres_custom:18 container took 1 s instead of the 32.6 s the local deploy log shows.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 15:38:16 +01:00
kevinveenbirkenbachandClaude Opus 5.5 33c38e95d0 fix(web-app-nextcloud): activate the Collabora connector at deploy time
The richdocuments hook now runs occ richdocuments:activate-config until it returns 0, bounded by the timeout lookup, so the connector's capabilities are cached before the first document opens. public_wopi_url drops the trailing slash url.base always carries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 15:35:47 +01:00
kevinveenbirkenbachandClaude Opus 5.5 78678d220f fix(inventory/validate): keep the keys after a vaulted value
The validator cut every !vault block with a regex that ran up to the next line at column 0, so the keys after a vaulted password vanished, a whole user among them. utils.cache.yaml has parsed the !vault tag itself since c4556fe72d, so the loader now hands the file to it unchanged and a vaulted value loads as its ciphertext. An inventory-only user that brings its own username no longer warns as unknown.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 15:33:49 +01:00
kevinveenbirkenbachandClaude Opus 5.5 28cf6bb2fc style(lint): collect argv secret findings with extend
ruff PERF401 flagged the append loop in test_compose_argv_no_secret.py; the generator keeps the same filter, order and finding text.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 15:08:23 +01:00
kevinveenbirkenbachandClaude Opus 5.5 7e3a53a6c1 fix(ci): set the main sync push header without a URL-shaped config key
test_urls_reachable read http.https://github.com/.extraheader as a link and failed with HTTP 404. The header is set through GIT_CONFIG_* for the one git push only, which talks to github.com alone, so the unscoped http.extraheader reaches the same requests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 15:07:20 +01:00
kevinveenbirkenbachandClaude Opus 5.5 5142d56503 perf(lint): lint only files changed since origin/main and run ansible-lint once
Local lint runs hand the container the files changed since the merge-base with INFINITO_LINT_DIFF_BASE; a changed tool config or shared lint script, CI, or a missing base fall back to the full run. autoformat records a content stamp after a clean ansible-lint --fix, so lint-ansible skips the second pass on an unchanged tree. shellcheck and sqlfluff check in parallel.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 14:59:09 +01:00
kevinveenbirkenbach 9c89f1c3a1 Merge pull request #1246 from infinito-nexus/update/docker-image-versions-web-app-pretix-20261028-aff6b54
update(images): update Docker image versions (web-app-pretix)
2026-10-28 14:42:58 +01:00
kevinveenbirkenbachandClaude Opus 5.5 ffe77cdba9 feat(ci): mirror the source repository's main into a fork on every push
bf25eb2fc7 removed the sync-main job because the fork had no token that
may push .github/workflows/**: GITHUB_TOKEN cannot be granted the
workflows permission, and the bot App is installed on infinito-nexus/core
only. Since then a fork's main only moves when its owner syncs it by
hand, and the fork's main has fallen 368 commits behind.

The job is back with a token of its own: CI_SYNC_MAIN_TOKEN, a
fine-grained personal access token limited to the fork, with Contents
and Workflows write. main_from_repository.sh resolves the source through
baseline_remote.sh, so the normalization and the off switch exist once:
in infinito-nexus/core itself and with CI_SYNC_MAIN_SOURCE_REPOSITORY
disabled the job ends green without reading the secret. Everywhere else
a missing secret fails the job before any fetch or push and names the
page that explains how to create it. The token reaches git as an HTTP
header through GIT_CONFIG_* variables, never through argv or
.git/config; checkout runs without persisted credentials so its own
header does not compete.

The job runs beside run-policy, not before it: CI keeps fetching its
diff baseline from the source repository read-only, so a failed sync
turns the run red without holding CI back.

fix/ci-mirror-token tried the bot App instead (019fb572a7, 756b180f1d).
That needs the App installed on every fork and granted Workflows write,
which secrets.md rules out for the App, so the token here is a
per-fork PAT.

Checked: the script skips as infinito-nexus/core and with the sync
disabled, and fails before fetching as a fork without the secret.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 13:12:22 +01:00
kevinveenbirkenbachandClaude Opus 5.5 34be0afdf7 fix(security): keep credentials out of container commands and healthchecks
Four roles rendered a credential into a container's command or
healthcheck, where `docker inspect` and the host's `ps` show it:

- svc-db-redis: `redis-server --requirepass <password>`, the
  healthcheck's `redis-cli -a <password>`, `REDIS_CLI` with `-a` and
  the ACL password on the `container exec` line. The CLI, ACL and
  healthcheck changes are the ones feature/store-i18n made for #1213
  (54dde281a0, 772e3e70e0): REDISCLI_AUTH from the container's
  REDIS_PASSWORD, the ACL password on stdin through `redis-cli -x`,
  and the healthcheck declared through the container_healthcheck SPOT.
  New here: redis-server reads `--requirepass "$$REDIS_PASSWORD"` from
  its environment at runtime, which needs the CA override to keep the
  `$$` (e53a8c7d75).
- svc-db-elasticsearch: the healthcheck's `curl -u elastic:<password>`
  now reads the credential as a curl config on stdin, written by the
  printf builtin from ELASTIC_PASSWORD.
- svc-db-typesense: the server reads TYPESENSE_API_KEY from its env
  file, so `--api-key <key>` is gone.
- web-app-funkwhale: its Typesense sidecar gets the key through that
  service's `environment:` instead of `--api-key`; the shared env file
  would hand it to the API as well.

The exec argv lints check Ansible commands only, so none of this was
caught. test_compose_argv_no_secret refuses a credential variable in the
command, entrypoint, healthcheck or test of a role template; it failed
on these five lines before the fix.

Checked: the local redis answers the authenticated ping on the first
attempt and its Cmd and healthcheck carry only `$REDIS_PASSWORD`;
typesense 0.25.2 accepts the key from the environment (200 with it,
401 without, refuses to start with none); curl sends the expected
Authorization header from `-K -`.

Refs #1213

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 12:58:19 +01:00
kevinveenbirkenbachandClaude Opus 5.5 0280ae10d9 fix(svc-db-mariadb): manage MariaDB through ansible.mariadb
ansible.mysql warns on every deploy that "MariaDB has been detected: its
support will be dropped in 6.0.0. For MariaDB automation, please use the
ansible.mariadb collection instead." The galaxy pin updater crosses major
versions, so its next bump would have broken the three tasks that wait
for root credentials, create a consumer's database and create its user.

They now use ansible.mariadb.mariadb_db and mariadb_user. Their options,
the shared login options and the PyMySQL driver are the same, so the
tasks only change their module name. ansible.mariadb 6.0.2 replaces
ansible.mysql 5.2.0 in both requirement files; nothing else used the
mysql collection.

The deprecated-pattern lint now refuses ansible.mysql.* as well as
community.mysql.*, and the raw query lint covers mariadb_query.

Local Nextcloud update deploy: the wait task loads
ansible/mariadb/plugins/modules/mariadb_db.py, passes on the first
attempt, and the MariaDB warning is gone.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 12:54:35 +01:00
kevinveenbirkenbachandClaude Opus 5.5 e53a8c7d75 fix(sys-svc-compose-ca): escape only the image's argv in the CA override
render_override takes a service's entrypoint and command from the
output of `docker compose config`, which already prints a literal `$`
as `$$`, and the image's Entrypoint and Cmd from `docker image inspect`,
which are raw. It escaped the combined argv once more, so a service
command reading a variable at runtime (`$$REDIS_PASSWORD` in
compose.yml) reached the override as `$$$$` and the container as `$$`,
which the shell expands to its PID. redis then required
"<pid>REDIS_PASSWORD" and every authenticated ping failed with
WRONGPASS.

Only the image-derived parts are escaped now; the service's own argv
is written as compose config printed it. A new test keeps a service
command's `$$` intact next to an image entrypoint; the existing tests
still require an image Cmd's `$VAR` to become `$$VAR`.

Local Nextcloud update deploy: the redis override holds `$$`, the
container Cmd `$REDIS_PASSWORD`, and the authenticated ping answers
PONG on the first attempt.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 12:50:26 +01:00
kevinveenbirkenbachandClaude Opus 5.5 82a695257f fix(sys-svc-container): start the DNS probe containers without CA injection
On a fresh stack the daemon config changes, so the
container-manager-restart handler runs the Docker-in-Docker DNS probe
before sys-ca-selfsigned has created the root CA. container run then
found no CA file and logged "CA injection disabled (CA files not
found). Falling back to plain 'docker run'." twice per fresh deploy.

The probe only resolves names and needs no TLS, so the handler now
passes CA_CONTAINER_ENABLED=0 like the helper containers of bluesky,
confluence, jira, mediawiki and nextcloud do. container.py reads the
flag in one place and injects the CA only for "1".

Checked with fake CA paths: with the flag at 1 container run warns
once, at 0 it does not warn and still exits 0.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 12:46:08 +01:00
kevinveenbirkenbachandClaude Opus 5.5 1032151866 style(web-svc-coturn): wrap COTURN_ADDRESSES_PINNED as autoformat writes it
ansible-lint --fix folds the line. Inside the double-quoted scalar the
break folds to a single space, so the parsed expression is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 12:41:38 +01:00
kevinveenbirkenbachandClaude Opus 5.5 ab2f293ad9 perf(sys-svc-container): pre-pull missing images in synchronous deploys too
The background pre-pull ran only with ASYNC_ENABLED, so local deploys,
the first CI pass and debug deploys pulled every missing image inside
the app that needed it, one after the other. The job itself is a
best-effort background pull that reap.yml collects and only reports
on, so it does not depend on the rest of the deploy being asynchronous.
Storage-constrained hosts, MODE_RESET and swarm workers still skip it.

Of twelve deploy cells, three change from skip to run: the local
synchronous reinstall, CI pass 1 and a production deploy with
MODE_DEBUG. A local Nextcloud reinstall generated its CA override in
10 s instead of 84 s, because the images were already present.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 12:38:22 +01:00
kevinveenbirkenbachandClaude Opus 5.5 8d5eac6bbf fix(sys-svc-container): probe one packet size at the egress MTU
automtu searched the path MTU between its payload bounds, and a lost
echo during that search moved the result between 1400 and 1398 from one
deploy to the next. Every move changed the daemon MTU, rewrote
daemon.json and restarted dockerd.

The probe window is now a single payload: the smaller of 1500 and the
egress MTU automtu reads itself (`--print-mtu egress`), minus the 28
bytes of IP and ICMP header, with `--pmtu-policy max` so one target
answering at that size decides. registry-1.docker.io leaves the
targets because it does not answer ICMP echo. The assert now names both
the egress and the effective value.

Local repeat deploy: the probe took 0.83 s and no handler restarted
dockerd.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 12:34:12 +01:00
kevinveenbirkenbach b8e453f118 Merge pull request #1245 from infinito-nexus/update/docker-image-versions-svc-prx-openresty-20261028-74e5bd7
update(images): update Docker image versions (svc-prx-openresty)
2026-10-28 12:31:26 +01:00
kevinveenbirkenbach ea38f34cac Merge pull request #1247 from infinito-nexus/update/version-sources-web-app-n8n-20261028-9bfee5a
update(versions): update pins with a declared source (web-app-n8n)
2026-10-28 12:30:57 +01:00
infinito-nexus-updater[bot] 5652816bcf update(versions): update pins with a declared source (web-app-n8n) 2026-10-28 11:29:40 +00:00
infinito-nexus-updater[bot] b6a9e84b9d update(images): update Docker image versions (web-app-pretix) 2026-10-28 11:29:22 +00:00