v.21.1Improvements

Add Limit for HTTP Redirects in S3 Storage Requests

Add limit for http redirects in request to S3 storage (s3_max_redirects). #17220 (ianton-ru).
Added a new setting s3_max_redirects to limit the number of HTTP redirects followed during requests to S3 storage.

Why it matters

This feature addresses the issue of uncontrolled HTTP redirects when ClickHouse requests data from S3-compatible storage. By limiting redirects, it prevents potential infinite redirect loops and improves request reliability and security.

How to use it

Set the s3_max_redirects parameter to a desired integer value in the ClickHouse configuration or query settings to control the maximum number of HTTP redirects permitted during S3 storage requests.