summary refs log tree commit diff
diff options
context:
space:
mode:
authorSean Quah <8349537+squahtx@users.noreply.github.com>2022-11-18 18:10:01 +0000
committerGitHub <noreply@github.com>2022-11-18 18:10:01 +0000
commit78e23eea056cbf75b9478140f17699195dd490f2 (patch)
tree44585324ed557dc60d345ee4bf735ca3e95673a1
parentEnable 'strict_equality' checking for mypy (#14452) (diff)
downloadsynapse-78e23eea056cbf75b9478140f17699195dd490f2.tar.xz
Reduce default third party invite rate limit to 216 invites per day (#14487)
The previous default was the same as the `rc_message` rate limit, which
defaults to 17,280 per day.

Signed-off-by: Sean Quah <seanq@matrix.org>
-rw-r--r--changelog.d/14487.misc1
-rw-r--r--synapse/config/ratelimiting.py5
2 files changed, 2 insertions, 4 deletions
diff --git a/changelog.d/14487.misc b/changelog.d/14487.misc
new file mode 100644
index 0000000000..f6b47a1d8e
--- /dev/null
+++ b/changelog.d/14487.misc
@@ -0,0 +1 @@
+Reduce default third party invite rate limit to 216 invites per day.
diff --git a/synapse/config/ratelimiting.py b/synapse/config/ratelimiting.py
index 1ed001e105..5c13fe428a 100644
--- a/synapse/config/ratelimiting.py
+++ b/synapse/config/ratelimiting.py
@@ -150,8 +150,5 @@ class RatelimitConfig(Config):
 
         self.rc_third_party_invite = RatelimitSettings(
             config.get("rc_third_party_invite", {}),
-            defaults={
-                "per_second": self.rc_message.per_second,
-                "burst_count": self.rc_message.burst_count,
-            },
+            defaults={"per_second": 0.0025, "burst_count": 5},
         )