You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
App default credentials do not work on App Engine Managed VMs. #513
When running locally or on Google Compute Engine, app default credentials are used to provide authentication without needed to provide a private key. However, this does not work when deployed to Managed VMs.
@jonparrott Thanks for investigating! Can you open a new issue and point to the docs that helped you resolve this issue so we know how to document it for our users?
This is a non-issue now, as all the requisite scopes for GCP APIs are now defaulted in MVMs. Users should never have to change the scopes. If they do, I consider that that's a bug on our end.
Activity
stephenplusplus commentedon Apr 29, 2015
Have you tried against master? We just started using google-auth-library, but haven't made a release yet.
theacodes commentedon Apr 29, 2015
Yes, this is against master. It's possible that managed VMs does not expose the service account from the underlying VM.
ryanseys commentedon Apr 29, 2015
I think it should... I just came across this library which appears to provide that functionality (getting a token) from within Managed VMs.
theacodes commentedon Apr 29, 2015
This might be that the service account associated with the managed VM doesn't have the datastore scope. Investigating and will update.
ryanseys commentedon Apr 29, 2015
Yeah they seem to be hitting the same endpoint as long as it's working as it should.
theacodes commentedon Apr 29, 2015
Okay. That is exactly the problem.
Once the settings are documented, we should add some documentation here around adding scopes to MVMs/GCE to allow access.
ryanseys commentedon Apr 29, 2015
@jonparrott Thanks for investigating! Can you open a new issue and point to the docs that helped you resolve this issue so we know how to document it for our users?
theacodes commentedon Apr 29, 2015
It's not currently documented :( I'll create a new issue here once I get the docs published.
ryanseys commentedon Apr 29, 2015
Okey doke! I'll reopen this to keep tracking the issue.
stephenplusplus commentedon Nov 23, 2015
@jonparrott if that's documented now (?), that's probably good enough. Maybe a simple line could be added to https://github.com/GoogleCloudPlatform/gcloud-common/tree/master/authentication with something like "To enable the scopes on a managed VM, see ..."
theacodes commentedon Nov 23, 2015
This is a non-issue now, as all the requisite scopes for GCP APIs are now defaulted in MVMs. Users should never have to change the scopes. If they do, I consider that that's a bug on our end.
31 remaining items
chore: release 4.0.0 (#496)
fix(docs): fix formatting of the docs (#513)
fix(deps): update dependency @google-cloud/logging to v8 (#513)
chore: release 4.0.0 (#496)
fix(deps): update dependency google-auth-library to v7 (#513)
chore: update eslintignore config (#513)
chore: update links in github issue templates (#513)
fix: there is a free tier for logging (#513)
chore(deps): update dependency sinon to v21 (#513)
refactor: use explicit mocha imports (#513)
chore: update eslintignore config (googleapis#513)
fix(deps): update dependency @google-cloud/paginator to v2 (#513)
fix(deps): update dependency @google-cloud/paginator to v2 (#513)
fix(deps): update dependency @google-cloud/paginator to v2 (#513)
fix(deps): update dependency @google-cloud/paginator to v2 (googleapi…