-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gax pubsub ignores custom service account credentials and fetchs ADC instead #2631
Comments
@ernestoalejo Thanks for filing! @daspecster and I just noticed this earlier this week and a fix is needed ASAP. |
In GCE/GKE the error message sounded like an IAM problem with the service account. ( If someone here needs a quick workaround this will probably be enough until a new version gets released with the fix: import os
os.environ['GOOGLE_CLOUD_DISABLE_GRPC'] = 'true' |
@ernestoalejo That won't help, since |
Oh, sorry I forgot to mention that; I changed the env var before importing any other library. Good point. Will probably be better to define it directly in the container. |
@bjwatson I'm going to fix this in google-auth, but by all means fix it in gax. |
Ok, thanks @jonparrott. |
This is partially addressed by googleapis/gax-python#135 which allows credentials to be passed in. |
Pubsub with GRPC ignores custom service account credentials passed to the client and fetchs Application Default Credentials instead, raising an exception because it can't found them (obviously).
google/debian:jessie
(container)python --version
:Python 2.7.9
pip show google-cloud
,pip show google-<service>
orpip freeze
. This is the freeze output removing some Django-related lines:The text was updated successfully, but these errors were encountered: