aws-sdk-js-v3 icon indicating copy to clipboard operation
aws-sdk-js-v3 copied to clipboard

Anonymous AWS Credentials (for S3)

Open rix0rrr opened this issue 3 years ago • 4 comments

Describe the solution you'd like

I need to make anonymous requests to S3. In the Java SDK, there are AnonymousAWSCredentials for this: https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/auth/AnonymousAWSCredentials.html

Do you have something similar? How does it work for the JS SDK?

Describe alternatives you've considered

I grepped the repository for the word "anonymous" but nothing obvious came up.

Additional context

GetObject and ListObjects are operations that can be performed without authentication.

rix0rrr avatar Apr 29 '21 10:04 rix0rrr

Workaround:

new S3Client({
  signer: { sign: async (request) => request }
});

stephankaag avatar Sep 09 '21 18:09 stephankaag

@AllanZhengYP Sorry but #2949 is closed as duplicate of this one...??

How is a does a request for Synchronicity relate to a request to add classes present on other SDKs?

I want to + #2949 but I have 0 interest about #2321.

andrecadete avatar May 04 '22 17:05 andrecadete

Ditto to the above comment. @DewaldDeJager could you open a new ticket to resurface the issue you raised in #2949?

jordan-brough avatar Jun 10 '22 16:06 jordan-brough

This has been given the label workaround-available but the workaround seems to be to use V2 of the SDK. This is not really a work around.

tbartley avatar Aug 14 '22 20:08 tbartley

@tbartley FYI the workaround above works on V3.

mrclay avatar Aug 26 '23 14:08 mrclay

When trying the workaround for the listObjectsV2 command I get the error: InvalidRequest: The authorization mechanism you have provided is not supported. Please use Signature Version 4.

gurugautham avatar Sep 21 '23 08:09 gurugautham

Hi everyone, checking in here. Looks like the workaround mentioned above has been confirmed to work for both v2 and v3. For the team to consider this feature, we'll need to gather some specific use cases and how much impactful this will be for our customers. Please feel free to share your use case as well as 👍🏽 the original post for better reach. In the meantime, we suggest the available workaround and will check back here for updates.

aBurmeseDev avatar Dec 05 '23 10:12 aBurmeseDev

This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing.

github-actions[bot] avatar Dec 13 '23 00:12 github-actions[bot]

can you read the comments properly? Specifically andrecadete's comment.

"Sorry but #2949 is closed as duplicate of this one...??".

You close another issue as duplicate as this one, but this one is specific to signer!

kslbdev avatar Dec 21 '23 02:12 kslbdev

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

github-actions[bot] avatar Jan 05 '24 00:01 github-actions[bot]