GeezerVison is showing github.com — App default credentials do not work on App Engine Managed VMs. · Issue #513 · googleapis/google-cloud-node
App default credentials do not work on App Engine Managed VMs. #513DescriptionWhen 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. Activitystephenplusplus commented on Apr 29, 2015 Have you tried against master? We just started using google-auth-library, but haven't made a release yet. theacodes commented on 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 commented on 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 commented on 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 commented on Apr 29, 2015 theacodes commented on Apr 29, 2015 Okay. That is exactly the problem.
- Managed VMs default service account doesn't include scopes to access datastore, pubsub, etc.
- The .yaml config to add the scope isn't current documented (it's a beta setting)
Once the settings are documented, we should add some documentation here around adding scopes to MVMs/GCE to allow access. ryanseys commented on 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 commented on Apr 29, 2015 It's not currently documented :( I'll create a new issue here once I get the docs published. ryanseys commented on Apr 29, 2015 Okey doke! I'll reopen this to keep tracking the issue. stephenplusplus commented on Nov 23, 2015 theacodes commented on 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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|