distribution/registry/storage/driver/s3-aws
Pierre-Yves Ritschard 775cc6d632 v2 signer: correctly sort headers
The current code determines the header order for the
"string-to-sign" payload by sorting on the concatenation
of headers and values, whereas it should only happen on the
key.

During multipart uploads, since `x-amz-copy-source-range` and
`x-amz-copy-source` headers are present, V2 signatures fail to
validate since header order is swapped.

This patch reverts to the expected behavior.

Signed-off-by: Pierre-Yves Ritschard <pyr@spootnik.org>
2016-11-02 17:01:34 +01:00
..
s3.go Added new us-east-2 region for S3 2016-10-18 12:30:34 -04:00
s3_test.go Update to fix lint errors 2016-10-05 17:47:12 -07:00
s3_v2_signer.go v2 signer: correctly sort headers 2016-11-02 17:01:34 +01:00