ebarnouflant
ebarnouflant copied to clipboard
Scaleway object storage doesn't support signature v4 streaming
I was testing Scaleway's object storage with Carrierwave, and noticed that all my files were correctly uploaded, but corrupted. For instance a simple text file with hello would contain the following content:
6;chunk-signature=31a79bfb9914d6672f3888180217b5c958f8286a68be72e15d2d934eb9c8e99d
hello
0;chunk-signature=7b249d98f263bfd7d14a2e628587e7a5e18f8d095daee2c932d5b93b9a2c9e0b
It is actually due to Scaleway not supporting signature v4 streaming, which under the hood uses chunked-encoding. This is enabled by default in the fog-aws library, but can be disabled with enable_signature_v4_streaming: false.
After that, files were correctly uploaded to Scaleway.
Reference: https://github.com/fog/fog-aws/issues/523