continuwuity/src/service/rooms/event_handler
timedout d189004d65 feat: Add more granular controls for policy server calling (#1127)
Adds two new toggles to the configuration, the first of which allows disabling the policy server checks entirely, and the second of which allows disabling checking events created locally. They're both enabled by default for maximum PS efficacy but allowing them to be disabled allows people who frequently cannot contact policy servers, for example those in censored countries, to be able to still use rooms with pace, allows single-user/trusted-only homeservers to disable the preliminary check on their own events, and also gives an escape hatch in case an issue like #1060 happens again, especially with MSCs not in FCP being moving targets.

In future, I think we should gate all MSC implementations behind config flags, even if they default to on.

Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1127
Reviewed-by: Jade Ellis <jade@ellis.link>
Co-authored-by: timedout <git@nexy7574.co.uk>
Co-committed-by: timedout <git@nexy7574.co.uk>
2025-10-16 22:45:23 +00:00
..
acl_check.rs allow broken no-op deny+allow room server ACL keys 2025-03-07 00:54:30 -05:00
fetch_and_handle_outliers.rs fix(stateres): Correctly fetch missing auth events for incoming PDUs 2025-09-25 02:54:00 +01:00
fetch_prev.rs Post-formatting aesthetic and spacing corrections 2025-07-02 19:17:06 +01:00
fetch_state.rs Post-formatting aesthetic and spacing corrections 2025-07-02 19:17:06 +01:00
handle_incoming_pdu.rs refactor: Replace remaining std RwLocks 2025-07-20 16:33:36 +01:00
handle_outlier_pdu.rs fix(stateres): Correctly fetch missing auth events for incoming PDUs 2025-09-25 02:54:00 +01:00
handle_prev_pdu.rs refactor: Replace remaining std RwLocks 2025-07-20 16:33:36 +01:00
mod.rs Implement room v12 (#943) 2025-09-17 20:46:03 +00:00
parse_incoming_pdu.rs Implement room v12 (#943) 2025-09-17 20:46:03 +00:00
policy_server.rs feat: Add more granular controls for policy server calling (#1127) 2025-10-16 22:45:23 +00:00
resolve_state.rs Eliminate associated Id type from trait Event. 2025-05-21 11:36:15 +01:00
state_at_incoming.rs Post-formatting aesthetic and spacing corrections 2025-07-02 19:17:06 +01:00
upgrade_outlier_pdu.rs fix: Policy server calls use the correct JSON object (#1126) 2025-10-16 21:06:54 +00:00