feat: Ratelimit unauthenticated CSAPI endpoints #2444
No reviewers
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity!2444
Loading…
Reference in a new issue
No description provided.
Delete branch "ginger/csapi-ratelimiting"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request applies a ratelimit to unauthenticated requests to client-server API endpoints with the ratelimit flag set.
Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
9633c6f61ac2c1121c94@ -685,6 +685,12 @@# env: CONTINUWUITY_SENDER_SHUTDOWN_TIMEOUT#sender_shutdown_timeout = 5# Maximum number of requests per minute that unauthenticated clients# may make to ratelimited client-server API routes.## env: CONTINUWUITY_UNAUTHETICATED_REQUEST_RATELIMIT#unautheticated_request_ratelimit = 30Maybe would be good to document if this ratelimit applies to all ratelimited routes, or individually (ie. would 20 rpm to
/_matrix/client/v1/auth_metadataand 20 rpm to/_matrix/client/v3/publicRoomsbe hitting these ratelimits, or does this count per-endpoint?)Also
unautheticated->unauthenticated:)feat: Ratelimit CSAPI endpointsto feat: Ratelimit unauthenticated CSAPI endpointsc2c1121c94f35bcc6390