Skip to content

Commit

Permalink
fix: add s3-outpost as s3 signing service
Browse files Browse the repository at this point in the history
Add s3-outpost as a s3 signing service so that when resolving the signer and the service is s3-outpost then, S3SignatureV4 is returned.
  • Loading branch information
yenfryherrerafeliz committed May 6, 2024
1 parent dc228b5 commit 63da371
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Signature/SignatureProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class SignatureProvider
private static $s3v4SignedServices = [
's3' => true,
's3control' => true,
's3-outpost' => true,
's3-object-lambda' => true,
's3express' => true
];
Expand Down
3 changes: 2 additions & 1 deletion tests/Signature/SignatureProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public function versionProvider()
['v4a', SignatureV4::class, 'eventbridge'],
['v4-s3express', S3ExpressSignature::class, 's3express'],
['v4-unsigned-body', SignatureV4::class, 'foo'],
['anonymous', AnonymousSignature::class, 's3']
['anonymous', AnonymousSignature::class, 's3'],
['s3v4', S3SignatureV4::class, 's3-outpost']
];
}

Expand Down

0 comments on commit 63da371

Please sign in to comment.