Add size limit to uploads #43
No reviewers
Labels
No labels
Area/API
Area/CLI
Area/Data Model
Area/Dependencies
Area/Deployment
Area/Documentation
Area/Downloading
Area/Mobile
Area/Teams
Area/UI
Area/Uploading
Area/Webhooks
Kind
Bug
Kind
Discussion
Kind
Feature
Kind
Security
Kind
Task
Kind
Testing
Priority
Critical
Priority
High
Priority/Low
Priority/Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
good first issue
help wanted
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
BlakeRain/parcel!43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "security/upload-hardening"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds a new option
--upload-size-limitthat enables a limit on the size of uploads in a single request. This should mitigate potential DoS with very large requests.If the
--upload-size-limitis set, then the maximum size of a request to the/uploadsendpoint is limited. This requires that theContent-Lengthheader is present, but will also count the bytes that are being read from the stream to ensure they do not exceed the limit in cases where theContent-Lengthheader is lying.36ff2f6dd48def80476d