-
Notifications
You must be signed in to change notification settings - Fork 414
MSC4140: Remove auth from delayed event management endpoints #19152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AndrewFerr
wants to merge
21
commits into
element-hq:develop
Choose a base branch
from
AndrewFerr:delayed-event-management-changes
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
MSC4140: Remove auth from delayed event management endpoints #19152
AndrewFerr
wants to merge
21
commits into
element-hq:develop
from
AndrewFerr:delayed-event-management-changes
Conversation
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
- Ratelimit based on IP address, as we do for some other unauthed endpoints (like login) - Remove docstrings for methods whose parameters are self-documenting - Remove named-argument splitter (*) from methods where remaining parameters are unambiguous - Add required SQLite-specific schema migration - Apply the schema migration & update latest schema version - Apply automatic formatting & linting fixes
As long as it is still supported for backwards compatibility, want to keep testing it to guard against regressions
Do this to prevent a false-positive failure of the check_schema_delta script that thinks indexes are being created on an existing table, when they are really being created on a new replacement table.
Member
Author
|
This will conflict with #19038, and IMO should go in first because:
|
This prevents having to break DB compatibility / having to bump SCHEMA_COMPAT_VERSION. Use UNIQUE INDEX instead of ALTER TABLE for compatibility with SQLite.
1 task
This satisfies the check-schema-delta script.
This should also fix the portdb script
Better to have this comment together with the explanation on why the upgrade should be safe
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.
As per recent proposals in MSC4140, remove authentication for restarting/cancelling/sending a delayed event, and give each of those actions its own endpoint. (The original consolidated endpoint is still supported for backwards compatibility.)
Pull Request Checklist
EventStoretoEventWorkerStore.".code blocks.