BufferLimit plug-in

Updated at:

In most cases, the sidecar proxy is designed to stream requests, so there is no limit on request size. When you use certain custom Envoy filters (such as Lua filters), these filters may require the request or response to be fully buffered. When an Envoy filter requires full buffering, the sidecar proxy allows 1024KiB of a request or response to be buffered by default. If your request body or response body exceeds this size, the following errors may occur: If the request body exceeds the buffer size limit, the sidecar proxy may return a 413 response (Request Too Large). If the response body exceeds the buffer size limit, the sidecar proxy may return a 500 response (Internal Server Error). Use the BufferLimit plug-in to adjust the maximum size of a request or response body that the sidecar proxy is allowed to buffer.

Configuration fields

Name

Data type

Required

Default value

Description

limit

uint32

Yes

1048576

Specifies the size, in bytes, of a request or response body from downstream that the sidecar proxy is allowed to buffer when it must buffer a request or response body.