Allow adding random delay to push (#15516)

This is to discourage timing based profiling on the push gateways.
This commit is contained in:
Erik Johnston authored and GitHub committed 2023-05-02 16:45:44 +00:00
1 parent 6aca4e7cb8
commit 4de271a7fc
5 files changed
+68 -2

No files matched your search

@@ -3442,6 +3442,9 @@ This option has a number of sub-options. They are as follows:
user has unread messages in. Defaults to true, meaning push clients will see the number of
rooms with unread messages in them. Set to false to instead send the number
of unread messages.
* `jitter_delay`: Delays push notifications by a random amount up to the given
duration. Useful for mitigating timing attacks. Optional, defaults to no
delay. _Added in Synapse 1.84.0._
Example configuration:
```yaml
@@ -3449,6 +3452,7 @@ push:
enabled: true
include_content: false
group_unread_count_by_room: false
jitter_delay: "10s"
```
---
## Rooms