StorageGRID で署名付きURLを使用してオブジェクトを読み込もうとすると、SignatureDoesNotMatchアラートが報告される
環境
- StorageGRID 11.5
- Amazon S3Client Javaライブラリ
- Java Spring Bootアプリケーション
問題
AmazoneS3Client Libraryを使用して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>