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

gs: add environment credentials override fixture #62

Open
dtrifiro opened this issue Sep 1, 2022 · 0 comments
Open

gs: add environment credentials override fixture #62

dtrifiro opened this issue Sep 1, 2022 · 0 comments

Comments

@dtrifiro
Copy link
Contributor

dtrifiro commented Sep 1, 2022

The cloud credentials messages in the logs are just debug messages, and are related to GCSFileSystem trying to get credentials from various sources (including environment) before giving up, see
https://github.com/fsspec/gcsfs/blob/fef6c0b098342a95990fd5aad8c3353d257f8d1b/gcsfs/credentials.py#L225-L242.

Note that these credentials are not used to access storage.googleapis.com because endpoint_url is overriden.

We could get rid of those warnings by setting GOOGLE_APPLICATION_CREDENTIALS to the path of a service account private key json, something similar to what we do with S3 with fake_creds_file. Trying to decide whether it's better to have a fixture for that here or in pytest-servers, although I'm opting for the former.

Originally posted by @dtrifiro in iterative/dvc-gs#8 (comment)

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