This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Admin API for requesting events for a room that are waiting to be processed after inbound federation (ie events in federation_inbound_events_staging
)
#12086
Labels
A-Admin-API
A-Moderation
Tools for moderating HSes: event redaction, media removal, purge admin API, reports from users, ...
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
Description:
We would like an admin api to view events that are waiting in
federation_inbound_events_staging
for a specific room.The reason being we want this is so that during a heavy spam attack we can have better viability about what is happening in a room by cutting out some of the latency where we would have to wait for Synapse to process inbound events. Though, I understand that this will not give us a complete picture and the events can be rejected.
What I am imagining is something like this:
Check for inbound events
GET /_synapse/admin/v1/rooms/<room_id>/federation_inbound_events
The response that will be returned
Things I am assuming in the above
The events will be relatively recent and will not have been through authorization before. (If this isn't true, then at the least there probably needs to be some information about what the previous events were for each event).
The events will be returned in chronological order
That there will not be enough events in the response to warrant mimicking https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3roomsroomidmessages but that's not a problem for me if there could be.
That there will be no penalty for repeatedly calling this endpoint for updates
That the sender matches the origin of the event
The text was updated successfully, but these errors were encountered: