googleapis / google-cloud-go

Google Cloud Client Libraries for Go.
https://cloud.google.com/go/docs/reference
Apache License 2.0
3.72k stars 1.27k forks source link

auth: have quota project override in credentials package #10808

Open codyoss opened 2 weeks ago

codyoss commented 2 weeks ago

We should allow users to explicitly set the value returned by quota project getter. This would also allow us to clean up so logic in the transport packages that is needed today because we can't pass the override from the client options down to the credentials package today. There is a TODO in #10807 about this work.

codyoss commented 2 weeks ago

Said logic:

https://github.com/googleapis/google-cloud-go/blob/d8a53d60472e8066507559478ce5554cfd794339/auth/httptransport/transport.go#L71-L75

and

https://github.com/googleapis/google-cloud-go/blob/d8a53d60472e8066507559478ce5554cfd794339/auth/grpctransport/grpctransport.go#L268-L272