在尝试使用预签名URL读取对象时、StorageGRID 会报告SignatureDoesNotMatch警报
适用场景
- StorageGRID 11.5
- Amazon S3Client Java库
- Java Spring Boot应用程序
问题描述
访问由使用Amazon S3Client库的Spring启动应用程序生成的预签名URL时、StorageGRID 将做出以下响应:
<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>