synapse/synapse
Quentin Gliech 7ed55666b5
Stabilise MAS integration (#18759)
This can be reviewed commit by commit

There are a few improvements over the experimental support:

- authorisation of Synapse <-> MAS requests is simplified, with a single
shared secret, removing the need for provisioning a client on the MAS
side
- the tests actually spawn a real server, allowing us to test the rust
introspection layer
- we now check that the device advertised in introspection actually
exist, making it so that when a user logs out, the tokens are
immediately invalidated, even if the cache doesn't expire
- it doesn't rely on discovery anymore, rather on a static endpoint
base. This means users don't have to override the introspection endpoint
to avoid internet roundtrips
- it doesn't depend on `authlib` anymore, as we simplified a lot the
calls done from Synapse to MAS

We still have to update the MAS documentation about the Synapse setup,
but that can be done later.

---------

Co-authored-by: reivilibre <oliverw@element.io>
2025-08-04 15:48:45 +02:00
..
_scripts Refactor Histogram metrics to be homeserver-scoped (#18724) 2025-07-29 15:35:38 -05:00
api Stabilise MAS integration (#18759) 2025-08-04 15:48:45 +02:00
app Refactor Gauge metrics to be homeserver-scoped (#18725) 2025-07-29 10:37:59 -05:00
appservice Refactor Counter metrics to be homeserver-scoped (#18656) 2025-07-25 14:58:47 -05:00
config Stabilise MAS integration (#18759) 2025-08-04 15:48:45 +02:00
crypto Refactor background process metrics to be homeserver-scoped (#18670) 2025-07-23 13:28:17 -05:00
events Resolve breaking change to run_as_background_process in module API (#18737) 2025-07-29 14:29:38 -05:00
federation Refactor Histogram metrics to be homeserver-scoped (#18724) 2025-07-29 15:35:38 -05:00
handlers Stabilise MAS integration (#18759) 2025-08-04 15:48:45 +02:00
http Add missing await to sleep calls (#18763) 2025-08-01 16:00:30 +01:00
logging Add debug log when HMAC incorrect (#18474) 2025-07-22 11:09:45 -05:00
media Refactor background process metrics to be homeserver-scoped (#18670) 2025-07-23 13:28:17 -05:00
metrics Update metrics linting to be able to handle custom metrics (#18733) 2025-08-01 15:34:11 -05:00
module_api Stabilise MAS integration (#18759) 2025-08-04 15:48:45 +02:00
push Merge branch 'release-v1.135' into develop 2025-07-30 14:04:29 +01:00
replication Merge branch 'release-v1.135' into develop 2025-07-30 14:04:29 +01:00
res Send an email if the address is already bound to an user account (#16819) 2024-04-23 16:45:24 +01:00
rest Stabilise MAS integration (#18759) 2025-08-04 15:48:45 +02:00
server_notices Refactor cache metrics to be homeserver-scoped (#18604) 2025-07-16 16:04:57 -05:00
spam_checker_api Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
state Refactor Histogram metrics to be homeserver-scoped (#18724) 2025-07-29 15:35:38 -05:00
static Update link to the clients webpage, fix #15825 (#15874) 2023-07-06 17:28:09 +02:00
storage Make room upgrades faster for rooms with many bans (#18574) 2025-08-04 10:42:52 +01:00
streams Move device changes off the main process (#18581) 2025-07-18 09:06:14 +02:00
synapse_rust Stabilise MAS integration (#18759) 2025-08-04 15:48:45 +02:00
types Add experimental and incomplete support for MSC4306: Thread Subscriptions. (#18674) 2025-07-21 15:54:28 +01:00
util Update metrics linting to be able to handle custom metrics (#18733) 2025-08-01 15:34:11 -05:00
__init__.py Remove some obsolete Twisted version checks. (#18729) 2025-07-30 12:31:55 +01:00
_pydantic_compat.py Stabilise MAS integration (#18759) 2025-08-04 15:48:45 +02:00
event_auth.py bugfix: assert we always pass the create event to get_user_power_level (#18545) 2025-06-13 16:32:24 +00:00
notifier.py Refactor LaterGauge metrics to be homeserver-scoped (#18714) 2025-07-29 13:49:41 -05:00
py.typed
server.py Stabilise MAS integration (#18759) 2025-08-04 15:48:45 +02:00
visibility.py Allow admins to see policy server-flagged events (#18585) 2025-07-29 19:57:33 +01:00