Logan Devine and Ellis Git
480e975877
chore: clean up unused imports of ClientIp
2026-07-21 14:31:16 +00:00
timedout and Ellis Git
789589ef37
chore: Remove redundant client IP extractions on individual routes
2026-07-17 12:57:48 +00:00
Erwan Leboucher and Ellis Git
3a74ce6151
fix(client-ip): Fall back to peer IP instead of returning 500
2026-07-17 12:46:11 +00:00
Ginger
d7a51c7107
refactor: Allow for client identities with no user ID
2026-05-27 12:15:16 -04:00
Ginger and Ellis Git
74841b6711
refactor: Represent route auth information in the type system
2026-05-26 18:26:02 +00:00
Ginger
8c2cf67783
refactor: Remove support for guest user registration
2026-05-05 09:09:48 -04:00
Ginger
a8a8e1ea51
chore: Clippy fixes
2026-04-28 09:16:57 -04:00
Ginger
a0524a9566
refactor: Fix errors in api/client/directory.rs, again
2026-04-28 09:16:56 -04:00
Ginger
267e1c5d65
refactor: Fix errors in api/client/directory.rs
2026-04-28 09:16:52 -04:00
Ginger
bf9c9716eb
refactor: Add function to state_accessor to get create event
2026-04-28 09:16:51 -04:00
Jade Ellis and Ginger
a4e64383b7
refactor: Ruma upstraming, bake a little more
2026-04-28 09:16:51 -04:00
Ginger and Jade Ellis
204bc1367e
refactor: Ruma upstreaming, half-baked edition
...
Co-authored-by: Jade Ellis <jade@ellis.link >
2026-04-28 09:16:51 -04:00
Jade Ellis
0134f69bf9
chore: Update incompatible dependenceis
2026-04-23 20:02:48 +01:00
timedout and Ellis Git
5110930add
fix: Allow server admins and v12 room creators to publish rooms
2026-04-12 14:09:53 +00:00
Jade Ellis
aed15f246a
refactor: Clean up logging issues
...
Primary issues: Double escapes (debug fmt), spans without levels
2026-01-05 18:28:57 +00:00
Jason Volk and Jade Ellis
364293608d
Post-formatting aesthetic and spacing corrections
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:17:06 +01:00
nexy7574 and Ellis Git
90180916eb
feat: Prevent suspended users performing room changes
...
Prevents kicks, bans, unbans, and alias modification
2025-06-29 15:38:01 +00:00
Jade Ellis
0eb9e4f3d2
refactor: Centralize server forbidden checks into moderation module
...
This moves all checks related to `forbidden_remote_server_names`,
`forbidden_remote_room_directory_server_names` and
`prevent_media_downloads_from` to a new `moderation` module.
This is useful for implementing more complicated logic globally.
Mostly the changes from #673 , but is also relevant for #750
2025-04-19 23:37:54 +01:00
June Clementine Strawberry
d5ad973464
change forbidden_server_names and etc to allow regex patterns for wildcards
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-06 15:25:19 -04:00
Jason Volk
532dfd004d
move core::pdu and core::state_res into core::matrix::
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-05 02:44:46 +00:00
Jason Volk
a93cb34dd6
disambiguate UInt/u64 type related in client/api/directory; use err macros.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-30 23:00:37 +00:00
Jason Volk
7294368015
parallelize IO for PublicRoomsChunk vector
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Ginger and GitHub
1366a3092f
Check the room_types filter when searching for local public rooms ( #698 )
2025-03-10 17:28:19 -04:00
June Clementine Strawberry
de53ad83b2
run nightly cargo fmt again
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-02 23:15:05 -05:00
Jason Volk and June Clementine Strawberry
a67ab75417
fix edition 2024 lints
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-27 10:26:45 -05:00
June Clementine Strawberry
a1e1f40ded
run cargo fix for rust 2024 changes and rustfmt
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-02-23 01:17:45 -05:00
Jason Volk
5be07ebc0f
eliminate references to services.globals.config
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
strawberry
77e0b76408
apply new rustfmt.toml changes, fix some clippy lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 01:00:41 -05:00
strawberry
0317cc8cc5
rename conduit to conduwuit finally
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-14 22:24:45 -05:00
strawberry
6b1b464abc
add missing knock_restricted room type to /publicRooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:16 -05:00
Jason Volk and strawberry
ca57dc7928
optimize config denylists
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk and strawberry
946ca364e0
Database Refactor
...
combine service/users data w/ mod unit
split sliding sync related out of service/users
instrument database entry points
remove increment crap from database interface
de-wrap all database get() calls
de-wrap all database insert() calls
de-wrap all database remove() calls
refactor database interface for async streaming
add query key serializer for database
implement Debug for result handle
add query deserializer for database
add deserialization trait for option handle
start a stream utils suite
de-wrap/asyncify/type-query count_one_time_keys()
de-wrap/asyncify users count
add admin query users command suite
de-wrap/asyncify users exists
de-wrap/partially asyncify user filter related
asyncify/de-wrap users device/keys related
asyncify/de-wrap user auth/misc related
asyncify/de-wrap users blurhash
asyncify/de-wrap account_data get; merge Data into Service
partial asyncify/de-wrap uiaa; merge Data into Service
partially asyncify/de-wrap transaction_ids get; merge Data into Service
partially asyncify/de-wrap key_backups; merge Data into Service
asyncify/de-wrap pusher service getters; merge Data into Service
asyncify/de-wrap rooms alias getters/some iterators
asyncify/de-wrap rooms directory getters/iterator
partially asyncify/de-wrap rooms lazy-loading
partially asyncify/de-wrap rooms metadata
asyncify/dewrap rooms outlier
asyncify/dewrap rooms pdu_metadata
dewrap/partially asyncify rooms read receipt
de-wrap rooms search service
de-wrap/partially asyncify rooms user service
partial de-wrap rooms state_compressor
de-wrap rooms state_cache
de-wrap room state et al
de-wrap rooms timeline service
additional users device/keys related
de-wrap/asyncify sender
asyncify services
refactor database to TryFuture/TryStream
refactor services for TryFuture/TryStream
asyncify api handlers
additional asyncification for admin module
abstract stream related; support reverse streams
additional stream conversions
asyncify state-res related
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:32:30 -04:00
strawberry
75be68fa61
add config option to control sending admin notices of alerts
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 22:37:34 -04:00
strawberry
9761e2f10c
fix lockdown_public_room_directory bypass, add appservice exclusion
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 21:38:26 -04:00
strawberry
a65dd6dfb3
dont allow guests to publish to room directories
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-14 12:37:29 -04:00
strawberry
5530e7434a
notify admin room on new room directory publishes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-31 13:18:48 -04:00
Jason Volk
2f85a5c1ac
de-global services
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 09:08:51 +00:00
Jason Volk
59efabbbc2
de-global server_is_ours / user_is_local
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
8b6018d77d
de-global services() from api
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 07:54:03 +00:00
strawberry
7009f56a7a
fix user directory publishing access controls
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:06:52 -04:00
Jason Volk
05efd9b044
elaborate error macro and apply at various callsites
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
strawberry and June 🍓🦴
efea13a675
add access control checks for room directory publishing/removing
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
0832c28a40
dedupe some state accessors in various places
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-03 22:12:47 -04:00
Jason Volk
213a6d441f
shorten several request span names.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-18 10:56:19 +00:00
strawberry
f1d90e5df6
log client/remote IP address on various routes tracing calls
...
this uses InsecureClientIp as this is purely for informational
and logging purposes
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 21:04:51 -04:00
strawberry
fcdf1463ef
refactor get_room_topic into 1 single function
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 19:45:04 -04:00
strawberry
88d038ffec
refactor getting room's canonical alias into 1 function
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 19:45:04 -04:00
strawberry
4b4c0952a2
refactor guest_can_join into 1 single function
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-10 19:45:04 -04:00
strawberry
bfbb29dded
add is_world_readable state_accessor func, use self instead of services()
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-06-07 15:10:00 -04:00
Jason Volk
f32380772f
rename api::client_server to api::client
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-06-06 18:21:40 +00:00