Soft-warn about application default credentials using gcloud credentials
See original GitHub issueDue to user issues with quota and API enablement, the auth libraries should issue a soft warning (that can be silenced) when application default credentials uses user credentials from the Cloud SDK. They should not warn if the credentials for the cloud sdk are service account credentials.
Your application has authenticated using end user credentials from Google
Cloud SDK. We recommend that most server applications use service accounts
instead. If your application continues to use end user credentials from Cloud
SDK, you might receive a "quota exceeded" or "API not enabled" error. For
more information about service accounts, see
https://cloud.google.com/docs/authentication/.
Additional context: https://groups.google.com/a/google.com/forum/#!topic/client-auth-team/DKqrFw6lL1Q https://buganizer.corp.google.com/issues/64388723 https://github.com/GoogleCloudPlatform/google-auth-library-python/pull/266
Note: It’s unclear to me if this belongs here, or in the apiary client repo. Feel free to move if needed 😄
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Set up Application Default Credentials | Authentication
Application Default Credentials. Set up Application Default Credentials · How Application Default Credentials works · Troubleshoot your ADC setup.
Read more >Soft-warn about application default credentials using ...
Your application has authenticated using end user credentials from Google Cloud SDK. We recommend that most server applications use service ...
Read more >Difference between "gcloud auth application-default login ...
gcloud auth application -default login asks you to give access to google auth library instead.
Read more >What Are Google Cloud API Application Default Credentials?
Application Default Credentials (ADC) is a concept introduced by Google Cloud to simplify the process of authenticating applications when they ...
Read more >Google Cloud Application Default Credentials - Python
Google Cloud Application Default Credentials (ADC) is a strategy to locate sources that contain secrets/key material to create credentials.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Personally I still think the best solution is for the server to give a better error message. There simply isn’t a general warning mechanism to tie into in .NET. I don’t think we should be making any changes client-side here.
@theacodes: In reality it would often be end users rather than the developers, which makes it trickier. (But yes, a side-channel for warnings in general might be useful.)
I think so long as it starts failing with a good error message, I think that’s okay. We can put up prominent docs etc.