How to capture rclone S3 requests via mitproxy

First, start mitmproxy:

mitmproxy_start.sh
./mitmproxy

Now, in your rclone command, add the following environment variable

rclone_https_proxy_env.sh
https_proxy=http://localhost:8080

and add the following command line flag:

rclone_no_check_certificate.sh
--no-check-certificate

Full example

mitmproxy_rclone_example.sh
https_proxy=http://localhost:8080 rclone copy myfile :s3:mybucket/myfolder/ --no-check-certificate --s3-endpoint https://minio.mydomain.com --s3-access-key-id my-access-key --s3-secret-access-key my-secret-key --s3-region global

 


Check out similar posts by category: S3