radicle-dev / radicle-upstream

Desktop client for Radicle.
Other
616 stars 51 forks source link

Limit event payload size on proxy. #2849

Closed geigerzaehler closed 2 years ago

geigerzaehler commented 2 years ago

To make the event log harder to abuse and guard against errors that crate a lot of data inadvertently the proxy should limit the size of the event payload it accepts on the endpoint to publish an event. A good limit would be 4k for the JSON serialized payload.