Skip to content

Restrict total disk usage for spam protection #234

@transferae

Description

@transferae

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions