mirror of
https://github.com/rclone/rclone.git
synced 2024-12-29 02:19:08 +01:00
54f2587c1e
Currently credentials are required to download a public bucket file which is not really necessary and makes automated usage more complex. Add a new option "anonymous" which when enabled configures the gcs backend to use an anonymous HTTP client. This of course only works for read access and trying to write will lead to errors like that: "googleapi: Error 401: Anonymous caller does not not have storage.objects.create access to the Google Cloud Storage object.", as expected. By default the anonymous access option is disabled so that the GCS Application Default Credentials are still used by default as before and an error is given if they can't be found. |
||
---|---|---|
.. | ||
googlecloudstorage_test.go | ||
googlecloudstorage.go |