Right now, if a user has AWS credentials setup as environment variables, boto will be utilized to download the file, even if it is publicly available. The workaround seems to be to use withr to temporarily unset these variables, but this might not be sustainable if how we check for private/public files ever changes.
We could add an option to force the public download method, e.g.:
force_public: defaults to FALSE; if TRUE, ignore any environment variables specifying AWS credentials and download the public file anonymously
Right now, if a user has AWS credentials setup as environment variables, boto will be utilized to download the file, even if it is publicly available. The workaround seems to be to use
withr
to temporarily unset these variables, but this might not be sustainable if how we check for private/public files ever changes.We could add an option to force the public download method, e.g.: