hashicorp / go-getter

Package for downloading things from a string URL using a variety of protocols.
Mozilla Public License 2.0
1.62k stars 227 forks source link

feat: Access public S3 buckets by setting anonymous credentials when no key or token given #495

Open nervo opened 1 month ago

nervo commented 1 month ago

Public s3 buckets are right now inaccessible because one of aws key or token is mandatory in url.

The aws sdk handle this by providing a special global credentials.AnonymousCredentials variable, which is used in a strict comparison to provided credentials on requests.

This pr just assume that when no key or token is passed by url, the user want anonymous access, and can requests on public buckets.

hashicorp-cla-app[bot] commented 1 month ago

CLA assistant check
All committers have signed the CLA.