Skip to content

How to suppress warning about Google Cloud SDK credentials? #193

@lbergelson

Description

@lbergelson

I'm wondering how to suppress the warning:

WARNING: 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/.

Our application is a desktop application that uses the users default credentials to access files on the cloud and this warning is confusing to users. Is there a way to suppress it? I thought I'd found one but I accidentally asked in the php version of the auth library and not the java one.

Would it be possible to port the patch that they implemented to suppress the warning when the environment variable SUPPRESS_GCLOUD_CREDS_WARNING is set to true?

googleapis/google-auth-library-php#199 (comment)

Metadata

Metadata

Assignees

Labels

type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions