When you run gcloud auth login or gcloud auth list, where is it storing the credentials?
https://developers.google.com/identity/protocols/application-default-credentials
Configuring/Using Credentials Via Cloud Sdk Distribution Of Gsutil. When gsutil is installed/used via the Cloud SDK ("gcloud"), credentials are stored by Cloud SDK in a non-user-editable file located under ~/. config/gcloud (any manipulation of credentials should be done via the gcloud auth command).
Well-Know-File: A JSON file in a location known to the gcloud command-line tool. On Windows, this is %APPDATA%/gcloud/application_default_credentials.
Credentials are the means of identifying an application or user to a service or API. Credentials can be obtained with three different types of accounts: service accounts, user accounts and external accounts. Credentials from service accounts identify a particular application.
Configurations are stored in your user config directory (typically ~/. config/gcloud on MacOS and Linux, or %APPDATA%\gcloud on Windows); you can find the location of your config directory by running gcloud info --format='value(config.
I found them. They are in ~/.config/gcloud/credentials. I was able to pass the default credentials to the docker image I'm working on by mounting them docker run --rm -it -v ~/.config/gcloud:/root/.config/gcloud alpine:3.4 sh
.
Windows:
C:\Users\%username%\AppData\Roaming\gcloud\credentials
C:\Users\%username%\AppData\Roaming\gcloud\legacy_credentials
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With