Skip to content

Commit 1052bdf

Browse files
committed
Add more explanations for ADC
1 parent 6d81fad commit 1052bdf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,12 @@ out:
239239

240240
#### application\_default
241241

242-
Use Application Default Credentials (ADC).
242+
Use Application Default Credentials (ADC). ADC is a strategy to locate Google Cloud Service Account credentials.
243+
244+
1. ADC checks to see if the environment variable `GOOGLE_APPLICATION_CREDENTIALS` is set. If the variable is set, ADC uses the service account file that the variable points to.
245+
2. ADC checks to see if `~/.config/gcloud/application_default_credentials.json` is located. This file is created by running `gcloud auth application-default login`.
246+
3. Use the default service account for credentials if the application running on Compute Engine, App Engine, Kubernetes Engine, Cloud Functions or Cloud Run.
247+
243248
See https://cloud.google.com/docs/authentication/production for details.
244249

245250
```yaml

0 commit comments

Comments
 (0)