Repository navigation
Conversation
The `cancel`, `restart` and `send` delayed event endpoints accepted unauthenticated requests and acted on any delayed event with a matching `delay_id`. MSC4140 now specifies these as authenticated endpoints that only act on the requesting user's own delayed events, returning 404 `M_NOT_FOUND` otherwise, and makes every delayed event endpoint available to guests. Authenticate the four management servlets (allowing guests), pass the requester through to the handler, and scope the three store lookups to the requester's localpart, as the single-event lookup already does. The management ratelimiter is now always keyed on the requester, so the source-IP fallback and its mention in the config docs are removed. The two GET servlets also allow guests now.
…cated-management # Conflicts: # tests/rest/client/test_delayed_events.py
1 of 12 tasks
This was referenced Sep 24, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This depends on matrix-org/complement#924
MSC4140 makes the management endpoints authenticated and scoped to the requesting user:
Today
cancel,restartandsendaccept requests without an access token and act on anydelay_id; a token, when present, only keys the ratelimiter (#19794). The twoGETendpoints reject guests.What changes
cancel,restartandsendrequire an access token and answer 404 for adelay_idthat belongs to another user.GET /delayed_events/{delay_id}andGET /delayed_eventsallow guests.rc_delayed_event_mgmtdocumentation updated accordingly.Appservices acting for a user through
?user_id=keep working.Pull Request Checklist
EventStoretoEventWorkerStore.".code blocks.