5
0
mirror of https://github.com/spantaleev/matrix-docker-ansible-deploy.git synced 2026-08-14 04:40:51 +00:00
Commit Graph

3095 Commits

Author SHA1 Message Date
Slavi Pantaleev aef0fad8b5 Enable the appservice encryption MSCs on Synapse for Hookshot too
Hookshot's end-to-bridge encryption needs MSC2409 and MSC3202 enabled
on the homeserver, but the playbook only turned them on for Meowlnir.
Hookshot's encryption defaults to the playbook-wide
`matrix_bridges_encryption_enabled` toggle, so turning that on gave
Hookshot encryption against a Synapse which was not set up for it, and
Hookshot then struggled in encrypted rooms.

The playbook already wires up Hookshot's other encryption prerequisite
(Valkey) and fails the run when the Redis settings are missing, so
being only half-automatic here was the odd one out.

Synapse sends the extra data only to appservices which ask for it in
their registration file, so turning these on affects no other
component.

The documentation told Hookshot users to set the two Synapse variables
by hand, and argued they should be enabled deliberately. That
contradicted what we already do for Meowlnir, so it is gone; the note
now matches the Meowlnir one and points out that other homeserver
implementations still need arranging by hand.

Closes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5506

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-13 08:01:51 +03:00
Slavi Pantaleev fdf3c13e66 Fix unterminated placeholder in a matrix-synapse deprecation message
The `matrix_synapse_experimental_features_msc3202_device_masquerading_enabled`
entry was missing its closing angle bracket, so anyone still setting
that variable was told to rename it to `<removed - this feature is
enabled by default now`.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-13 07:37:50 +03:00
jasonlaguidice 1fe8e231b3 Remove old deprecation preventing rustpush bridge deployment 2026-08-13 07:31:48 +03:00
Slavi Pantaleev f0a78997cb Use the ig--prefixed container images for mautrix-meta in Instagram mode
Since v26.07, Instagram is a separate bridge upstream, with its own
binary and its own container image. Both bridges are published to the
same image repository, Instagram's under `ig-`-prefixed tags.

Both roles kept pointing at the unprefixed image, which now carries
only the legacy Instagram code path. That path no longer works against
Instagram's current DM protocol, so mautrix-meta-instagram authenticates
and does its initial sync, then loops on failed MQTT sync tasks and
bridges nothing.

The prefix is derived from `meta_mode`, so it also covers a
mautrix-meta-messenger role run with `meta_mode: instagram`. Renovate
keeps tracking the unprefixed tag for both roles, which is correct:
the two images are built from one git tag.

The self-build checkout took its git ref by parsing the tag out of the
container image reference. That would now ask for a non-existent `ig-`
git tag (upstream has none), and it was already wrong for a commit-hash
pin, where it asked for `HASH-amd64`. It uses `_version` directly now,
like every other role in the playbook does.

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5510

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-13 07:19:47 +03:00
Slavi Pantaleev fe57c8ef7a Drop the mautrix-meta ig_e2ee configuration option
Upstream no longer has an `ig_e2ee` option in either connector. It is
already absent at v0.2607.0, the version both roles are pinned to, so
we have been rendering a dead key into config.yaml for a while.

Anyone who set the variable is told it is gone, via the usual
deprecated-variable check.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-13 07:14:56 +03:00
Slavi Pantaleev 07eddf29a3 Regenerate the mautrix-meta-instagram role from its generator
The committed role had drifted from what
bin/rebuild-mautrix-meta-instagram.sh produces, by one reordered
`_homeserver_domain` line. No behaviour change; this just makes the
next diff against the role show only intentional changes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-13 07:06:19 +03:00
Slavi Pantaleev 831fb228d9 Add matrix_client_commet_scheme, like every other web client role has
The Commet role was the only playbook-installed web client without a
`_scheme` variable to go with its `_hostname` and `_path_prefix`, so
anything wishing to build Commet's public URL had to reach for
`matrix_playbook_ssl_enabled` itself.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-13 06:23:30 +03:00
Slavi Pantaleev f9222dc70c Add support for Meowlnir
Meowlnir (https://github.com/maunium/meowlnir) is a Matrix moderation
bot which speaks the same policy-list protocol as Mjolnir and Draupnir,
but runs as an appservice and can override individual policies coming
from ban lists you do not control.

Bots and their management rooms live only in Meowlnir's own database —
nothing in its configuration file can declare one — so the role
provisions them through the management API from a declarative roster
(matrix_bot_meowlnir_bots_custom), applied under the
ensure-matrix-users-created tag. Management rooms may be declared or
created for you; bots and rooms no longer declared get pruned.

Wrapper scripts for driving the management API by hand are installed
to /matrix/meowlnir/bin.

Meowlnir re-runs its configuration upgrader in memory on every start,
so a literal `generate` value yields a new secret per restart. All
secrets are therefore rendered explicitly, validation rejects
`generate`, and the configuration directory is mounted read-only.

Draupnir and Meowlnir both want synapse-http-antispam, which the
playbook wires up to a single consumer. The wiring prefers Draupnir,
and both roles fail the run when each claims it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-13 06:05:30 +03:00
renovate[bot] fbc76e82f4 Update forgejo.ellis.link/continuwuation/continuwuity Docker tag to v26.7.3 2026-08-12 06:57:04 +03:00
renovate[bot] 63e0cf8495 Update ghcr.io/jasonlaguidice/matrix-steam-bridge Docker tag to v1.3.1 2026-08-10 07:29:17 +03:00
jasonlaguidice 060f22573d Add mautrix-go API exposure for Steam & Rushpush bridges (like all other mautrix bridges) 2026-08-09 08:02:28 +03:00
renovate[bot] 322aaaa46a Update ghcr.io/matrix-construct/tuwunel Docker tag to v1.8.3 2026-08-06 06:58:18 +03:00
renovate[bot] 6832de2333 Update docker.io/metio/matrix-alertmanager-receiver Docker tag to v2026.8.5 2026-08-05 14:03:42 +03:00
renovate[bot] 559f5eb850 Update ghcr.io/element-hq/element-web Docker tag to v1.12.25 2026-08-05 14:03:21 +03:00
renovate[bot] 07ba853786 Update ghcr.io/element-hq/synapse Docker tag to v1.158.0 2026-08-05 05:09:18 +03:00
renovate[bot] 49ae73c704 Update ghcr.io/element-hq/matrix-authentication-service Docker tag to v1.22.0 2026-08-05 05:07:38 +03:00
Slavi Pantaleev 6dbeb9418a Stop reusing one fact name for two deprecation checks
The `matrix_redis_` -> `redis_` check and the `redis_` -> `valkey_`
check both stored their matches in
`matrix_playbook_migration_redis_migration_vars`.

Facts persist for the whole play, so the second check was silently
overwriting the first one's value. Nothing reads these facts outside the
block that sets them, so this was harmless in practice, but it breaks as
soon as anyone reorders the checks, reads a fact later on, or disables
one of the two checks and expects the other's value to still be around.

Name the second one after its own check, like every other check here
does.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-04 17:55:22 +03:00
Slavi Pantaleev cbc2dc3d0a Fix misleading task names and wording in deprecation checks
Four checks carried the task name of the check they were copy-pasted
from, so the redis -> valkey and keydb -> valkey checks both announced
themselves as matrix_redis ones, and both synapse OIDC label checks
announced themselves as matrix_ssl ones.

The matrix_nginx_proxy and matrix_ssl leftover messages also asked
people to rename variables, while the sentence right above them
(correctly) asks for these to be removed. The roles are gone, so there
is nothing to rename them to.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-04 17:15:55 +03:00
Slavi Pantaleev bd8a79c974 Fix "'list object' has no attribute 'keys'" in deprecation checks
The variables holding matched deprecated variable names used to be
dictionaries (built via `vars | dict2items | ... | items2dict`), so
calling `.keys()` on them was correct.

Since a1f6ee4dc9, they are lists produced
by the `ansible.builtin.varnames` lookup, but 15 of the messages
consuming them were left calling `.keys()`.

The failing tasks are gated behind a `| length > 0` condition, so only
people who actually still carry one of these deprecated variables would
hit this. Such people were greeted by a cryptic templating error instead
of the message telling them what to rename or remove.

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5491

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-04 17:14:01 +03:00
Slavi Pantaleev bd2b13979a Remove now-unused Traefik labels support from the rustpush bridge
The metrics endpoint was the only thing this bridge ever routed through
Traefik. With it gone, the container was still labeled `traefik.enable=true`
without defining any router, which makes Traefik fall back to its default
rule and produce a router pointing at nothing. It was also joining the
reverse-proxy network for no reason.

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5487
2026-08-04 17:07:07 +03:00
Slavi Pantaleev bfa37bf5f6 Remove dead metrics support from the mautrix-meta-messenger bridge
Bridges based on bridgev2 no longer expose a metrics endpoint, so the
playbook was publishing a Traefik route which could only ever yield an
HTTP 502.

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5487
2026-08-04 17:05:57 +03:00
Slavi Pantaleev a51b5b2a31 Remove dead metrics support from the mautrix-meta-instagram bridge
Bridges based on bridgev2 no longer expose a metrics endpoint, so the
playbook was publishing a Traefik route which could only ever yield an
HTTP 502.

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5487
2026-08-04 17:05:26 +03:00
Slavi Pantaleev 8f9f91cbd5 Remove dead metrics support from the rustpush bridge
Bridges based on bridgev2 no longer expose a metrics endpoint, so the
playbook was publishing a Traefik route which could only ever yield an
HTTP 502.

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5487
2026-08-04 17:01:55 +03:00
Slavi Pantaleev eab505813a Remove dead metrics support from the mautrix-whatsapp bridge
Bridges based on bridgev2 no longer expose a metrics endpoint, so the
playbook was publishing a Traefik route which could only ever yield an
HTTP 502.

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5487
2026-08-04 16:59:15 +03:00
Slavi Pantaleev 45e337f71c Remove dead metrics support from the mautrix-twitter bridge
Bridges based on bridgev2 no longer expose a metrics endpoint, so the
playbook was publishing a Traefik route which could only ever yield an
HTTP 502.

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5487
2026-08-04 16:58:28 +03:00
Slavi Pantaleev 398a5ab95e Remove dead metrics support from the mautrix-telegram bridge
The bridge lost its metrics endpoint when it was rewritten on top of
bridgev2, so the playbook was publishing a Traefik route which could
only ever yield an HTTP 502.

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5487
2026-08-04 16:57:41 +03:00
Slavi Pantaleev 2daa19ea91 Remove dead metrics support from the mautrix-signal bridge
Bridges based on bridgev2 no longer expose a metrics endpoint, so the
playbook was publishing a Traefik route which could only ever yield an
HTTP 502.

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5487
2026-08-04 16:56:55 +03:00
Slavi Pantaleev 7571605fce Remove dead metrics support from the mautrix-linkedin bridge
Bridges based on bridgev2 no longer expose a metrics endpoint, so the
playbook was publishing a Traefik route which could only ever yield an
HTTP 502.

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5487
2026-08-04 16:56:08 +03:00
Slavi Pantaleev 904f17161b Remove dead metrics support from the mautrix-gvoice bridge
Bridges based on bridgev2 no longer expose a metrics endpoint, so the
playbook was publishing a Traefik route which could only ever yield an
HTTP 502.

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5487
2026-08-04 16:55:16 +03:00
Slavi Pantaleev fc7795a77e Remove dead metrics support from the mautrix-gmessages bridge
Bridges based on bridgev2 no longer expose a metrics endpoint, so the
playbook was publishing a Traefik route which could only ever yield an
HTTP 502.

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5487
2026-08-04 16:53:43 +03:00
Slavi Pantaleev 199fa3c432 Remove dead metrics support from the mautrix-bluesky bridge
Bridges based on bridgev2 no longer expose a metrics endpoint, so the
playbook was publishing a Traefik route which could only ever yield an
HTTP 502.

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5487
2026-08-04 16:52:24 +03:00
Slavi Pantaleev 034ccf15de Remove dead metrics support from the Steam bridge
The bridge does not expose a metrics endpoint, so the playbook was
publishing a Traefik route which could only ever yield an HTTP 502.

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5487
2026-08-04 16:51:01 +03:00
renovate[bot] 6a17ec91d6 Update ghcr.io/element-hq/element-call Docker tag to v0.23.0 2026-08-04 16:29:58 +03:00
renovate[bot] 4a3af2e10e Update joseluisq/static-web-server Docker tag to v2.44.0 2026-08-01 02:20:36 +03:00
Slavi Pantaleev e5b8de8c2b Heal git checkout ownership in all roles cloning repositories on the server
6b4b7647e fixed this for synapse-usage-exporter only. A checkout owned by
a different user makes the git task fail from then on, either with a
permission error or with git's dubious-ownership protection, until
someone removes the directory on the host by hand. It gets into that
state when the matrix user's uid changes (a server migration or a restore
onto a differently numbered user), when an earlier clone ran as another
user, or when someone runs git as root inside the checkout.

Every other role cloning a repository onto the server was open to the
same failure, so ensure the checkout's ownership recursively before
updating it at the remaining 54 sites.

The three matrix-synapse ext clones also gain force=yes. They were the
only on-server clones without it, which left a checkout that an
interrupted run had half-written wedged, instead of repaired on the next
run.

matrix-matrixto used to clone as root into a directory that nothing ever
chowned, unlike every other role. It now becomes the matrix user too.

The Element Web and SchildiChat Web theme checkouts live on the Ansible
controller, where correcting ownership is not ours to do, so they merely
mark the checkout as a safe directory for git.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-31 19:01:52 +03:00
Slavi Pantaleev 118eb9019f Simplify the synapse-usage-exporter git ownership fix
The recursive chown in front of the git task already guarantees that git
operates on a checkout owned by the user it becomes, so marking the path
as a safe.directory on top of that protects against nothing. Drop the
environment variables and condense the comment to a single line.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-31 19:01:52 +03:00
renovate[bot] 2084dc4ec5 Update forgejo.ellis.link/continuwuation/continuwuity Docker tag to v26.7.2 2026-07-31 01:17:23 +03:00
renovate[bot] 486fc8adfe Update docker.io/metio/matrix-alertmanager-receiver Docker tag to v2026.7.29 2026-07-29 15:25:52 +03:00
Slavi Pantaleev e2342853f6 Merge pull request #5462 from c00/beeper-line
Add support for bridging to LINE via beeper-line

