Commit Graph
12726 Commits
Author SHA1 Message Date
Prageeth Panicker 7c3477c199 fix(web-app-wazuh): move console and indexer local.http to 8096/8097 to resolve a port collision with web-app-stalwart
web-app-stalwart, merged on main, claims local.http 8095 (stalwart) and 8094 (webmail), the same ports the Wazuh indexer and dashboard held. Both new ports come from cli.contributing.network.ports.suggest against the rebased tree.
2026-10-06 05:15:18 +00:00
Prageeth Panicker ff189e79f0 fix(web-app-wazuh): source usernames from the shared users.yml SPOT, scope readonly_auditor to wazuh-* indices
Per Kevin's review: replaced hardcoded usernames (wazuh-wui, kibanaserver,
admin) across wazuh.yml.j2, compose.yml.j2, internal_users.yml.j2,
roles_mapping.yml.j2, config.yml.j2 and 00_core.yml with
lookup('users', ...) references, following the same pattern already
used by web-svc-coturn and web-app-semaphore. New meta/users.yml
declares web-app-wazuh-dashboard (kibanaserver) and web-app-wazuh-api
(wazuh-wui) as service accounts, and references the existing shared
admin key as a dependency (admin: {}), matching the same pattern used
by openbao, pgadmin, checkmk, semaphore and openldap.

Per CodeRabbit's security finding (CWE-269): scoped readonly_auditor's
index_patterns from '*' to 'wazuh-*', matching the role's own stated
'all Wazuh indices' description. The wildcard previously granted read
access to every index on the cluster, including other users' saved
objects and plugin state, beyond what the role needs or describes.
2026-10-06 05:15:18 +00:00
Prageeth Panicker bad29c2f0d fix(web-app-wazuh): guard the Keycloak super-admin credential lookups
playwright.env.j2's SUPER_ADMIN_PASSWORD/USERNAME lines looked up
web-app-keycloak's secrets unconditionally, with no check that
Keycloak is actually part of the deploy. This has been true since the
role's first commit, but was silently masked: the role's old
tor: enabled: true pulled in svc-net-tor, which declares Keycloak as
its onion-SSO provider, so Keycloak always ended up in the deploy
regardless of variant.

Removing tor (fix(web-app-wazuh): serve clearnet only) correctly
stopped that accidental masking - variant 1 (SSO/LDAP off) no longer
pulls Keycloak in at all, so the unconditional lookup now fails with
'Key administrator_password not found', confirmed on both a fedora
(compose) and centos (swarm) CI run.

Guards both lookups on WAZUH_OIDC_ENABLED (vars/main.yml, already
resolved from services.sso.enabled - i.e. whether Keycloak is in
group_names), matching the existing guards on PERSONA_ADMINISTRATOR_
BLOCKED and SSO_SERVICE_ENABLED a few lines above in the same file.
Falls back to an empty quoted string when SSO is off, so the lookup
never executes on that branch.

Verified: rendered both lines directly with a stub lookup that raises
if called - confirms the lookup is never evaluated when OIDC is off.
Confirmed variant 0 (SSO on) is unaffected. 22 passing tests across
the role's playwright/lint/mcp-secret suites.

Not run: a live compose/swarm deploy of variant 1 - the actual proof
this resolves the CI failure, pending next CI run.

While investigating, found the same unguarded-lookup pattern exists in
web-app-zammad (reads svc-db-postgres's password with no check that
postgres is in the deploy) - flagged for Kevin, not touched here since
it's unrelated to anything this branch changes.
2026-10-06 05:15:17 +00:00
Prageeth Panicker 68bbb2e21a fix(web-app-wazuh): serve clearnet only
Wazuh is a SIEM console and should never be served as an onion
service. Following web-app-peertube's established pattern for a
clearnet-only role:

- meta/services.yml: tor block set to enabled: false / shared: false,
  with # nocheck: sso-variant-tor documenting why (the SIEM console is
  never served over onion); bond and variants-coverage nocheck removed
  since they no longer apply.
- meta/variants.yml: removed both tor: enabled: true entries.
- README.md and the root README index regenerated via make docs to
  match (tor dependency removed from the diagram and index row).
2026-10-06 05:15:17 +00:00
kevinveenbirkenbachandClaude Opus 5.5 e6fbb4b3f4 chore: drop two leftovers of the Wazuh role's first commit
That commit added test_bcrypt_hash.py with an Exception comment and left a
trailing blank line in group_vars/all/11_oidc.yml. Both go.

