Commit Graph
16853 Commits
Author SHA1 Message Date
kevinveenbirkenbach 65bd855e24 Merge branch 'fix/prod/galaxyserver-branding-stall' into feature/store-i18n 2026-10-31 13:27:36 +01:00
kevinveenbirkenbach 394d58db85 Merge branch 'fix/prod/echoserver-ldap-users' into feature/store-i18n 2026-10-31 13:27:32 +01:00
kevinveenbirkenbach bb8c5236f7 Merge remote-tracking branch 'origin/main' into feature/store-i18n 2026-10-31 13:27:13 +01:00
kevinveenbirkenbachandClaude Opus 5.5 49387850dc fix(deploy): check the deploy extra before running ansible-playbook
The dedicated deploy launched whatever ansible-playbook PATH found. A stale pkgmgr venv without Pillow crashed the galaxyserver deploy after 4h23m at the first branding task. The runner now verifies every distribution of the pyproject deploy extra in the running interpreter before make setup, exits naming the missing ones with the install command, and runs the ansible-playbook next to that interpreter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 11:56:54 +01:00
kevinveenbirkenbachandClaude Opus 5.5 299aa8e707 fix(svc-db-openldap): name the user whose record lacks LDAP entry fields
A user key that no role declares, such as an inventory leftover, gets no username, firstname, lastname, uid or gid derived. openldap_user_entries then crashed with a bare KeyError 'username'. The filter now raises an AnsibleFilterError that names the user and the missing fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 11:56:12 +01:00
kevinveenbirkenbach 9008b4435e Merge pull request #1321 from infinito-nexus/update/docker-image-versions-web-svc-logout-20261031-b634bf4
update(images): update Docker image versions (web-svc-logout)
2026-10-31 10:39:45 +01:00
infinito-nexus-updater[bot] c471346ea1 update(images): update Docker image versions (web-svc-logout) 2026-10-31 09:14:06 +00:00
kevinveenbirkenbach 0a4fd11e7e Merge pull request #1319 from infinito-nexus/fix/svc-prx-openresty/worker-connections/1300
fix(svc-prx-openresty): size worker_connections independently of pids_limit
2026-10-31 10:09:54 +01:00
kevinveenbirkenbach 2f2b004b1c Merge branch 'triage/nextcloud0-conductor-design' into feature/store-i18n 2026-10-31 10:05:41 +01:00
kevinveenbirkenbachandClaude Opus 5.5 815714592c fix(web-svc-logout): keep each conductor's sweep on its own network
CI run 41147980556 Nextcloud#0 failed both conductor design specs on a
multi-network node. e0179a0893 handed every conductor the other
network's conductor in LOGOUT_SIBLINGS. With that list set,
universal-logout v1.5.0 hides #iframe-warning on the stand-alone page
("'#iframe-warning' matches nothing visible"), and v1.5.1 fetches the
sibling after its sweep, which the conductor's per-network CSP blocks
("Connecting to 'https://logout.main.infinito.test/' violates ...
connect-src 'self' *.<onion>"). Requirement 037 limits each vhost's CSP
to its own network, so the browser hand-off could never complete in
either direction; its only effects were the two red specs.

Drop the LOGOUT_SIBLINGS wiring and its README bullet, so the compose
template and README match their state before e0179a0893. Each conductor
still logs out of every domain of its own network; ending the sessions
of the other network belongs on the server side, not in the browser.
The test now asserts that no conductor on a single-network, tor-only or
multi-network node is handed a conductor of another network.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 10:05:29 +01:00
kevinveenbirkenbach e3e99f9fd5 Merge branch 'fix/svc-opt-swapfile/keep-active-swapfile' into feature/store-i18n 2026-10-31 10:03:27 +01:00
kevinveenbirkenbachandClaude Opus 5.5 0590104ce2 fix(svc-opt-swapfile): keep an active swapfile that already meets the requested size
A production redeploy of echoserver hung at the swap-forge task and the
host stopped answering SSH. swap-forge v1.0.1 recreates the swapfile
whenever its size differs from the requested MiB by any amount, starting
with swapoff on the live file. The request is the host's MemTotal, which
drifts by a few MiB across kernels, so a routine deploy paged the whole
swap back in, charged it to the containers' memory cgroups and starved
sshd until the OOM killer took swapoff.

Read the active swap files with swapon before swap-forge runs and skip
it when an active file is within 5 % of the requested size, reporting
the kept size against the request. The sizing formula is unchanged, so
no host is forced into a one-time recreate; a deliberate resize beyond
the tolerance still reaches swap-forge.

The unit test resolves the real vars through Ansible's Templar for MiB
drift both ways, no swap, zram and partitions, a halved size, an exact
pin, a lowercase unit and an escaped file name, and shows that the exact
MiB comparison swap-forge uses misses the drift.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 10:03:15 +01:00
kevinveenbirkenbachandClaude Opus 5.5 79e88c5ea4 fix(mirror): refresh a mirrored tag that upstream re-pushed
Fork CI run 41147980556 pgAdmin#0 failed in sys-ctl-hlth-runtime with
"stalwart_webmail: PHP 8.4.26 is below the security floor 8.4.27".
The deploy ran the fork's GHCR mirror of roundcube/roundcubemail:1.7.5-
apache, copied on 10-19 with PHP 8.4.26, while upstream re-pushed the
same tag on 10-27 with PHP 8.4.27. Branch CI runs the sync with
--only-missing, which skipped the tag because it existed ("destination
exists, skipping") without comparing digests, and the full refresh only
runs on the fork's default branch, which still pins 1.7.4.

- utils/docker/registry.py: manifest_digest() reads the
  Docker-Content-Digest of a reference with a HEAD request, which does
  not count against Docker Hub's pull allowance.
- GHCRProvider.is_stale() reports a mirrored tag as stale only when both
  registries answer with a digest and the two differ.
- Under --only-missing an existing tag is re-copied when it is stale; a
  failed re-copy is reported on stderr with the image and keeps the
  existing copy, so one refresh cannot block every deploy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 09:50:14 +01:00
kevinveenbirkenbach c37190495b Merge remote-tracking branch 'origin/main' into fix/svc-prx-openresty/worker-connections/1300 2026-10-31 03:00:09 +01:00
kevinveenbirkenbachandClaude Opus 5.5 f52da1c875 fix(svc-prx-openresty): size worker_connections independently of pids_limit
The shared proxy's nginx.conf derived worker_connections from the
openresty container's pids_limit. pids_limit caps processes and threads,
worker_connections caps simultaneous sockets per worker (client and
upstream), so with pids_limit 256 and one worker the whole host's proxy
held about 256 sockets, roughly 128 proxied requests in flight across
every vhost. Raising pids_limit to buy connections would loosen the
fork-bomb guard.

svc-prx-openresty now declares services.openresty.worker_connections
(4096 per worker, the common nginx production range, enough for several
chunk-heavy apps such as OpenWebUI at ~150-170 requests per page load).
WEBSERVER_PROXY_WORKER_CONNECTIONS reads it through lookup('config'),
without a default, so a missing key fails loudly. pids_limit stays 256.

WEBSERVER_PROXY_WORKER_RLIMIT_NOFILE is derived as 2x worker_connections
(8192), one descriptor for each client and upstream socket of a proxied
request, and nginx.conf renders it as worker_rlimit_nofile. The openresty
container pins its nofile ulimit (soft and hard) to the same value:
workers call setrlimit as root without CAP_SYS_RESOURCE, so they can only
lower the hard limit, and the inherited hard limit depends on the host
daemon (Docker >= 25 defaults to 1024:524288, DiD nests whatever the
outer container has). An explicit ulimit makes the rlimit succeed on
every host instead of logging a setrlimit alert.

The unit test pins worker_connections 4096, worker_rlimit_nofile 8192 and
the container ulimit, and fails when worker_connections follows
pids_limit again.

Live proof (compose deploy of web-svc-html, both plays failed=0): the
deployed nginx.conf renders worker_rlimit_nofile 8192 and
worker_connections 4096; openresty's master, worker and cache manager
run with "Max open files 8192 8192"; the openresty log carries no
setrlimit or "worker_connections are not enough" line.

Closes #1300

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 03:00:03 +01:00
kevinveenbirkenbach 8127d61018 Merge remote-tracking branch 'origin/main' into feature/store-i18n 2026-10-31 02:22:17 +01:00
kevinveenbirkenbach 73b0eceed8 Merge pull request #1315 from infinito-nexus/update/docker-image-versions-web-app-pihole-20261031-d252fb3
update(images): update Docker image versions (web-app-pihole)
2026-10-31 02:20:41 +01:00
kevinveenbirkenbach ee503bbbeb Merge pull request #1317 from infinito-nexus/fix/tests/worker-limits-carrier-isolation
test(lookup): restore sys.modules after loading the sso plugins fresh
2026-10-31 02:20:16 +01:00
kevinveenbirkenbach fe04755517 Merge pull request #1316 from infinito-nexus/update/docker-image-versions-web-svc-logout-20261031-63df524
update(images): update Docker image versions (web-svc-logout)
2026-10-31 02:20:03 +01:00
kevinveenbirkenbachandClaude Opus 5.5 9aa56b71e9 test(lookup): restore sys.modules after loading the sso plugins fresh
test_sso.py, test_sso_oidc_plugin.py and test_sso_proxy_consumers.py
evict utils, utils.cache, utils.cache.applications and the roles
packages from sys.modules to import their plugin against fresh modules,
and never put the originals back. Ansible's plugin loader keeps the
applications lookup it loaded earlier in sys.modules, so that lookup
stayed bound to the evicted utils.cache.applications, whose
_MERGED_APPLICATIONS_CACHE utils.cache._reset_cache_for_tests() no
longer reaches.

On main this turned test_webserver_worker_limits red whenever one xdist
worker ran a test that loads the applications lookup through Ansible,
then one of these sso tests, then the worker-limits test: the stale
cache served the cpus 0.5 payload of test_a_sub_cpu_proxy_still_runs_one_worker,
so the later methods rendered worker_processes 1 instead of 4 (main run
41139196554, Workspace centos and fedora, second make test on gw1).

_load_module now runs inside mock.patch.dict(sys.modules): the plugin
keeps the fresh modules it was built against, and sys.modules returns to
its prior state afterwards. This is the change store-i18n carries since
ec0fde6561, ported unchanged so both lines stay identical.

Evidence:
- Before: pytest -n 0 test_tor_ports.py test_sso_oidc_plugin.py
  test_webserver_worker_limits.py -> "3 failed, 33 passed", the CI
  failure set ('1' != '4' twice, worker_processes 1 vs 4).
- After: test_tor_ports.py, the four sso test files and
  test_webserver_worker_limits.py -> "68 passed".

(cherry picked from commit ec0fde6561)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 02:17:21 +01:00
infinito-nexus-updater[bot] 5fdb311936 update(images): update Docker image versions (web-svc-logout) 2026-10-31 01:17:20 +00:00
infinito-nexus-updater[bot] d526936660 update(images): update Docker image versions (web-app-pihole) 2026-10-31 01:17:15 +00:00
kevinveenbirkenbachandClaude Opus 5.5 dabbc23a59 fix(roles): declare the aliases and CSP whitelist defaults taiga and joomla lacked
The inventory validator compares host_vars keys against role defaults.
web-app-taiga declared no domains.aliases and web-app-joomla no
csp.whitelist, so a production inventory that keeps Taiga's old hosts
as aliases and lets Joomla load Google Fonts and frame EspoCRM failed
with "Missing default", although the deploy reads both keys for every
role (csp_filters reads csp.whitelist.<directive> with default []).
Declare them empty, as the other roles do; rendering is unchanged for
a host without an override.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 01:59:36 +01:00
kevinveenbirkenbach 5aab62c598 Merge branch 'main' into feature/store-i18n 2026-10-31 01:01:44 +01:00
kevinveenbirkenbachandClaude Opus 5.5 043d81f78e test(web-app-keycloak): stub the entity_name filter under its current name
main's admin allowlist test renders sys-svc-proxy's location/html.conf.j2,
which calls the entity_name Jinja filter. The test stubbed it as
get_entity_name, the name store-i18n retired when it registered the
filter as entity_name (plugins/filter/get/entity_name.py), so all eleven
cases failed with "No filter named 'entity_name'" after the main merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 00:54:06 +01:00
kevinveenbirkenbach 8ad0a0e434 Merge pull request #1314 from infinito-nexus/fix/web-app-shopware/php-8.3.36
fix(web-app-shopware): move PHP base to docker-base 8.3.36-caddy
2026-10-31 00:53:21 +01:00
kevinveenbirkenbachandClaude Opus 5.5 9829db9367 fix(sys-ctl-hlth-runtime): drop the committed Credits section and catalog the description
The main merge brought sys-ctl-hlth-runtime in with a hand-written
"## Credits" section, which the documentation build generates from
role metadata, and with a role description the core gettext catalogs
did not yet hold. test_managed_sections_not_committed,
test_role_readmes_are_conformant and test_i18n_catalogs failed on it.

Delete the section so the build re-emits it, and run
make i18n-extract domain=core, which adds the one untranslated
role:sys-ctl-hlth-runtime:description entry to every catalog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 00:50:17 +01:00
kevinveenbirkenbach f59484b710 Merge remote-tracking branch 'origin/main' into fix/web-app-shopware/php-8.3.36 2026-10-31 00:45:21 +01:00
kevinveenbirkenbachandClaude Opus 5.5 2348d48110 fix(web-app-shopware): move PHP base to docker-base 8.3.36-caddy
The bare ghcr.io/shopware/docker-base:8.3 tag is frozen. Its digest
sha256:14826eb9 is the same as 8.3.25, built 2025-09-05, and carries
PHP_VERSION=8.3.25. Upstream has published only flavoured tags since
8.3.26. 8.3.36-caddy (sha256:b1fdca6e, built 2026-10-30, also the
current 8.3-caddy) carries PHP_VERSION=8.3.36. It has the same
supervisord entrypoint, www-data user and exposed ports 8000/9000 as
the bare tag. That clears the 8.3.36 security floor that hlth-runtime
reports for shopware-web, -worker and -scheduler.

The flavoured tag needs two follow-ups:

- SHOPWARE_COMPOSER_PLATFORM_PHP drops the "-<flavor>" suffix before it
  pads major.minor. Without that, composer gets platform.php
  "8.3.36-caddy". It now renders 8.3.36, and 8.3 still renders 8.3.0.
- shopware/docker 6ae1717 ("feat: remove default env vars") removed
  SHOPWARE_ES_ENABLED=0, SHOPWARE_ES_INDEXING_ENABLED=0 and
  SHOPWARE_ES_INDEX_PREFIX= from the image. Shopware 6.7.13.0 reads
  them through %env()% with no container default, so env.j2 now sets
  the values the old image shipped. SHOPWARE_HTTP_DEFAULT_TTL keeps its
  7200 default from core services.xml. Nothing in Shopware reads
  DATABASE_PORT, and the role uses DATABASE_URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 00:45:19 +01:00
kevinveenbirkenbachandClaude Opus 5.5 0beb0f7b16 fix(eol): store mailu and fusiondirectory off as the EOL contract requires
main demoted web-app-mailu and web-app-fusiondirectory to lifecycle: eol
but kept their primaries enabled and opened the README banner with a
wording of its own. The store-i18n EOL contract (lifecycle.md) also
requires the literal enabled: false on the primary entity and a banner
opening with "> **End of life.**" that carries both the "neither
maintains nor tests" and the "at your own risk" clauses, so
test_eol_dependency_requires_eol_consumer, test_eol_readme_banner and
the README conformance lint failed after the main merge.

- mailu: drop the primary's bond (test_disabled_service_bond rejects a
  weight on an entry stored off) and store enabled: false; shared: true
  stays so disable= resolves and the loader order holds.
- fusiondirectory: store enabled: false with the playwright-service-flag
  marker a primary stored off needs.
- Both READMEs open with the contract banner; the vendor links and the
  Mailu to Stalwart migration notes stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 00:45:06 +01:00
kevinveenbirkenbachandClaude Opus 5.5 e1711a39c5 update(web-svc-logout): pin universal-logout v1.5.1
v1.5.1 adds the reachability probe before the hand-off to the next network's conductor: it fetches the sibling's origin no-cors and without credentials, bounded to 4 s, and stays on its own page when the browser cannot reach it, so a browser without Tor or one that blocks the plain-HTTP onion sibling no longer ends on an error page. With this pin the LOGOUT_SIBLINGS wiring and the Keycloak panel's handoff branch (e0179a0893) take effect. The tag is published by the release's CI/CD run; until then a deploy of web-svc-logout cannot pull it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 23:46:20 +01:00
kevinveenbirkenbach 3d92f5ba21 Merge remote-tracking branch 'origin/main' into feature/store-i18n
# Conflicts:
#	README.md
2026-10-30 23:39:25 +01:00
kevinveenbirkenbach 3504f17557 Merge remote-tracking branch 'origin/main' into feature/store-i18n
# Conflicts:
#	.github/workflows/call-test-deploy.yml
#	roles/sys-svc-compose/tasks/main.yml
#	roles/web-app-keycloak/TODO.md
#	utils/docker/registry.py
2026-10-30 23:36:38 +01:00
kevinveenbirkenbach ba4c06b943 Merge pull request #1309 from infinito-nexus/update/docker-image-versions-web-svc-logout-20261030-c8885e1
update(images): update Docker image versions (web-svc-logout)
2026-10-30 23:35:58 +01:00
infinito-nexus-updater[bot] e50dcf876c update(images): update Docker image versions (web-svc-logout) 2026-10-30 22:34:13 +00:00
kevinveenbirkenbach 2729a56125 Merge pull request #1308 from infinito-nexus/fix/web-app-fusiondirectory/lifecycle-eol
fix(web-app-fusiondirectory): set the role's lifecycle to eol
2026-10-30 23:33:44 +01:00
kevinveenbirkenbach 166da8f8d2 Merge branch 'feature/shared-stack-caches' into feature/store-i18n 2026-10-30 23:31:00 +01:00
kevinveenbirkenbach b17fc884ba Merge branch 'triage/cursor-deb-hold' into feature/store-i18n 2026-10-30 23:30:57 +01:00
kevinveenbirkenbach 9cff0fec82 Merge branch 'fix/dsk-blender/mcp-list-fails-loud' into feature/store-i18n 2026-10-30 23:30:55 +01:00
kevinveenbirkenbach 5d3f7f5a58 Merge branch 'fix/npm-globals/pin-versions' into feature/store-i18n 2026-10-30 23:30:52 +01:00
kevinveenbirkenbach 7d8feb6386 Merge branch 'fix/svc-ai-ollama/cache-probe-path' into feature/store-i18n 2026-10-30 23:30:50 +01:00
kevinveenbirkenbach 6f12dcc147 Merge remote-tracking branch 'origin/main' into fix/web-app-fusiondirectory/lifecycle-eol 2026-10-30 23:24:37 +01:00
kevinveenbirkenbachandClaude Opus 5.5 727cce33ec fix(web-app-fusiondirectory): set the role's lifecycle to eol
FusionDirectory's image runs PHP 7.4, which has been out of security
support since 2022, and upstream ships no PHP 8 build. The runtime
health check of #1265 therefore reports every deployment of it, and in
CI a red FusionDirectory job makes the matrix's fail-fast cancel every
other job of the run (seen on #1265's run 41101611445: one red job, 79
cancelled). There is nothing to fix on our side short of upstream
shipping a supported runtime.

- meta/services.yml: lifecycle beta -> eol. Default CI (tested envelope
  alpha..maintenance) no longer deploys the role, the updater and the
  image mirror skip it (mirrored image set 188 -> 187).
- README.md: end-of-life banner as lifecycle.md requires for eol: the
  project neither maintains nor tests the role, operators use it at
  their own risk, upstream FusionDirectory for support.
- Root README.md: make docs drops the role from the generated table of
  the tested lifecycle envelope.

Production deploys of the role keep running the runtime check, so an
operator who still deploys it sees the PHP 7.4 finding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 23:24:31 +01:00
kevinveenbirkenbach b97f38ca49 Merge pull request #1261 from infinito-nexus/fix/web-app-keycloak/admin-network-allowlist/1121
feat(web-app-keycloak): serve /admin only to declared source networks
2026-10-30 23:15:41 +01:00
kevinveenbirkenbach d95319c116 Merge pull request #1307 from infinito-nexus/fix/web-app-stalwart/swarm-smtp-listener
fix(storage): keep the NFS client off the ports the platform publishes
2026-10-30 23:09:32 +01:00
kevinveenbirkenbachandClaude Opus 5.5 a803ffbba6 fix(packages): treat a pinned deb as a minimum version
Cursor#0 (CI run 40979252521, debian host) installed the pinned cursor_3.27.6 deb on pass 1; its postinst registers Cursor's apt repo, so pass 2's dist-upgrade moved cursor to 3.27.22, and the plan's ansible.builtin.apt deb=<3.27.6> then failed with 'A later version is already installed': the apt module skips only an equal version and otherwise fails or, with allow_downgrade, downgrades. package_install now asks the target before such a call: dpkg-deb --field reads Package and Version from the checksum-verified deb, dpkg-query reads the fully installed version, and dpkg --compare-versions decides; at or above the pin the call is skipped with changed false, so the deploy-time upgrade may move vendor packages forward and the pin never pulls them back. Any query that cannot be read falls through to the apt install, which decides loudly. The dnf path already skips an older local rpm, so both families now behave alike.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 23:05:10 +01:00
kevinveenbirkenbach b0bacd072f Merge remote-tracking branch 'origin/main' into fix/web-app-stalwart/swarm-smtp-listener 2026-10-30 23:02:44 +01:00
kevinveenbirkenbachandClaude Opus 5.5 eb7056dafd fix(storage): keep the NFS client off the ports the platform publishes
Main CI run 40976399687, socialhome#0 (swarm, tor, centos): the CLI tests
of svc-net-tor (onion:25 "socks CONNECT failed with reply 0x01") and
web-app-stalwart (probe_mail relay: ConnectionRefusedError on port 25)
failed. dockerd on the manager had aborted the whole ingress program of
the mail stack:

  Failed to add ingress: failed to program ingress ports:
  failed to bind host port 0.0.0.0:993/tcp: address already in use

/proc/net/tcp named the squatter: 192.168.244.10:993 -> :2049, the
node's own NFS client. The mount carries no noresvport, so the kernel
drew a source port from the 665-1023 reserved window and landed on
imaps. None of 25/465/993/995/4190/8095 got a DNAT rule or a
docker-proxy listener while every other published port did, and
stalwart still reported healthy because its healthcheck runs inside the
container. 993 and 995 are the only published ports inside that window,
so this is luck of the draw on any NFS-backed swarm host that runs the
mail role.

mount_opts now emits noresvport. insecure on the kernel-flavor export is
the other half: kernel nfsd defaults to secure and answers a mount from
an unprivileged source port with EACCES. It reaches the kernel flavor
only; ganesha already accepts unprivileged clients.

What it costs: the next deploy of every existing NFS client sees a
pending opts change and remounts the shared state; a host-side job
holding that path at that instant fails loudly. A plain remount may keep
a running mount on its old reserved port until the next real mount.

Port of f46c4d0bab from feature/store-i18n, applied identically so the
later store-i18n -> main merge stays conflict-free.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 23:02:41 +01:00
kevinveenbirkenbach 8a19b024db Merge pull request #1265 from infinito-nexus/feature/sys-ctl-hlth-runtime/vulnerable-runtimes/1127
feat(sys-ctl-hlth-runtime): alert on EOL or unpatched PHP and missing PHP hardening
2026-10-30 22:45:25 +01:00
kevinveenbirkenbachandClaude Opus 5.5 34506554f7 fix(cache): download pacman packages per node and publish them into the shared cache
The shared pacman cache was the first writable CacheDir on every arch runner and lab node. Our arch image sets DisableSandbox, so libalpm downloads straight into that directory (util.c _alpm_download_dir_setup only makes a per-process temp dir with the sandbox on), and the XferCommand writes <pkg>.part there with curl -C -o %o; two nodes fetching the same package appended to the same .part file, and the second rename failed or left a corrupt package in the shared cache.

pacman.sh now gives each node its own download directory <shared>/pacman/node-XXXXXX/ (created once with mktemp, reused from pacman.conf on later runs) as the CacheDir between the read-only host layer and <shared>/pacman/, and writes a PostTransaction hook to pacman.d/hooks/infinito-shared-cache.hook that renames every finished package and signature into <shared>/pacman/; .part files stay for the next resume. Both directories sit in one bind mount, so each publish is an atomic rename(2). pacman.sh fails when pacman.conf sets HookDir, since pacman would then skip the hook silently. Requirement 065 and cache.md describe the three layers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 22:43:01 +01:00