# rclone --config s3test.conf lsf fastly:/ --s3-endpoint http://127.0.0.1:2025/data -vvv
2025/08/23 17:24:52 DEBUG : rclone: Version "v1.71.0" starting with parameters ["rclone" "--config" "s3test.conf" "lsf" "fastly:/" "--s3-endpoint" "http://127.0.0.1:2025/data" "-vvv"]
2025/08/23 17:24:52 DEBUG : Creating backend with remote "fastly:/"
2025/08/23 17:24:52 DEBUG : Using config file from "/root/s3test.conf"
2025/08/23 17:24:52 DEBUG : fastly: detected overridden config - adding "{h7Aen}" suffix to name
2025/08/23 17:24:52 DEBUG : fs cache: renaming cache item "fastly:/" to be canonical "fastly{h7Aen}:"
2025/08/23 17:24:52 ERROR : : error listing: operation error S3: ListBuckets, https response error StatusCode: 403, RequestID: , HostID: , api error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
2025/08/23 17:24:52 DEBUG : 5 go routines active
2025/08/23 17:24:52 NOTICE: Failed to lsf with 2 errors: last error was: error in ListJSON: operation error S3: ListBuckets, https response error StatusCode: 403, RequestID: , HostID: , api error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
The authentication error only appears when the --baseurl flag is used.
It looks like S3 v4 auth includes the url path (?) in the signature calculation, but Rclone is not doing this correctly.
$ rclone serve s3 --addr 127.0.0.1:2025 --auth-key test,test --baseurl rclone ~/Temp/test -vv
2025/08/24 14:21:28 DEBUG : rclone: Version "v1.71.0" starting with parameters ["rclone" "serve" "s3" "--addr" "127.0.0.1:2025" "--auth-key" "test,test" "--baseurl" "rclone" "/Users/kptsky/Temp/test" "-vv"]
2025/08/24 14:21:28 DEBUG : Creating backend with remote "/Users/kptsky/Temp/test"
2025/08/24 14:21:28 DEBUG : Using config file from "/Users/kptsky/.config/rclone/rclone.conf"
2025/08/24 14:21:28 DEBUG : Local file system at /Users/kptsky/Temp/test: Using hash md5 for ETag
2025/08/24 14:21:28 INFO : Local file system at /Users/kptsky/Temp/test: poll-interval is not supported by this remote
2025/08/24 14:21:28 NOTICE: Local file system at /Users/kptsky/Temp/test: Starting s3 server on [http://127.0.0.1:2025/rclone/]
2025/08/24 14:21:38 INFO : serve s3: Access Denied:%!(EXTRA string=127.0.0.1:64217, string==>, *url.URL=/?x-id=ListBuckets)
$ rclone lsf s3rclone: --s3-endpoint http://127.0.0.1:2025/rclone -vv
2025/08/24 14:29:35 DEBUG : rclone: Version "v1.71.0" starting with parameters ["rclone" "lsf" "s3rclone:" "--s3-endpoint" "http://127.0.0.1:2025/rclone" "-vv"]
2025/08/24 14:29:35 DEBUG : Creating backend with remote "s3rclone:"
2025/08/24 14:29:35 DEBUG : Using config file from "/Users/kptsky/.config/rclone/rclone.conf"
2025/08/24 14:29:35 DEBUG : s3rclone: detected overridden config - adding "{Ugr4a}" suffix to name
2025/08/24 14:29:35 DEBUG : S3 root: Disabling multipart uploads
2025/08/24 14:29:35 DEBUG : fs cache: renaming cache item "s3rclone:" to be canonical "s3rclone{Ugr4a}:"
2025/08/24 14:29:35 ERROR : error listing: operation error S3: ListBuckets, https response error StatusCode: 403, RequestID: , HostID: , api error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
2025/08/24 14:29:35 DEBUG : 7 go routines active
2025/08/24 14:29:35 NOTICE: Failed to lsf with 2 errors: last error was: error in ListJSON: operation error S3: ListBuckets, https response error StatusCode: 403, RequestID: , HostID: , api error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
I think it deserves its own github issue:)
Would you mind to create one and refer to this thread?