What the comment said still holds: the test hashes with the raw bcrypt package
because Ansible's password_hash('bcrypt') routes through passlib, whose bcrypt
self-test can misreport a password well under 72 bytes as too long when
passlib and the installed bcrypt disagree on the version.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-06 05:15:17 +00:00
kevinveenbirkenbachandClaude Opus 5.5 163edebf01 refactor(web-app-wazuh): drop the Tor dual-stack workarounds
Wazuh carries no network-specific code any more: the onion front-proxy include, WAZUH_DASHBOARD_ONION_DOMAIN, the forked templates/proxy.conf.j2 vhost and the tor exclusive/primary overrides are gone. The role follows the Tor provider default like every other role with a Tor bond; serving one role on several networks returns generically in the multi-network change.

Without the forked vhost nothing forwards X-Forwarded-Host, so the dashboard OIDC redirect base is the static canonical url.base instead of trust_dynamic_headers.

Also: the dashboard port is read from one variable, the Playwright specs share wazuhLoginViaOidc and withBiberInGroup and assert worker-src blob:, PR-added explanatory comments are removed, and the root README lists the role.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-06 05:15:16 +00:00
Prageeth Panicker e233fffa4b fix(web-app-wazuh): move indexer local.http off 8093 to resolve a port collision with web-app-openbao
roles/web-app-openbao (merged into main since our last sync) also
claims 8093 for its local.http port. Moved Wazuh's indexer to 8095,
confirmed free via the port-suggestion tool and a repo-wide check for
existing users. Nothing else in the role hardcodes the port number -
everything reads it from vars/main.yml's WAZUH_INDEXER_HTTP_PORT.
2026-10-06 05:15:16 +00:00
Prageeth Panicker 84d8fa3091 fix(web-app-wazuh): flush compose-up immediately after notifying it, before application_id can be overwritten
sys-svc-compose's shared 'compose up' handler resolves its chdir target
via lookup('container', application_id, 'directories.instance') fresh
at flush time, not frozen at the moment it's notified. Many roles set
their own identity via set_fact: application_id: <role> as their first
task (svc-db-openldap, web-app-gitlab, svc-ai-litellm, and many more -
a widespread platform convention), which permanently overwrites the
play-wide fact for every host it runs on. web-app-wazuh instead reads
application_id from vars/main.yml (a role var, lower precedence than
set_fact).

