continuwuity/src
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
..
api fix /report endpoint a lot 2024-01-17 14:26:26 -05:00
config first of many small code documentation 2024-01-17 14:26:26 -05:00
database fix more clippy lints (part 1) 2024-01-17 14:26:26 -05:00
service explicitly fallback to None for invalid/empty room topics 2024-01-17 14:26:26 -05:00
utils fix more clippy lints (part 1) 2024-01-17 14:26:26 -05:00
lib.rs add all possible workspace clippy lints (with commenting out most for now) 2024-01-14 20:55:56 -05:00
main.rs fix more clippy lints (part 1) 2024-01-17 14:26:26 -05:00