Skip to content

Request body limiting #341

@m4tx

Description

@m4tx

Since we now support uploading files, it's especially important from the security perspective to limit the request body to avoid out-of-memory errors, Denial-of-Service attacks, and similar problems.

The limit should most probably be implemented globally and configurable via the TOML config. When the limit is exceeded in debug mode, a nice error saying that "the max request body size has been exceeded; you might need to increase the X config to avoid this". When the debug mode is off, a regular HTTP 413 Content Too Large should be displayed - this should go through the project's error handler, if any was set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    securityIssues and enhancements related to (cyber)security

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions