StorageGRID reports SignatureDoesNotMatch alert when attempting to read the object with presigned URL
Applies to
- StorageGRID 11.5
- AmazonS3Client Java Library
- Java Spring Boot Application
Issue
Accessing a pre-sign URL generated by Spring boot application using AmazoneS3Client Library, StorageGRID responds:
<Code>SignatureDoesNotMatch</Code>
<Message>The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. For more information, see REST Authentication and SOAP Authentication for details.</Message>
<Resource>/test/testing.txt?AWSAccessKeyId=XXXXXXXXXX&Signature=XXXXXXXXXXXX&Expires=xxx</Resource>
<RequestId>1342320211564360</RequestId>
<AWSAccessKeyId>XXXXXXXXXX</AWSAccessKeyId>