cloudflare / cloudflare/cloudflare-rs

After serialization of request payload bytes, verify payload size is <100MB

Open
#32 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
316
Forks
111
PR merge metrics
No merged PRs in 30d

Description

There are certain API endpoints on the Cloudflare API that allow users to send large payloads (e.g. the Workers KV bulk upload endpoint).

The API gateway will block any payloads over 100MB in size: this means we get an `APIFailure` like `Error(413, ApiErrors { other: {}, errors: [] })`. I think it could be worth introducing a general request validator function that checks for things like appropriate payload size, given that this will affect all API requests.

cc @ashleymichal

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.