-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anonymous data access? #78
Comments
I tried to read the boto/botocore code and couldn't find how this is implemented. I think it would take some dedicated work to figure out the right way to do it. In the meantime, you could make HTTP requests to the S3 interface without any auth and that should work. |
Ok, thanks for taking time to look into this. I experienced the same frustration when looking at the boto code, so we will probably try using HTTP directly for now. |
Found a very simple fix for this, but I'm not sure if it satisfies the requirements for a pull request: |
Now works for |
Yes, it will if you create an AWSConfig object like the following and use it as follows:
Of course you can still specify a region, if needed. This works because in AWSCore the request body and the |
Nice, we should probably add a test for that for AWSS3.jl Probably fine to have |
I agree, but first there is this JuliaCloud/AWSS3.jl#40 issue I stumbled upon. I didn't really look into it deeply though. |
Currently the user is required to provide valid credentials in order to generate and aws_config. However, if a user only wants to access public buckets, this should not be necessary. For example in the python package
s3fs
https://github.com/dask/s3fs/blob/master/s3fs/core.py#L107 there is an option to connect to an S3 bucket without explicit authentication by the user. I think it is usingboto3
for the connection, which explicitly allows to setaws_access_key_id=None, aws_secret_access_key=None
https://github.com/boto/boto3/blob/02bdc5fa3fb6818f548a73d5e42dad84a946b52b/boto3/session.py#L48Would anonymous access to public AWS S3 buckets be possible with this package as well or is there some fundamental design decision that makes this impossible?
The text was updated successfully, but these errors were encountered: