continuwuity/src/api
strawberry f54389085c 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:20:57 -05:00
..
client_server fix /report endpoint a lot 2024-01-17 14:20:57 -05:00
ruma_wrapper add feature flagged support for migrating from base64 file name keys to sha256 ones 2023-11-25 11:38:28 -05:00
appservice_server.rs raise various timeouts, make exp backoff consistent 2024-01-06 16:16:44 -05:00
mod.rs cargo fmt 2022-10-10 14:02:01 +02:00
server_server.rs fix more clippy lints (part 1) 2024-01-17 14:20:57 -05:00