If any role using that set_fact pattern runs in the same play after
Wazuh's own notify: compose-up but before whichever later flush point
(sys-stk-front-proxy's meta: flush_handlers) actually fires the
handler - which happens whenever Wazuh's SSO dependency chain
(Keycloak, OpenLDAP, etc.) is deployed in the same play - the handler
silently targets that other role's directory instead of Wazuh's own.
Confirmed on a live CI run: compose up only ever created openresty's
containers, never any wazuh_* container, despite Wazuh's own
compose.yml.j2 rendering correctly beforehand.

This is a general, platform-wide hazard (any set_fact-identity role
downstream of a deferred shared-handler flush is exposed the same
way), not something fixable from inside this role alone - the proper
fix belongs in sys-svc-compose itself, as its own separate change.

This adds an explicit meta: flush_handlers immediately after the last
notify: compose-up task, before vm.max_map_count or the front-proxy
include - closing the vulnerability window entirely from Wazuh's own
task file: application_id is still guaranteed correct at that point,
since the render task immediately prior already required it to be
correct to write to the right path. Nothing after this point in
00_core.yml depends on the compose stack already being up, so the
earlier flush is semantically safe.

Verified via a repro mirroring the exact scenario (notifier role with
an early flush, then a dependency role doing set_fact: application_id)
using real ansible-playbook: the early flush consumes the notification
before the later role's set_fact can run, confirming the fix closes
the window.
2026-10-06 05:15:16 +00:00
Prageeth Panicker 5f7507cafd fix(web-app-wazuh): add until: to the indexer readiness check to avoid uri_retry's nested double-loop
plugins/action/uri_retry.py only bypasses its own internal retry loop
when until: is present on the task - but Ansible core's own retry
loop activates on retries: alone, independent of until:
(ansible/executor/task_executor.py:606-609). The 'Wait for Wazuh
indexer to answer HTTPS requests' task had retries: 60 with no
until:, so both loops fired: core's outer loop invoked the plugin
fresh on each of its own 61 attempts, and the plugin's own inner loop
ran its full 61-attempt cycle every time - up to 61x61 = 3,721 HTTP
requests instead of the intended 61, silently multiplying an
intended ~5-minute patience window into hours with zero log
visibility into the inner loop. This is what was actually consuming
the entire CI job timeout on debian/fedora (rc=124), not a genuine
indexer slow-boot or a resource-contention issue.

Added register: wazuh_indexer_ready + until: wazuh_indexer_ready is
succeeded, matching the existing until: <var> is succeeded idiom
already used elsewhere in the repo (svc-db-mariadb, svc-db-postgres).
This makes uri_retry delegate entirely to Ansible core's single retry
loop, as the plugin was actually designed to do.

Verified against a real HTTP server counting actual requests: 16
requests without the fix (exactly (retries+1)^2 = 4^2), 4 requests
with it (exactly retries+1) - both matching the theorized mechanism
precisely. Confirmed the role's only other uri_retry usage already
has until: and is unaffected.
2026-10-06 05:15:15 +00:00
Prageeth Panicker bc6d28dc31 fix(web-app-wazuh): load sys-stk-backend before any notify: compose-up
Ansible validates a notified handler name against the play's handler
registry at the moment a task runs, not at flush time. Handler
registration here is play-global and execution-order-dependent (the
whole task graph is dynamic include_role, no static roles: list), so
compose-up (owned by sys-svc-compose, loaded transitively via
sys-stk-backend) only exists once something in the play has actually
included it.

00_core.yml's four notify: compose-up tasks ran before its own
include_role: name: sys-stk-backend, so on any host where nothing else
pre-loads the handler, the first notify hard-fails: 'The requested
handler compose-up was not found...'. This was masked in every prior
live-deploy verification because Keycloak/OpenLDAP (this role's own
run_after dependencies) are themselves compose-based and register the
handler first when deployed on the same host - but the per-role CI
matrix runs Wazuh standalone, with nothing to mask it.

Verified via a minimal two-role reproduction outside the project tree:
the exact failure reproduces with the original ordering and clears
with the fix, using real ansible-playbook, not just code inspection.

Moved the sys-stk-backend include immediately after the once-flag
guard, before all four notify-bearing tasks.
2026-10-06 05:15:15 +00:00
Prageeth Panicker 885de8e4a6 fix(web-app-wazuh): resolve platform-drift lint/integration failures from the 900-commit main sync
Seven real, branch-caused failures surfaced after rebasing onto main
(v14.0.0, ~900 commits):

- opensearch_dashboards_yml volume: type: config -> type: secret
  (renders a live OIDC client secret; was world-readable at 0444 in a
  volume type the platform treats as non-sensitive, same fix pattern
  as web-app-gitlab's rails_secrets_yml)
- meta/networks.yml: local.subnet collided with web-app-litellm
- meta/services.yml: indexer/console ports collided with
  svc-ai-litellm and web-app-openclaw (both added during the gap)
- compose.yml.j2: healthcheck interval/timeout/start_period now go
  through the SPOT lookup instead of hardcoded values
- README.md: regenerated Quick Setup section, fixed credits link
  formatting
- docs/requirements/035-mcp-proxy-expansion.md: added web-app-wazuh
  to the adapter_candidate list (has a real, currently-unpublished
  API surface - manager :55000, indexer :9200 - not yet evaluated
  for an MCP adapter, same bucket web-app-checkmk/prometheus sat in
  before promotion)

Two regressions caught by re-verification and fixed in the same pass:
meta/services.yml briefly reached into a role var directly (fixed to
use the lookup('config', ...) pattern already used elsewhere), and the
credits-link fix dropped required bold markdown.

Remaining test failures after this fix are confirmed pre-existing and
unrelated: svc-net-tor's nftables guard rule (kernel EOPNOTSUPP), an
INFINITO_SWARM_STEP_TIMEOUT_MINUTES Makefile/default.env drift, and a
CI chunk-budget drift.
2026-10-06 05:15:14 +00:00
Prageeth Panicker b72c35129c feat(web-app-wazuh): make Wazuh reachable over Tor (dual-stack clearnet + onion)
Registers Wazuh's onion vhost with the front proxy and makes OIDC login
work correctly on either domain, following up on Kevin's request to
integrate this into the PR so CI can actually verify it.

- tasks/00_core.yml registers a second, guarded front-proxy include for
  the onion domain (WAZUH_DASHBOARD_ONION_DOMAIN | length > 0), using
  the same swarm-mode 'dashboard' compose-service-key fix already
  applied to the clearnet include.
- The dashboard's OIDC redirect URL is now derived per request
  (opensearch_security.openid.trust_dynamic_headers, driven by
  X-Forwarded-Host) instead of a single static base_redirect_url that
  could only ever match one of the two domains. Requires this role's
  own templates/proxy.conf.j2 (forked from sys-svc-proxy's
  basic.conf.j2) since the shared vhost template doesn't forward that
  header.
- Restores WAZUH_DASHBOARD_ONION_DOMAIN in vars/main.yml, which had
  been dropped during an earlier commit-splitting cleanup in this same
  branch's history; removes the now-unused WAZUH_DASHBOARD_BASE_URL.

Trimmed on rebuild: the roles/sys-front-tls/ hunks are dropped; they
served only the dual-stack attempt.

Verification status: make lint-ansible / test-lint / test-unit-python
all pass. Not yet exercised against a live svc-net-tor deployment or
real CI onion-mode run - that's the actual verification this commit
unblocks, per Kevin's note that CI can't confirm the implementation
works while this sits uncommitted.
2026-10-06 05:15:14 +00:00
Prageeth Panicker 539561e991 fix(web-app-wazuh): correct comment placement for test_comments_valid.py 2026-10-06 05:15:14 +00:00
Prageeth Panicker e021600993 fix(web-app-wazuh): use the compose service key, not the meta entity key, for swarm proxy DNS
sys-stk-front-proxy's swarm branch resolves the upstream as
<entity>_<service_key>:<port>, and Docker Swarm assigns service DNS
aliases from the actual compose.yml.j2 service key - a Docker-level
naming rule independent of any Ansible meta/services.yml key. The
dashboard entity's meta/services.yml key is deliberately 'console'
(compose.yml.j2's service_name comment: avoids colliding with the
platform's own unrelated web-app-dashboard tile-integration bond), but
its compose service key stayed 'dashboard' by the same deliberate
design. The swarm-mode front-proxy include was passing 'console' as
webserver_proxy_service_key, producing a syntactically valid but
nonexistent DNS name (wazuh_console) - permanent NXDOMAIN, 502 with
zero variation, confirmed against real CI retry logs (three independent
~650s retry windows, never once succeeding).

The earlier swarm-proxy fix (d2142e8f9) verified resolve_upstream()
produced a well-formed string, but never cross-checked it against what
compose.yml.j2 actually registers with Docker - the one field where
Wazuh's entity-key/compose-key split (unique to this role; bluesky and
other precedents have no such split) actually matters.
2026-10-06 05:15:13 +00:00
Prageeth Panicker aa635e8ec4 fix(test-e2e-playwright,web-app-wazuh): move WAIT_RETRIES/DELAY to a lowercase, overridable default
TEST_E2E_PLAYWRIGHT_WAIT_RETRIES/_DELAY being redefined in web-app-wazuh's
vars/main.yml violated test_uppercase_constants_unique.py - ALL-CAPS
top-level constants must be defined exactly once, project-wide,
regardless of Ansible's include_vars runtime precedence (which does make
the override work correctly at runtime, just not in a way this lint rule
permits).

Follows the existing test_e2e_playwright_run_timeout /
TEST_E2E_PLAYWRIGHT_RUN_TIMEOUT_EFFECTIVE precedent already in this role:
moved wait_retries/wait_delay to lowercase, overridable defaults in
test-e2e-playwright/defaults/main.yml, updated 02_run_one.yml to read the
lowercase names directly. Wazuh's vars/main.yml now sets the lowercase
override (120/5) instead of shadowing the ALL-CAPS constant.
2026-10-06 05:15:13 +00:00
Prageeth Panicker b8dfda0e06 fix(web-app-wazuh): condense the readiness-wait override comment to one line
test-lint's test_comments_valid.py requires a single-line doc comment
for vars/*.yml entries. The explanatory comment above
TEST_E2E_PLAYWRIGHT_WAIT_RETRIES/_DELAY was 10 lines - condensed to one,
keeping the essential facts.
2026-10-06 05:15:12 +00:00
Prageeth Panicker 310fd0a93c fix(web-app-wazuh): de-duplicate Exception comments; raise CI readiness-wait budget for swarm
Five Exception:-labeled comments in vars/main.yml restated trip-wires
already documented at their true origin elsewhere (meta/services.yml's
console-vs-dashboard naming, tasks/00_core.yml's DinD sysctl guard,
plugins/filter/bcrypt_hash.py's passlib writeup, docs/contributing/
design/iam/rbac.md's rbac_group_path rules). Per review feedback,
Exception: is reserved for the one true origin, not every reference to
it - condensed each to a single-line plain doc comment pointing back.

Separately: CI's shared test-e2e-playwright readiness probe defaults to
a ~150s budget for every app. Wazuh's own indexer healthcheck already
declares a 390s worst-case boot ceiling, and swarm mode has no
depends_on/service_healthy gating, so the dashboard races a
still-booting indexer with no shield. Raised
TEST_E2E_PLAYWRIGHT_WAIT_RETRIES/_DELAY to 120/5s (600s), the first
per-role use of this override.
2026-10-06 05:15:12 +00:00
Prageeth Panicker 3ebb076bc2 fix(web-app-wazuh): copy static entrypoint scripts to the instance dir for swarm
meta/volumes.yml's config-mount source: for certs-entrypoint.sh and
indexer-entrypoint.sh resolved via abs_role_path_by_application_id - a
controller-local checkout path. docker stack deploy runs delegate_to:
STACK_HOST (roles/sys-svc-compose/handlers/swarm.yml), so under swarm
mode that path doesn't exist on the remote host, and docker stack
deploy failed with 'no such file or directory' once the earlier
healthcheck himBHsescaping fix let it get that far.

Mirrors the existing 'Copy static Wazuh indexer roles.yml' pattern
already in this file: a new copy task ships both static, non-templated
scripts to WAZUH_INSTANCE_DIR on the actual deploy target, gated on
IS_STACK_HOST, before docker stack deploy/config ever runs. volumes.yml
now points source: at that instance-dir path instead.

Verified on a live swarm cluster (make swarm-zombie app=web-app-wazuh):
the copy task ran and succeeded, and the full stack came up healthy
(manager, indexer, dashboard all Up; certs_generator exited 0 as
expected for a one-shot init container; front proxy served a real
301 redirect through OpenResty).
2026-10-06 05:15:12 +00:00
Prageeth Panicker 9af84948f5 fix(web-app-wazuh): escape literal $ in indexer healthcheck for docker stack config
The healthcheck test regex ended with an unescaped $ ('^(200|401)$'),
which docker compose config tolerates silently but docker stack config
(swarm mode's stricter validator) rejects outright: 'invalid
interpolation format ... you may need to escape any $ with another $'.
Escaped to $$. Verified locally: docker stack config now resolves the
correct literal ^(200|401)$ regex. Confirmed via the actual PR CI run
(#414, 33759579296) that this explains all 5 swarm-mode failures
(debian, ubuntu x2, fedora), regardless of TLS mode - manager/dashboard
have no healthchecks, and no other $-ending pattern exists elsewhere
in the role's templates.
2026-10-06 05:15:11 +00:00
Prageeth Panicker e6d073c230 fix(web-app-wazuh): resolve swarm-mode front-proxy upstream for the console entity
sys-stk-front-proxy's swarm branch (resolve_upstream(), utils/networks/proxy.py)
derives the upstream port from services.<entity>.ports.internal.<kind>, where
<entity> is the bare holder derived from application_id ('wazuh'). Wazuh's
'wazuh' entity carries no ports (manager/indexer/console split the role), so
swarm mode hard-failed with 'needs services.wazuh.ports.internal.http (or
internal_port=)' - a gap invisible in compose mode, which only reads http_port.

web-app-bluesky hits the identical structural gap and works around it by
passing webserver_proxy_service_key/proxy_internal_port explicitly on every
front-proxy include, pointed at the real sub-entity. Applied the same pattern
here, pointed at 'console' (the entity that owns ports.internal.http: 5601).

Verified directly against utils.networks.proxy.resolve_upstream() with
Wazuh's real port config: the old call site reproduces the exact reported
CI error, the new call site resolves to wazuh_console:5601, and compose mode
is unaffected.
2026-10-06 05:15:11 +00:00
Prageeth Panicker 87c8199012 feat(web-app-wazuh): add Wazuh SIEM role with OIDC/LDAP RBAC
Add single-node Wazuh stack (manager, indexer, dashboard) as a new
Ansible role, integrated with the platform's Keycloak realm via native
OIDC and secondary LDAP authorization, with three-tier RBAC.

- Pins wazuh/wazuh-{manager,indexer,dashboard}:4.14.6 and
  wazuh-certs-generator:0.0.4 (one-shot cert bootstrap job)
- No external database: wazuh.indexer (OpenSearch) is self-contained
- Auth: native OIDC against Keycloak, working end-to-end after two
  infra fixes (JVM cacerts trust for the indexer's outbound calls to
  Keycloak, front-proxy vhost wiring)
- LDAP wired as a secondary, authentication-independent authorization
  backend (group-based backend_roles enrichment only)
- RBAC: three roles (administrator, security-analyst, readonly-auditor)
  via the platform's standard meta/rbac.yml + rbac_group_path pipeline
- Documents a genuine upstream Wazuh bug: wz-home as the default
  landing route throws an uncaught client exception for any
  non-all_access role; default route moved to OpenSearch Dashboards'
  own /app/home

Addressed two full rounds of review feedback (Kevin, Alejandro):
WEB_PROTOCOL usage, service-account naming, comment cleanup, shared
Keycloak-admin-helper extraction, a real TOCTOU race in RBAC test
setup, a Mermaid auth-flow diagram, meta/services.yml placement for
the certs-generator, CA-trust-path SPOT usage, CSP tightening
(including a genuine worker-src: blob: requirement found via live
testing), and a loud (non-silent) dev-bucket fallback warning.

Rebased onto main after a 3-month gap; brought the role in line with
~30 platform-convention changes introduced in that window (swarm
compose-template rules, Tor/onion contract, Playwright timeout/goto
wrappers, file layout, task numbering, comment policy, and more).

Live-deploy verification (9 iterations) found and fixed 6 further
real bugs invisible to lint/unit tests alone:
- credentials.* / meta/schema.yml -> secrets.credentials.* /
  meta/secrets.yml (another platform-drift casualty)
- notify: "compose up" -> "compose-up" (day-one handler-name typo)
- local.subnet collision with web-app-mailu's /24
- missing primary: false alongside tor.exclusive: false, which let
  the onion domain shadow the clearnet vhost entirely
- a second front-proxy include for the onion domain, later reverted
  (see below)
- shared sys-stk-front-proxy/sys-front-tls TLS-lookup keying bug
  (app-id-keyed vs. domain-keyed), which silently applied TLS to
  Wazuh's onion vhost

The last two are related: enabling genuine dual-stack (clearnet +
onion) reachability for tor.exclusive: false surfaced a real bug in
two shared platform roles. That fix was verified safe against all 103
apps currently in the repo, but is deliberately NOT included here -
shared-role changes deserve their own PR and review, not to ride in
on a single app's feature branch. Wazuh's second front-proxy include
was reverted accordingly; the resulting onion-reachability gap is
documented in the README as a known, platform-scoped limitation.

make test: 5508 passed, 3 failed (all three trace to untracked local
scratch files - Dockerfile.bak, scripts/lab-*.sh - not present in any
CI checkout).
2026-10-06 05:15:00 +00:00
kevinveenbirkenbach be800e8741 Merge pull request #803 from infinito-nexus/fix/sys-ctl-hlth-msmtp/empty-reply-is-transient/790
fix(mail): retry a connection the mail server drops before its greeting
2026-10-06 02:28:06 +02:00
kevinveenbirkenbach 88418016ba Merge pull request #788 from kevinveenbirkenbach/fix/ci-fork-image-wait/784
fix(ci): keep the fork image wait alive and let it find its privileged run
2026-10-06 01:36:54 +02:00
kevinveenbirkenbachandClaude Opus 5.5 89b95d751c fix(update): stop bumping pins of eol roles
The update bot opened a version PR for web-app-jira (#821) although the role is end of life: none of the updaters looked at the lifecycle. utils.update.base.is_maintained now answers that question once, and the collectors for image versions, declared version sources, pip pins, repository refs and the addon check skip a role whose lifecycle is eol.

The lint that requires every semver pin to be watched shares that scope, otherwise it would report the pins of the eol roles as unwatched. Every other stage, deprecated included, stays in the update scope.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-06 01:09:10 +02:00
kevinveenbirkenbach fb32756d4f Merge pull request #789 from infinito-nexus/update/onlyoffice-nextcloud-connector
feat(update): bump pinned versions and addons from declared sources
2026-10-05 21:17:30 +02:00
kevinveenbirkenbachandClaude Opus 5.5 517d40484e test(mail): select autoescape for the rendered alarm script
The unit test of the alarm script built its Jinja environment with
autoescape switched off, which code scanning reports as a possible XSS
sink and fails the PR on. The template is a shell script, so
select_autoescape() leaves it unescaped exactly as before, and the finding
no longer applies.

Refs #790

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 17:19:56 +02:00
kevinveenbirkenbach 787830fbde Merge remote-tracking branch 'origin/main' into fix/sys-ctl-hlth-msmtp/empty-reply-is-transient/790 2026-10-05 13:59:56 +02:00
kevinveenbirkenbach a811f5364e Merge remote-tracking branch 'origin/main' into update/onlyoffice-nextcloud-connector 2026-10-05 13:59:42 +02:00
kevinveenbirkenbach 1c440eb908 Merge remote-tracking branch 'origin/main' into fix/ci-fork-image-wait/784 2026-10-05 13:59:30 +02:00
kevinveenbirkenbach 6a322dab49 Merge pull request #801 from infinito-nexus/update/docker-image-versions-web-app-stalwart-20261005-0d4b285
update(images): update Docker image versions (web-app-stalwart)
2026-10-05 13:57:43 +02:00
kevinveenbirkenbachandClaude Opus 5.5 4c955d080f feat(update): fail a declared update source whose pin is not a semver
The version-source resolver orders upstream versions by semver. A pin that
is not one, such as `latest` or a branch name, has no depth, so no candidate
ever matches it and the declaration never moves anything. Nothing reported
that: the watched-pins lint only looks at values that already are a semver.

test_version_keys now fails on an `update:` block whose pinned key does not
hold a semver. A monitored addon the resolver does not read is held to the
same rule as soon as it pins a `version`, because the catalog check skips a
non-semver pin just as silently. An addon without a `version` keeps tracking
the app default and is left alone.

The Stalwart README no longer asks for `webui_version` to be bumped by hand
next to the image tag. Its `update:` block names the upstream tags, the
server itself follows `releases/latest` of the bundle, and the resolver
plans v1.0.5 to v1.0.11 for it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 12:48:22 +02:00
kevinveenbirkenbach 0ebfc9e58b Merge remote-tracking branch 'origin/main' into update/onlyoffice-nextcloud-connector 2026-10-05 12:07:34 +02:00
kevinveenbirkenbachandClaude Opus 5.5 7c7b895ae9 fix(ci): match the privileged run of a fork PR by its number as well
The wait job picks the newest privileged run on the head commit of the
PR. Two fork PRs that share a head repository, branch and commit but
target different bases each start such a run, and the commit alone cannot
tell them apart. A failed run of the other PR would then end the wait of
this one while its images are still being built.

The run name of the workflow carries the PR number, so the match now
requires it next to the head commit. A run without that name matches
nothing, and the wait does what it does whenever no run is found: it
keeps polling for the images until they exist or the wait times out.

Raised by the CodeRabbit review of this PR.

Refs #784

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 12:07:14 +02:00
kevinveenbirkenbach 19cd3ceb41 Merge remote-tracking branch 'origin/main' into fix/sys-ctl-hlth-msmtp/empty-reply-is-transient/790 2026-10-05 11:45:00 +02:00
kevinveenbirkenbach 1d03c001ea Merge remote-tracking branch 'origin/main' into fix/sys-ctl-hlth-msmtp/empty-reply-is-transient/790 2026-10-05 11:45:00 +02:00
kevinveenbirkenbachandClaude Opus 5.5 b37cf2e9fe fix(mail): retry a connection the mail server drops before its greeting
Stalwart closes a connection that exceeds its per-IP connection budget
without a greeting. msmtp reports that as "the server sent an empty reply"
with exit 76, and the mail health check treated exit 76 as permanent. One
such drop, in a second in which Alertmanager flushed its notifications,
failed a deploy although the same path accepted a mail one second later.

The health check now retries exit 76 when msmtp names the empty reply,
within the ten attempts it already gives to exit 69, 75 and 124. Every
other protocol error still ends the check at once.

The alarm mail was sent once, so the alarm about a failed unit was lost to
the same drop. It now makes three attempts ten seconds apart for the
transient cases of the health check and still reports the last error.

The limit on the server is left alone. Exempting the node's own senders by
source address would also exempt Tor clients and, in swarm, every external
client. That question is tracked in #793.

Closes #790

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 11:44:58 +02:00
kevinveenbirkenbach 22129c2d5a Merge remote-tracking branch 'origin/main' into fix/ci-fork-image-wait/784 2026-10-05 11:18:43 +02:00
kevinveenbirkenbach b0588b8309 Merge pull request #796 from infinito-nexus/update/docker-image-versions-web-app-socialhome-20261005-f6d0a70
update(images): update Docker image versions (web-app-socialhome)
2026-10-05 11:00:11 +02:00
kevinveenbirkenbach 5e7fbd0d7d Merge pull request #775 from infinito-nexus/update/docker-image-versions-web-svc-collabora-20261002-09740fb
update(images): update Docker image versions (web-svc-collabora)
2026-10-05 10:58:01 +02:00
infinito-nexus-updater[bot] 3c23a5dbf7 update(images): update Docker image versions (web-app-stalwart) 2026-10-05 08:56:11 +00:00
kevinveenbirkenbach 9dc86c19fe Merge pull request #783 from kevinveenbirkenbach/fix/web-app-mobilizon/postgres-18-migrations/779
fix(web-app-mobilizon): patch four migrations for PostgreSQL 18
2026-10-05 10:55:42 +02:00
kevinveenbirkenbach 4971fd2610 Merge remote-tracking branch 'origin/main' into fix/ci-fork-image-wait/784 2026-10-05 10:43:30 +02:00
kevinveenbirkenbach df4ba6a2f6 Merge remote-tracking branch 'origin/main' into update/onlyoffice-nextcloud-connector 2026-10-05 10:43:21 +02:00
kevinveenbirkenbachandClaude Opus 5 9be786a23d fix(lint): repair the npm manifests a dependabot merge left unparseable
Merging the stylelint 17.16.0 and the globals 17.13.0 bump dropped the comma after stylelint and left a trailing one after globals, in package.json and package-lock.json alike. Neither file was JSON any more, so npm could not read the lock and npm ci refused with EUSAGE: 'can only install with an existing package-lock.json'. make lint died in install-lint before a single linter ran, which is the whole lint job on every branch that carries main.

The two entries move into the alphabetical order npm writes them in and the commas follow. No version changes: the lock already resolved stylelint 17.16.0 and globals 17.13.0, only the devDependencies block was malformed. npm ci --dry-run now resolves the tree instead of refusing it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-10-05 03:38:19 +02:00
kevinveenbirkenbach 8e9fa797fe Merge remote-tracking branch 'origin/main' into fix/ci-fork-image-wait/784 2026-10-05 03:13:43 +02:00
kevinveenbirkenbach a306b225c3 Merge remote-tracking branch 'origin/main' into update/onlyoffice-nextcloud-connector 2026-10-05 03:13:35 +02:00
kevinveenbirkenbach fe6c1a9b37 Merge pull request #797 from infinito-nexus/dependabot/npm_and_yarn/stylelint-17.16.0
chore(deps-dev): bump stylelint from 17.15.0 to 17.16.0
2026-10-05 03:11:52 +02:00
kevinveenbirkenbach 3419acffae Merge branch 'main' into dependabot/npm_and_yarn/stylelint-17.16.0 2026-10-05 03:11:23 +02:00
kevinveenbirkenbach b5c157b232 Merge pull request #798 from infinito-nexus/dependabot/npm_and_yarn/globals-17.13.0
chore(deps-dev): bump globals from 17.12.0 to 17.13.0
2026-10-05 03:10:20 +02:00
kevinveenbirkenbach 87d333fe82 Merge pull request #799 from infinito-nexus/dependabot/pip/ruff-0.16.10
chore(deps-dev): bump ruff from 0.16.9 to 0.16.10
2026-10-05 03:10:05 +02:00