From 836a9221820e40c1e8da419293c253b909c8f1a1 Mon Sep 17 00:00:00 2001 From: Paul Carroll Date: Thu, 2 Feb 2023 15:30:22 -0500 Subject: [PATCH] use AWS sign v4 --- src/RemoteResourceS3Controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/RemoteResourceS3Controller.js b/src/RemoteResourceS3Controller.js index 29fa1ee8..06f49195 100644 --- a/src/RemoteResourceS3Controller.js +++ b/src/RemoteResourceS3Controller.js @@ -63,6 +63,7 @@ module.exports = class RemoteResourceS3Controller extends BaseDownloadController let { accessKeyId, secretAccessKey } = await this._fetchHmacSecrets(hmac); objectPath.set(options, 'aws.key', accessKeyId); objectPath.set(options, 'aws.secret', secretAccessKey); + objectPath.set(options, 'aws.sign_version', 4); } else if (iam) { let bearerToken = await this._fetchS3Token(iam); objectPath.set(options, 'headers.Authorization', `bearer ${bearerToken}`);