Commit Graph

1503 Commits

Author SHA1 Message Date
dasha_uwu
9dfba5904b Don't grant admin if the first registered user is an appservice, fixes #331 2026-02-25 05:27:43 +05:00
dasha_uwu
d073e17f1a Refactor RegistrationInfo, fix #330 2026-02-25 05:27:43 +05:00
dasha_uwu
45f4496e4f Refactor admin rooms moderation
Split alias.*_alias_by from alias.*_ailias
2026-02-24 09:03:52 +05:00
Jason Volk
7df373524e Add configurable concurrent batch requests to notary.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-02-18 04:14:49 +00:00
Jason Volk
6f93436eff Fix notary result key accounting error.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-02-18 04:13:17 +00:00
Jason Volk
ef399c1d10 Only trigger sender for local user's receipts.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-02-18 00:58:54 +00:00
Jason Volk
fc23cc1568 Fix custom profile field values being double-serialized with escapes.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-02-17 19:04:35 +00:00
dasha_uwu
937cd9fff9 Fix limited use count registration token validity check 2026-02-16 17:54:55 +00:00
Jason Volk
96fb02ac99 Return NotFound for empty room name string.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-02-14 22:44:16 +00:00
Jason Volk
1bd4ab0601 Optimize reference graph container value type for topological_sort.
Optimize initial container capacity estimates.

Signed-off-by: Jason Volk <jason@zemos.net>
2026-02-14 22:44:16 +00:00
Jason Volk
ca6cf8ad19 Eliminate mutable state.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-02-14 18:59:43 +00:00
Jason Volk
1004d99350 Split txn pdu/edu handling with separate spans.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-02-14 18:59:43 +00:00
dasha_uwu
31fcbe86fc Include "preview" in url preview user agent string. (fixes #303)
This is required for fixupx.com to serve previews instead of redirecting
2026-02-12 13:15:41 +00:00
Jason Volk
994e1d12a7 Optimize various case-insensitive comparisons.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-02-12 13:15:41 +00:00
dasha_uwu
4bba40982c Refactor room_version support code
Fix advertising unsupported room versions
2026-02-12 13:15:41 +00:00
dasha_uwu
34fb683ddd Move reqwest clients behind one shared lazylock 2026-02-12 13:15:41 +00:00
dasha_uwu
e1dc52200c Remove redundant service.users.is_admin 2026-02-12 13:15:41 +00:00
Jason Volk
5dcb4c9a34 Fix presence worker shutdown sequence.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-02-12 13:15:41 +00:00
dasha_uwu
87faf818ff Add webpki roots for reqwest clients. (fixes #296) 2026-02-12 13:15:35 +00:00
Jason Volk
2e19a30ff2 Add conditional default for provider callback_url.
Co-authored-by: jeidnx <git@domainhier.de>
Signed-off-by: Jason Volk <jason@zemos.net>
2026-02-12 03:22:51 +00:00
jeidnx
60d418118f fix: url calculation in make_url 2026-02-12 03:22:51 +00:00
Jason Volk
a6780697bd Add username claim from OAuth provider. (closes #287)
Signed-off-by: Jason Volk <jason@zemos.net>
2026-02-06 15:48:57 +00:00
Jason Volk
13a11ce097 Bump dependencies.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-02-04 09:43:30 +00:00
Jason Volk
0b864801f5 Use map of identity_provider to accommodate env var enumerations.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-02-01 01:22:13 +00:00
Jason Volk
13ad2c7966 Fix m.tz identifier and bias to stable.
Bump Ruma; enable spec versions 1.12 and 1.15.

Signed-off-by: Jason Volk <jason@zemos.net>
2026-01-30 21:53:52 +00:00
dasha_uwu
712c0c9487 Do not overwrite retained PDU 2026-01-30 21:42:32 +00:00
dasha_uwu
010c519677 Fix display name not being set on registration when no display name suffix is configured 2026-01-30 21:42:32 +00:00
dasha_uwu
cc9e99f31d Include displayname on remote invites 2026-01-30 21:42:32 +00:00
dasha_uwu
73eee626df Take stuff by ref in users service profile 2026-01-30 21:42:32 +00:00
Vladislav Grechannik
c76a66be28 Stop storing media in shared caches
Cache-Control=public leads to everyone being able to GET media from some shared cache (e.g. Cloudflare's)
2026-01-30 18:48:47 +01:00
Jason Volk
10060cef69 Merge remote-tracking branch 'bdfd9/patch-1' 2026-01-28 06:06:44 +00:00
Jason Volk
136c0f2682 Mitigate clippy::duration_suboptimal_units until 1.91 msrv upgrade.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-01-28 05:58:05 +00:00
bdfd9
5112c55bf0 Don't log a password when a new user account is registered
Introduced in 4150b917d8
2026-01-27 17:25:53 +01:00
Jason Volk
0b82fe27b5 Revert "Remove deprecated _matrix._tcp SRV query."
This reverts commit 258e2e3ce8.

This can be re-applied when Synapse decides to deprecate it.
2026-01-26 20:30:25 +00:00
Jason Volk
daa869fced Additional missing tracing spans on state_res::resolve components.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-01-26 20:24:44 +00:00
Jason Volk
23a3e87e93 Fix stale lint expectations.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-01-26 20:24:44 +00:00
dasha_uwu
56f3f5ea15 Limited use registration token support
Co-authored-by: Ginger <ginger@gingershaped.computer>
Signed-off-by: Jason Volk <jason@zemos.net>
2026-01-26 20:24:15 +00:00
dasha_uwu
3caab50e0d Minor rewrites 2026-01-26 19:28:56 +00:00
dasha_uwu
bb26b749ae Redacted event retention, implement MSC2815 2026-01-26 19:28:56 +00:00
dasha_uwu
8000fcce9e Non-reserializing redaction 2026-01-26 19:28:56 +00:00
dasha_uwu
0c9a3abb71 clippy allow -> expect 2026-01-26 19:28:56 +00:00
Jason Volk
6db87a4027 Implement associated multi-provider single-sign-on flow support. (#252)
Add experimental note for multi-provider flow. (#252)

Signed-off-by: Jason Volk <jason@zemos.net>
2026-01-26 19:28:50 +00:00
Jason Volk
be542da6e4 Re-export Either from tuwunel_core.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-01-24 08:19:41 +00:00
Jason Volk
c6c85374fa Flatten fork leaf state gather.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-01-22 09:49:19 +00:00
Jason Volk
48aa6035f6 Hoist room_version query to callers of get_auth_chain.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-01-22 09:31:46 +00:00
Jason Volk
afcb2315ee Move auth_chain cache to db.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-01-22 09:31:46 +00:00
Jason Volk
944f165202 Optimize get_auth_chain_inner concurrency.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-01-22 09:31:46 +00:00
Jason Volk
a0b98fa575 Misc debug and trace log tweaks.
Signed-off-by: Jason Volk <jason@zemos.net>
2026-01-22 09:31:46 +00:00
Jared L
7ec9d7f5aa fix: ensure aggregate presence change flushes queue 2026-01-21 16:50:23 +11:00
Jared L
0f547115af chore: fmt 2026-01-21 07:28:12 +11:00