Skip to content
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

Question: how to not sign request? #422

Open
bart1 opened this issue Aug 24, 2022 · 1 comment
Open

Question: how to not sign request? #422

bart1 opened this issue Aug 24, 2022 · 1 comment

Comments

@bart1
Copy link
Contributor

bart1 commented Aug 24, 2022

For some buckets it is desirable to not sign request (e.g. noaa-nexrad-level2). On the command line this can be done using --no-sign-request. aws.s3 does a good attempt to retrieve credentials, meaning if I have credentials in the .aws directory it tries to sign the request, resulting in a failure to retrieve data. Is there a way in the package to explicitly not sign requests?

On the command line for me this fails:
aws s3 ls --recursive s3://noaa-nexrad-level2/2010/01/01/TJUA/
While this works:
aws s3 ls --no-sign-request --recursive s3://noaa-nexrad-level2/2010/01/01/TJUA/

@bart1
Copy link
Contributor Author

bart1 commented Aug 25, 2022

Thinking a bit more about this might be resolved by adding an argument anonymous = TRUE/FALSE/no_sign_request=TRUE/FALSE to aws.signature::locate_credentials (s3HTTP passes arguments to that function). This also seems to relate to this issue: cloudyr/aws.signature#61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant