synapse-product/synapse
Brendan Abolivier a4c3a361b7
Add rate-limiting on registration (#4735)
* Rate-limiting for registration

* Add unit test for registration rate limiting

* Add config parameters for rate limiting on auth endpoints

* Doc

* Fix doc of rate limiting function

Co-Authored-By: babolivier <contact@brendanabolivier.com>

* Incorporate review

* Fix config parsing

* Fix linting errors

* Set default config for auth rate limiting

* Fix tests

* Add changelog

* Advance reactor instead of mocked clock

* Move parameters to registration specific config and give them more sensible default values

* Remove unused config options

* Don't mock the rate limiter un MAU tests

* Rename _register_with_store into register_with_store

* Make CI happy

* Remove unused import

* Update sample config

* Fix ratelimiting test for py2

* Add non-guest test
2019-03-05 14:25:33 +00:00
..
_scripts Fix flake8 (#4519) 2019-01-30 10:53:17 +00:00
api Add rate-limiting on registration (#4735) 2019-03-05 14:25:33 +00:00
app Allow /keys/{changes,query} API to run on worker 2019-03-04 18:30:01 +00:00
appservice Run the AS senders as background processes (#4189) 2018-12-04 10:53:49 +01:00
config Add rate-limiting on registration (#4735) 2019-03-05 14:25:33 +00:00
crypto raise_from already raises 2019-02-25 14:34:03 +00:00
events Enable room version v3 2019-01-29 23:09:10 +00:00
federation Remove unnecessary dollar signs 2019-03-04 15:25:12 +00:00
groups Merge branch 'develop' of github.com:matrix-org/synapse into anoa/public_rooms_federate_develop 2019-02-26 14:23:40 +00:00
handlers Add rate-limiting on registration (#4735) 2019-03-05 14:25:33 +00:00
http Minor docstring fixes for MatrixFederationAgent (#4765) 2019-02-28 16:24:01 +00:00
metrics Add metrics for number of outgoing EDUs, by type (#4695) 2019-02-20 14:13:14 +00:00
module_api Fix registration on workers (#4682) 2019-02-20 18:47:31 +11:00
push Add missing return 2019-02-22 15:27:40 +00:00
replication Add rate-limiting on registration (#4735) 2019-03-05 14:25:33 +00:00
res/templates Ship the email templates as package_data 2018-10-17 16:46:02 +01:00
rest Add rate-limiting on registration (#4735) 2019-03-05 14:25:33 +00:00
server_notices Merge branch 'develop' of github.com:matrix-org/synapse into erikj/admin_contact 2018-08-24 17:00:37 +01:00
state Enable room version v3 2019-01-29 23:09:10 +00:00
static switch from google.com to recaptcha.net for reCAPTCHA (#4731) 2019-02-25 11:15:36 -08:00
storage Merge pull request #4699 from matrix-org/erikj/stop_fed_not_in_room 2019-03-05 09:32:33 +00:00
streams Fix develop because I broke it :( (#3535) 2018-07-14 09:51:00 +10:00
util Add a caching layer to .well-known responses (#4516) 2019-01-30 10:55:25 +00:00
__init__.py 0.99.2 2019-03-01 10:55:44 +00:00
event_auth.py Merge branch 'develop' of github.com:matrix-org/synapse into erikj/redactions_eiah 2019-01-29 22:58:38 +00:00
notifier.py Remove redundant PreserveLoggingContext 2019-03-04 18:31:18 +00:00
python_dependencies.py Merge pull request #4632 from matrix-org/erikj/basic_sentry 2019-02-18 17:22:45 +00:00
secrets.py Port over enough to get some sytests running on Python 3 (#3668) 2018-08-20 23:54:49 +10:00
server.py Split DeviceHandler into master and worker 2019-03-04 18:29:26 +00:00
server.pyi Move from TravisCI to BuildKite (#4752) 2019-02-27 13:03:14 -08:00
types.py Factor SSO success handling out of CAS login (#4264) 2018-12-07 13:10:07 +01:00
visibility.py clarify comments 2019-03-05 09:16:35 +00:00