anonymousland-synapse/synapse
Erik Johnston 963f4309fe
Make RateLimiter class check for ratelimit overrides (#9711)
This should fix a class of bug where we forget to check if e.g. the appservice shouldn't be ratelimited.

We also check the `ratelimit_override` table to check if the user has ratelimiting disabled. That table is really only meant to override the event sender ratelimiting, so we don't use any values from it (as they might not make sense for different rate limits), but we do infer that if ratelimiting is disabled for the user we should disabled all ratelimits.

Fixes #9663
2021-03-30 12:06:09 +01:00
..
_scripts Strip trailing / from server_url in register_new_matrix_user (#8823) 2020-11-26 10:57:26 +00:00
api Make RateLimiter class check for ratelimit overrides (#9711) 2021-03-30 12:06:09 +01:00
app Add type hints for the federation sender. (#9681) 2021-03-29 11:43:20 -04:00
appservice Add ResponseCache tests. (#9458) 2021-03-08 14:00:07 -05:00
config Update the OIDC sample config (#9695) 2021-03-29 15:40:11 +01:00
crypto Enable addtional flake8-bugbear linting checks. (#9659) 2021-03-24 09:34:30 -04:00
events Add type hints to misc. files. (#9676) 2021-03-24 06:49:01 -04:00
federation Make RateLimiter class check for ratelimit overrides (#9711) 2021-03-30 12:06:09 +01:00
groups Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
handlers Make RateLimiter class check for ratelimit overrides (#9711) 2021-03-30 12:06:09 +01:00
http Add type hints to DictionaryCache and TTLCache. (#9442) 2021-03-29 12:15:33 -04:00
logging Fix re.Pattern mypy error on 3.6 (#9703) 2021-03-29 09:40:45 -04:00
metrics Fix additional type hints from Twisted upgrade. (#9518) 2021-03-03 15:47:38 -05:00
module_api Record the SSO Auth Provider in the login token (#9510) 2021-03-04 14:44:22 +00:00
push Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
replication Make RateLimiter class check for ratelimit overrides (#9711) 2021-03-30 12:06:09 +01:00
res/templates Support not providing an IdP icon when choosing a username. (#9440) 2021-02-19 07:48:46 -05:00
rest Make RateLimiter class check for ratelimit overrides (#9711) 2021-03-30 12:06:09 +01:00
server_notices Add a type hints for service notices to the HomeServer object. (#9675) 2021-03-24 06:48:46 -04:00
spam_checker_api
state Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
static Add initial support for a "pick your IdP" page (#9017) 2021-01-05 11:25:28 +00:00
storage Add type hints to DictionaryCache and TTLCache. (#9442) 2021-03-29 12:15:33 -04:00
streams
util Add type hints to DictionaryCache and TTLCache. (#9442) 2021-03-29 12:15:33 -04:00
__init__.py 1.31.0rc1 2021-03-30 11:19:21 +01:00
event_auth.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
notifier.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
python_dependencies.py Fix the suggested pip incantation for cryptography (#9699) 2021-03-29 11:55:33 +01:00
secrets.py Add type hints to misc. files. (#9676) 2021-03-24 06:49:01 -04:00
server.py Make RateLimiter class check for ratelimit overrides (#9711) 2021-03-30 12:06:09 +01:00
types.py Convert Requester to attrs (#9586) 2021-03-10 18:15:56 +00:00
visibility.py Add type hints to misc. files. (#9676) 2021-03-24 06:49:01 -04:00