conduwuit/src/api/client_server
strawberry e944ed5eb4 fix /report endpoint a lot
in short, the `/report` endpoint now checks if:
- the reporting room in the URI matches the PDU/event reported
- sender user is in the room reported
- raises report reasoning to 750 characters (spec doesn't say to limit
these, but thorough and informative reports for server admins are not
a bad thing)
- (hopefully) fixes some broken formatting
- add a random short delay before sending a successful response to the
client to make it more annoying to enumerate for events on our server
(security by obscurity but spec suggests it)

basically, secure reports better lol

see https://spec.matrix.org/v1.9/client-server-api/#post_matrixclientv3roomsroomidreporteventid

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-01-17 14:26:26 -05:00
..
account.rs require sender_user being in the reporting room for /report events 2024-01-17 14:26:26 -05:00
alias.rs return M_INVALID_PARAM instead of M_BAD_JSON for bad room aliases 2024-01-17 14:26:26 -05:00
backup.rs WIP: Upgrade Ruma 2022-12-16 11:57:32 +01:00
capabilities.rs WIP: Upgrade Ruma 2022-12-16 11:57:32 +01:00
config.rs Bump Ruma 2023-03-18 15:03:56 +01:00
context.rs feat: space hierarchies 2023-07-02 22:12:06 +02:00
device.rs WIP: Upgrade Ruma 2022-12-16 11:57:32 +01:00
directory.rs explicitly fallback to None for invalid/empty room topics 2024-01-17 14:26:26 -05:00
filter.rs WIP: Upgrade Ruma 2022-12-16 11:57:32 +01:00
keys.rs raise various timeouts, make exp backoff consistent 2024-01-06 16:16:44 -05:00
media.rs first of many small code documentation 2024-01-17 14:26:26 -05:00
membership.rs require sender_user being in the reporting room for /report events 2024-01-17 14:26:26 -05:00
message.rs fix every clippy warning possible, remove io_uring as default feature 2023-11-27 00:50:55 -05:00
mod.rs first of many small code documentation 2024-01-17 14:26:26 -05:00
presence.rs fix typo 2023-12-20 21:46:54 -05:00
profile.rs partially revert keeping track of remote user profiles 2024-01-14 20:55:56 -05:00
push.rs Always return an error if a push rule is not found 2023-03-18 15:03:57 +01:00
read_marker.rs feat: ask for backfill 2023-03-13 10:39:17 +01:00
redact.rs make pdu stuff async, remove unnecessary db version check 2023-11-25 18:29:38 -05:00
relations.rs fix every clippy warning possible, remove io_uring as default feature 2023-11-27 00:50:55 -05:00
report.rs fix /report endpoint a lot 2024-01-17 14:26:26 -05:00
room.rs replace panics on unknown room versions with errors 2024-01-14 20:55:56 -05:00
search.rs feat: space hierarchies 2023-07-02 22:12:06 +02:00
session.rs update device lists for user upon logout 2024-01-14 20:55:56 -05:00
space.rs feat: space hierarchies 2023-07-02 22:12:06 +02:00
state.rs fix every clippy warning possible, remove io_uring as default feature 2023-11-27 00:50:55 -05:00
sync.rs bump ruma to latest commit (syncv3 JsOption and push optional power levels) 2024-01-07 22:26:27 -05:00
tag.rs WIP: Upgrade Ruma 2022-12-16 11:57:32 +01:00
thirdparty.rs WIP: Upgrade Ruma 2022-12-16 11:57:32 +01:00
threads.rs feat: WIP relationships and threads 2023-06-25 19:40:33 +02:00
to_device.rs Bump Ruma 2023-03-18 15:03:56 +01:00
typing.rs WIP: Upgrade Ruma 2022-12-16 11:57:32 +01:00
unversioned.rs declare explicit support for room filtering (MSC3827) 2024-01-14 20:55:56 -05:00
user_directory.rs WIP: Upgrade Ruma 2022-12-16 11:57:32 +01:00
voip.rs update base64 to 0.21.2 2023-08-01 14:48:50 -10:00