Visitar URL original
Implement a request body limit by stgraber · Pull Request #3137 · lxc/incus · GitHub
Skip to content

Implement a request body limit - #3137

Merged
stgraber merged 4 commits into
lxc:mainfrom
stgraber:hardening
Apr 2, 2026
Merged

stgraber merged 4 commits into
lxc:mainfrom
stgraber:hardening

Conversation

@stgraber

@stgraber stgraber commented Apr 2, 2026

Copy link
Copy Markdown
Member

This is something we've done in IncusOS and other projects for a little while now.
It gets reported by gosec and some other linters as the lack of limit can by used to cause a DoS.

stgraber added 4 commits April 1, 2026 23:31
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
As otherwise the new 1MiB limit prevents the test from saturating the database.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
@stgraber
stgraber merged commit cd449e8 into lxc:main Apr 2, 2026
209 of 212 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants