Ginger
8f60648009
fix: Use correct error code for invalid client ID
2026-07-21 13:42:50 +00:00
Ginger
4c9426a13f
feat: Add support for OAuth2 device auth flow
2026-07-21 13:42:50 +00:00
Deniel9204
25264308ab
fix: Use the requested device ID when an appservice creates a device
...
The appservice branch of update_device_route (MSC4190 device creation)
generated a random device ID instead of using the one from the request
path, and dropped the requested display name. The PUT returned 200, but
the device the appservice asked for never existed, so every subsequent
request masquerading as that device failed with M_FORBIDDEN and one
orphaned random-ID device was left behind per attempt.
This made encrypted mautrix (bridgev2) bridges unable to start on
OIDC-enabled servers, where MSC4190 is the only available device
creation mechanism: /keys/upload failed on first start and /keys/query
on every restart. Combined with the pre-1f5e178c3f behaviour (400
"Token conflicts with an existing appservice token"), MSC4190 device
creation has never worked end-to-end in any release.
Create the device under the requested ID and forward the requested
display name.
2026-07-21 08:21:09 +02:00
timedout
8b3be67860
feat: Increase access token length
...
Reviewed-By: ginger <ginger@gingershaped.computer >
2026-07-19 15:06:23 +01:00
Lake
75b725908a
style(web): format Cargo.toml
2026-07-17 17:02:21 -05:00
Lake
bb8703e0f0
build: shear unused dependencies
2026-07-17 17:02:20 -05:00
Erwan Leboucher
b1632ee60b
fix(register): Resolve alias service by correct name for auto-join
2026-07-17 17:57:51 +00:00
timedout
789589ef37
chore: Remove redundant client IP extractions on individual routes
2026-07-17 12:57:48 +00:00
timedout
1e47090f5d
feat: Log client IP in router layer
2026-07-17 12:57:48 +00:00
Ginger
3e55d08488
fix: Only return create prompt if registration is enabled
2026-07-17 12:49:15 +00:00
Erwan Leboucher
3a74ce6151
fix(client-ip): Fall back to peer IP instead of returning 500
2026-07-17 12:46:11 +00:00
Erwan Leboucher
eff454218c
fix(sync): Send full state for newly-joined rooms in incremental sync
2026-07-17 02:48:28 +00:00
Erwan Leboucher
e2eb980b5e
fix(sync): Stop waking sync loops when removing to-device events
2026-07-16 22:15:27 +02:00
Erwan Leboucher
8945cc9e10
fix(federation): Sign restricted join events before verification
2026-07-16 19:46:42 +00:00
Erwan Leboucher
7ecd2aa5e2
fix(pdu): Exempt m.room.create from auth_events check
2026-07-14 19:27:46 +02:00
N00byKing
232ec3f620
fix: Return 201 instead of 200 on oauth registration
...
See RFC 7591 at 3.2.1: "The server responds with an HTTP 201 Created status code [...]"
Fixes a failure in matrix-dart-sdk
2026-07-14 11:00:34 +02:00
Ginger
24c6474bd1
fix: Allow unstable and stable device id query together
2026-07-13 20:38:10 +00:00
Koen Oostveen
446ae93ad7
fix(web): Change incorrect deeplink for deleting a device
2026-07-13 13:45:46 +00:00
Ginger
1f5e178c3f
fix: Properly handle appservice device creation
2026-07-13 08:50:48 -04:00
theS1LV3R
baef3289fe
fix(service/admin): Prevent console from being spawned when no TTY is available
2026-07-12 20:22:18 +02:00
Ginger
9a94b93ddd
fix: Fix new database migrations running on every server startup
2026-07-12 12:31:12 -04:00
Ginger
0ac0bd93ae
fix: Default deserialize for compatibility_mode
2026-07-12 16:28:27 +01:00
Ginger
fe9f718c6e
fix: Stop using the federation DNS resolver for non-federation requests
2026-07-12 16:11:00 +01:00
timedout
4001b99261
style: Make send_join's docstring more useful
2026-07-12 02:11:50 +00:00
timedout
b6e5a106ff
fix: Don't unhelpfully panic when encountering an unrecognised room version
2026-07-12 02:11:50 +00:00
timedout
fbf81fcdeb
fix: Opportunistically re-use room format rules when parsing incoming PDUs
2026-07-12 02:11:50 +00:00
timedout
87030a3a22
fix: Ensure PDU returned by create_hash_and_sign_event is itself signed
2026-07-12 02:11:50 +00:00
timedout
4f509fa113
fix: Convert room summary to federation format when sending invites
2026-07-12 02:11:50 +00:00
timedout
aa7ed885c0
fix: Check correct field name when determining event type
2026-07-12 02:11:50 +00:00
timedout
d5e6e617d1
fix: Remove redundant banned room server checks
...
These don't make sense here anyway
2026-07-12 02:11:50 +00:00
timedout
1f7680ad5f
feat: Give send_join the invite treatment
2026-07-12 02:11:50 +00:00
timedout
0c37a542d4
feat: Give send_leave the invite treatment
2026-07-12 02:11:50 +00:00
timedout
efd07da0d7
feat: Give send_knock the invite treatment
2026-07-12 02:11:50 +00:00
timedout
f0590e882a
fix: Only run ACL checks when we know we have live state
...
Prevents a potential bug where we might inadvertently reject valid invites because we have a stale state cache that blocks the sender or even ourselves
Also fixes the banned remote server room check by using the create event instead of room ID
2026-07-12 02:11:50 +00:00
timedout
7225bf25ae
feat: Persist create events received during the invite process
2026-07-12 02:11:50 +00:00
timedout
e52bb5db69
style: Move invite validation into own functions
2026-07-12 02:11:50 +00:00
timedout
995726923b
feat: Enforce new federation invite checks
...
These were introduced in spec v1.16 however we didn't implement them until now for compatibility.
2026-07-12 02:11:50 +00:00
Ginger
556141b404
fix: Trim whitespace from OIDC client secret file
2026-07-12 02:06:48 +00:00
Ginger
cfbe590f1c
fix: Do not require an access token on 3pid token request route
2026-07-11 19:40:25 +00:00
Ginger
d9c2f04d73
fix: Correctly handle preferred_username claim
2026-07-11 19:21:33 +00:00
Ginger
ada0b3184b
fix: Properly sync newly created rooms
2026-07-11 19:21:19 +00:00
timedout
9d2ce72f73
style: Remove redundant length check for dag build
2026-07-11 17:27:42 +01:00
timedout
13bcb5af13
style: Accept event id reference in pdu_format_check_1
2026-07-11 17:27:42 +01:00
timedout
5868510df1
fix: Remove redundant "correct room ID" filter
2026-07-11 17:27:42 +01:00
timedout
c34d1fe76e
feat: Move PDU validation out of parsing and into check 1
2026-07-11 17:27:42 +01:00
timedout
838764b0ac
style: Remove needless async def for parse_incoming_pdu_with_known_room
2026-07-11 17:27:42 +01:00
timedout
b51a34c1c1
fix: Address review feedback
2026-07-11 17:27:42 +01:00
timedout
2fbb779d12
fix: Invert boolean returned by policy server check
2026-07-11 17:27:42 +01:00
timedout
e16a62e1ed
feat: Add more debug logging to PDU handle funcs
...
Tracking down weird soft-fails
2026-07-11 17:27:42 +01:00
timedout
64a08262ca
perf: Change signature of build_local_dag to remove refmap hacks
2026-07-11 17:27:42 +01:00