Closes #1334
2026-07-28 22:10:02 +03:00
Slavi Pantaleev 1dad6f331e Complete beeper-line's configuration template
The template was missing the public_media and direct_media sections, as
well as the bridge.phone_numbers_in_profile, bridge.relay.displayname_format
and backfill.threads.max_initial_messages settings.

Their absence made the bridge fall back to zero values instead of the
defaults that upstream ships (most notably disabling thread backfilling).
The template now matches the configuration that the bridge generates
itself, key for key.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 21:54:33 +03:00
Slavi Pantaleev fa59dde084 Explain where the beeper-line container image comes from
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 21:54:33 +03:00
Slavi Pantaleev 4e95cecf81 Document why beeper-line is pinned to a commit hash
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 21:54:33 +03:00
Slavi Pantaleev e63870ff76 Make mautrix-linkedin honor matrix_bridge_mautrix_linkedin_command_prefix
The variable was defined, but the configuration template hardcoded the
command prefix, so changing the variable had no effect.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 16:58:05 +03:00
Aine 254773bf3c add Mautrix Linkedin bridge 2026-07-28 16:58:05 +03:00
Slavi Pantaleev eeabc623d7 Make mautrix-gmessages honor matrix_bridge_mautrix_gmessages_command_prefix
The variable was defined, but the configuration template hardcoded the
command prefix, so changing the variable had no effect.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 16:53:26 +03:00
Slavi Pantaleev e30809a8fc Make mautrix-gvoice honor matrix_bridge_mautrix_gvoice_command_prefix
The variable was defined, but the configuration template hardcoded the
command prefix, so changing the variable had no effect.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 16:53:26 +03:00
renovate[bot] 7587b8f099 Update ghcr.io/element-hq/synapse Docker tag to v1.157.2 (#5477)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-28 13:51:42 +00:00
Slavi Pantaleev 7a8105dc47 Expose synapse-usage-exporter metrics like the metrics of other services
The playbook exposes service metrics under a single endpoint
(`https://matrix.example.com/metrics/*`), controlled by
`matrix_metrics_exposure_enabled` and friends. synapse-usage-exporter was
not wired into this at all, so its metrics could only be scraped by the
integrated Prometheus and were unreachable for an external one.

The role had no metrics router whatsoever. Its only Traefik router (for
the `/report-usage-stats/push` ingestion endpoint) was gated on
`matrix_synapse_usage_exporter_container_labels_traefik_enabled`, which
defaulted to `matrix_synapse_usage_exporter_proxying_enabled`. Adding a
metrics router under that same switch would have meant that exposing
metrics also publishes the ingestion endpoint, so the master switch now
defaults to `true` and each router carries its own conditional.

Despite its generic name, `matrix_synapse_usage_exporter_proxying_enabled`
only ever concerned the endpoint that Synapse pushes usage statistics
**to**, never the metrics endpoint that Prometheus reads **from**. The
documentation now says so explicitly.

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5467

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 15:14:39 +03:00
Slavi Pantaleev e3dfcbad79 Scrape ntfy metrics with the integrated Prometheus
Until now, ntfy metrics could only be collected by an external Prometheus
server. Enabling the integrated Prometheus (`prometheus_enabled: true`)
now also has it scrape ntfy, like it does for the other services.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 07:23:05 +03:00
renovate[bot] 95e2ac9fb5 Update forgejo.ellis.link/continuwuation/continuwuity Docker tag to v26.7.1 2026-07-28 07:16:18 +03:00