Skip to content

Commit

Permalink
fix: pass config on Signature (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
fenos authored Apr 13, 2024
1 parent 577784c commit dfc9d33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/http/plugins/signature-v4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const {
storageS3Region,
isMultitenant,
s3ProtocolPrefix,
s3ProtocolAllowForwardedHeader,
s3ProtocolEnforceRegion,
s3ProtocolAccessKeyId,
s3ProtocolAccessKeySecret,
Expand Down Expand Up @@ -110,6 +111,7 @@ async function createSignature(

const signature = new SignatureV4({
enforceRegion: s3ProtocolEnforceRegion,
allowForwardedHeader: s3ProtocolAllowForwardedHeader,
credentials: {
accessKey: tenantId,
secretKey: tenantAnonKey,
Expand All @@ -129,6 +131,7 @@ async function createSignature(

const signature = new SignatureV4({
enforceRegion: s3ProtocolEnforceRegion,
allowForwardedHeader: s3ProtocolAllowForwardedHeader,
credentials: {
accessKey: credential.accessKey,
secretKey: credential.secretKey,
Expand All @@ -148,6 +151,7 @@ async function createSignature(

const signature = new SignatureV4({
enforceRegion: s3ProtocolEnforceRegion,
allowForwardedHeader: s3ProtocolAllowForwardedHeader,
credentials: {
accessKey: s3ProtocolAccessKeyId,
secretKey: s3ProtocolAccessKeySecret,
Expand Down

0 comments on commit dfc9d33

Please sign in to comment.