#The request signature we calculated does not match the signature you provided

1 messages · Page 1 of 1 (latest)

supple geode
#

When trying to use multipart upload with the following command:
curl -k -XPUT -T test.txt -I -i "https://140.110.26.244:10443/test-bucket-3/test.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXXXX%2F20241018%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20241018T024212Z&X-Amz-Expires=21600&X-Amz-Signature=XXXXXXXXXXX&X-Amz-SignedHeaders=host&partNumber=1&uploadID=XXXXXXXXXX"

We get this error message.
403 forbidden
<Code>SignatureDoesNotMatch
<Message>The request signature we calculated does not match the signature you provided

We tried with aws-sdk uploadparts, and it works, which mean that access and secret key is matching.
Problems might be in signed url

Do i miss anything in the header that result the unmatch of the key?

supple geode
#

Is that because we need to set the CORS in bucket?

rigid sigil
#

Which Version of StorageGRID?

supple geode
supple geode
#

@rigid sigil

Using js aws-sdk@2.858.0 with the following function to get signed url:

function createPresignedUrls(bucket, fileName, index, uploadId, cb){
let params = {
Bucket: bucket,
Key: fileName,
partNumber: index,
UploadId: uploadId,
Expires: 60 * 60 * 6
};
s3.getSignedUrl("uploadPart", params, cb);
}

Is this correct?

supple geode