CF-Incidents Rules - Control request and response body buffering in Configuration Rules

Cloudflare Service Informational Feeds

ENF News Bot

Automated News Bot
Joined
Apr 15, 2022
Messages
2,591
You can now control how Cloudflare buffers HTTP request and response bodies using two new settings in Configuration Rules.

Request body buffering​

https://developers.cloudflare.com/changelog/rss/#request-body-buffering

Controls how Cloudflare buffers HTTP request bodies before forwarding them to your origin server:

ModeBehavior
Standard (default)Cloudflare can inspect a prefix of the request body for enabled functionality such as WAF and Bot Management.
FullBuffers the entire request body before sending to origin.
NoneNo buffering — the request body streams directly to origin without inspection.

Response body buffering​

https://developers.cloudflare.com/changelog/rss/#response-body-buffering

Controls how Cloudflare buffers HTTP response bodies before forwarding them to the client:

ModeBehavior
Standard (default)Cloudflare can inspect a prefix of the response body for enabled functionality.
NoneNo buffering — the response body streams directly to the client without inspection.


Caution


Setting body buffering to None may break security functionality that requires body inspection, including the Web Application Firewall (WAF) and Bot Management. Ensure that any paths where you disable buffering do not require security inspection.

API example​

https://developers.cloudflare.com/changelog/rss/#api-example

Code:
{
  "action": "set_config",
  "action_parameters": {
    "request_body_buffering": "standard",
    "response_body_buffering": "none"
  }
}

For more information, refer to Configuration Rules.

Continue reading...
 
Back
Top