From dfc9d33eec540d9dd6c4a9aca2e513d3c3166ebd Mon Sep 17 00:00:00 2001 From: Fabrizio Date: Sat, 13 Apr 2024 10:37:46 +0100 Subject: [PATCH] fix: pass config on Signature (#450) --- src/http/plugins/signature-v4.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/http/plugins/signature-v4.ts b/src/http/plugins/signature-v4.ts index 2e453519..c28a1613 100644 --- a/src/http/plugins/signature-v4.ts +++ b/src/http/plugins/signature-v4.ts @@ -14,6 +14,7 @@ const { storageS3Region, isMultitenant, s3ProtocolPrefix, + s3ProtocolAllowForwardedHeader, s3ProtocolEnforceRegion, s3ProtocolAccessKeyId, s3ProtocolAccessKeySecret, @@ -110,6 +111,7 @@ async function createSignature( const signature = new SignatureV4({ enforceRegion: s3ProtocolEnforceRegion, + allowForwardedHeader: s3ProtocolAllowForwardedHeader, credentials: { accessKey: tenantId, secretKey: tenantAnonKey, @@ -129,6 +131,7 @@ async function createSignature( const signature = new SignatureV4({ enforceRegion: s3ProtocolEnforceRegion, + allowForwardedHeader: s3ProtocolAllowForwardedHeader, credentials: { accessKey: credential.accessKey, secretKey: credential.secretKey, @@ -148,6 +151,7 @@ async function createSignature( const signature = new SignatureV4({ enforceRegion: s3ProtocolEnforceRegion, + allowForwardedHeader: s3ProtocolAllowForwardedHeader, credentials: { accessKey: s3ProtocolAccessKeyId, secretKey: s3ProtocolAccessKeySecret,