-
-
Notifications
You must be signed in to change notification settings - Fork 99
Restrict total disk usage for spam protection #234
Copy link
Copy link
Open
Description
It would be nice to be able to specify a total size the attachments are allowed to occupy on disk, in order to prevent spammers from filling up the entire storage.
With the app running in a container it is hard to limit the disk usage when using a bind mount, so when exposing ots to the internet a malicious actor could be uploading lots of 64MB attachments (or what the configured limit for individual attachments is) and fill up the storage.
From my understanding a simple check if the currently occupied space is >= a set amount which then disables further uploads would be enough to prevent this attack.
Thank you for your work, I really like this project!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels