June Strawberry
2f4d3c2851
fix some unused_crate_dependencies lint warns
...
Signed-off-by: June Strawberry <june@vern.cc >
2026-01-18 13:18:10 -05:00
June Strawberry
04e66a03d3
fix and enable collapsible_if lint
...
Signed-off-by: June Strawberry <june@vern.cc >
2026-01-18 13:09:03 -05:00
Jason Volk
fb102f0e0a
Add privileged support for SSO account associations. ( #252 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2026-01-18 15:59:02 +00:00
Jason Volk
9346e69b87
Add admin command to manually remove a pusher.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2026-01-17 01:39:49 +00:00
Jason Volk
d0b2181817
Split query pusher command w/ admin_command macros.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2026-01-17 01:39:49 +00:00
Jason Volk
febd4d1a23
Add string-consuming writer to admin context interface.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2026-01-17 01:39:49 +00:00
Jason Volk
8aeaaea271
Fix clippy::result-large-err.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-12-28 00:49:45 +00:00
Jason Volk
11309062a2
Implement SSO/OIDC support. ( closes #7 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-12-26 07:24:49 +00:00
Jason Volk
4150b917d8
Restructure full_register arguments with names and defaults.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-12-23 02:55:32 +00:00
dasha_uwu
7115fb2796
Refactor join, alias services
...
Split knock, user register from api into services
Fix autojoin not working with v12 rooms
Fix 'm.login.registration_token/validity' for reloaded registration tokens
Change join servers order
Move autojoin for ldap
2025-12-18 18:41:23 +00:00
dasha_uwu
0c7ba1dd5a
Fix sync handling for appservices calling without device_id
2025-12-18 02:18:30 +00:00
Jason Volk
8bb0d02619
Replace calls through sender request interface.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-11-26 06:49:57 +00:00
Jason Volk
ff0e007c45
Fix readability of admin query account_data outputs.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-11-06 17:14:45 +00:00
Jason Volk
b24b59dc38
Add admin query raw command to clear table.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-10-30 03:48:16 +00:00
Jason Volk
d2072080c9
Add admin query for remote alias resolve.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-10-27 15:24:17 +00:00
Jason Volk
f613d0c2ad
Add admin command to delete a user's device.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-10-27 10:55:12 +00:00
Jason Volk
f66a83763e
Persist sliding-sync state; mitigate initial-sync.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-10-25 13:33:32 +00:00
Jason Volk
46c940b863
Refactor sliding window selector. ( fixes #170 )
...
Refactor list filtering.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-10-10 15:56:08 +00:00
Jason Volk
7fee459b1a
Add admin diagnostic query suite for sync state.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-10-08 03:33:12 +00:00
Jason Volk
2b7cf7d5d5
Add optimized iteration of all room memberships for user.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-10-06 01:19:36 +00:00
Jason Volk
ee777bc287
Rename user rooms iterations which have state vectors as values.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-10-06 01:19:36 +00:00
Jason Volk
e6c85c97c6
Fix names and types misrepresenting PduCount as ShortEventId.
...
Add get_shorteventid_from_pdu_id() conversion.
Fix prev/next nearest-state interface (dev branch 642086ecfcfa).
Signed-off-by: Jason Volk <jason@zemos.net >
2025-10-02 05:29:48 +00:00
Jason Volk
2417764771
Fix redundant prefix in admin query raw command suite.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-10-02 05:27:48 +00:00
Jason Volk
89be6dc097
Switch to Criterion for benchtests.
...
ci: Add benches to workflow.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-10-02 05:27:48 +00:00
dasha_uwu
89a67af607
pull stuff out of globals
2025-09-23 05:16:29 +00:00
dasha_uwu
1c0b4e94ac
fix spec violation and slight alias resolution refactor
2025-09-23 05:16:29 +00:00
dasha_uwu
b882e7efdb
rename db to engine
2025-09-23 05:16:29 +00:00
Jason Volk
d73b4332bf
Fix deletion of local leave state to allow sync for clients.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-11 06:20:41 +00:00
Jason Volk
de7c5dcbc8
Make iss and aud args optional to debug create-jwt command.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-09-09 03:03:53 +00:00
Jason Volk
aa413ae601
Implement room purge after last local user leaves. ( resolves #83 )
...
Consume a state_lock for room delete call.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-30 11:45:32 +00:00
Jason Volk
12bdfe3b66
Optimize backfill_if_required conditions.
...
Optimize backfill_pdu.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-29 06:49:04 +00:00
Jade Ellis
9db3e35f41
Fix incorrect command descriptions. [ci skip]
2025-08-29 02:17:46 +00:00
Jason Volk
7977512d5d
Fix additional cases for room_id.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-29 02:17:46 +00:00
dasha_uwu
526a138021
Force promotion ( closes #136 )
2025-08-29 02:17:46 +00:00
dasha_uwu
7fa6894334
Remove excessive doc on admin command
2025-08-29 02:17:46 +00:00
dasha_uwu
d05d3f710f
Room deletion ( fixes #43 )
2025-08-28 23:28:20 +05:00
dasha_uwu
c40671bfb0
Remove api crate dependency from admin crate
2025-08-28 23:28:20 +05:00
dasha_uwu
8e9c6661b2
Membership refactor
...
Introduce deactivate, membership services
Move membership and user deactivation functions from api crate into those services
2025-08-28 23:28:20 +05:00
dasha_uwu
4884c55be7
Split disable_room, ban_room functions
2025-08-28 23:28:13 +05:00
Jason Volk
a4f589f475
Remove unnecessary recursion_limit.
...
Reduce type_length_limits.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-28 23:20:44 +05:00
dasha_uwu
b5890b9664
Services refactor
...
Replace structs of Dep<Service> with OnceServices, so each service has a Services reference
Remove service name => Service map
Flatten Services.rooms
Make reqwest Clients lazy initialized (client service)
2025-08-28 23:15:59 +05:00
Jason Volk
3430d4ac86
Improved solution to current_shortstatehash > next_batch. ( 59b62b1)
...
`current_shortstatehash` is now calculated from timeline which is already
upper-bound by the `next_batch` snapshot. Previously `current_shortstatehash`
was truly current and had to be disallowed from exceeding `next_batch` by
ignoring the room during sync until a future pass when these values finally
met that condition.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-27 00:41:12 +00:00
Jason Volk
628597c318
State-reset and security mitigations.
...
Upgrade Ruma to present.
The following are intentionally benign for activation in a later commit:
- Hydra backports not default.
- Room version 12 not default.
- Room version 12 not listed as stable.
Do not enable them manually or you can brick your database.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-11 18:45:28 +00:00
Jason Volk
4ac61fd87b
Remove federation_handletime for now.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-02 18:00:20 +00:00
Jason Volk
4b9b85f671
ABI encapsulations; generate leaf code in pub fn's rather than inling them.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-02 18:00:20 +00:00
Jason Volk
fa3b72947a
Eliminate rooms outlier service, duplicate subset of timeline service.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-02 18:00:20 +00:00
ObiomaAtWanagu
a91380ac17
Change from the error 'No more rooms.' to the output 'No rooms are published.' if there are no rooms.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-08-02 18:00:20 +00:00
Jason Volk
63dfe8f7e3
Add upper-bound for presence_since().
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-26 05:36:19 +00:00
Jason Volk
17119670c0
Add admin debug command to manually resync with primary. ( #35 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-24 04:07:28 +00:00
Jason Volk
18f8d6c65c
Rebox future segmentations.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-24 04:07:27 +00:00