GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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. #513

New issue
Copy link
New issue
Copy link
Closed
Closed
App default credentials do not work on App Engine Managed VMs.#513
Copy link
Assignees
theacodes
Labels
status: blockedResolving the issue is dependent on other work.

Description

@theacodes
theacodes
opened on Apr 28, 2015
Issue body actions

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.

Activity

Next
  1. stephenplusplus commented on Apr 29, 2015

    @stephenplusplus
    stephenplusplus
    on Apr 29, 2015
    Contributor
    More actions

    Have you tried against master? We just started using google-auth-library, but haven't made a release yet.

  2. theacodes commented on Apr 29, 2015

    @theacodes
    theacodes
    on Apr 29, 2015
    Author
    More actions

    Yes, this is against master. It's possible that managed VMs does not expose the service account from the underlying VM.

  3. ryanseys commented on Apr 29, 2015

    @ryanseys
    ryanseys
    on Apr 29, 2015
    Contributor
    More actions

    I think it should... I just came across this library which appears to provide that functionality (getting a token) from within Managed VMs.

  4. theacodes commented on Apr 29, 2015

    @theacodes
    theacodes
    on Apr 29, 2015
    Author
    More actions

    This might be that the service account associated with the managed VM doesn't have the datastore scope. Investigating and will update.

  5. ryanseys commented on Apr 29, 2015

    @ryanseys
    ryanseys
    on Apr 29, 2015
    Contributor
    More actions

    Yeah they seem to be hitting the same endpoint as long as it's working as it should.

  6. theacodes commented on Apr 29, 2015

    @theacodes
    theacodes
    on Apr 29, 2015
    Author
    More actions

    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.

  7. theacodes
    closed this as completedon Apr 29, 2015
  8. ryanseys commented on Apr 29, 2015

    @ryanseys
    ryanseys
    on Apr 29, 2015
    Contributor
    More actions

    @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?

  9. theacodes commented on Apr 29, 2015

    @theacodes
    theacodes
    on Apr 29, 2015
    Author
    More actions

    It's not currently documented :( I'll create a new issue here once I get the docs published.

  10. ryanseys commented on Apr 29, 2015

    @ryanseys
    ryanseys
    on Apr 29, 2015
    Contributor
    More actions

    Okey doke! I'll reopen this to keep tracking the issue.

  11. ryanseys
    reopened this on Apr 29, 2015
  12. stephenplusplus
    added
    auth
    on Apr 30, 2015
  13. stephenplusplus
    added
    status: blockedResolving the issue is dependent on other work.
    on Jun 30, 2015
  14. stephenplusplus commented on Nov 23, 2015

    @stephenplusplus
    stephenplusplus
    on Nov 23, 2015
    Contributor
    More actions

    The .yaml config to add the scope isn't current documented (it's a beta setting)

    @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 ..."

  15. theacodes commented on Nov 23, 2015

    @theacodes
    theacodes
    on Nov 23, 2015
    Author
    More actions

    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.

  16. 31 remaining items

  17. GautamSharda
    added a commit that references this issue on Feb 2, 2026

    chore: release 4.0.0 (#496)

    6bb066b
  18. sofisl
    added a commit that references this issue on Feb 3, 2026

    fix(docs): fix formatting of the docs (#513)

    a970edd
  19. GautamSharda
    added 2 commits that reference this issue on Feb 3, 2026

    fix(deps): update dependency @google-cloud/logging to v8 (#513)

    6a76d58

    chore: release 4.0.0 (#496)

    f165343
  20. sofisl
    added a commit that references this issue on Feb 4, 2026

    fix(deps): update dependency google-auth-library to v7 (#513)

    357ac8d
  21. sofisl
    added a commit that references this issue on Feb 25, 2026

    chore: update eslintignore config (#513)

    d0ee422
  22. GautamSharda
    added a commit that references this issue on Feb 25, 2026

    chore: update links in github issue templates (#513)

    5c624eb
  23. GautamSharda
    added a commit that references this issue on Mar 5, 2026

    fix: there is a free tier for logging (#513)

    dbeaad8
  24. sofisl
    added a commit that references this issue on Mar 5, 2026

    chore(deps): update dependency sinon to v21 (#513)

    3bc1eed
  25. GautamSharda
    added a commit that references this issue on Mar 12, 2026

    refactor: use explicit mocha imports (#513)

    6ec7071
  26. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    chore: update eslintignore config (googleapis#513)

    b73dd38
  27. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    fix(deps): update dependency @google-cloud/paginator to v2 (#513)

    ab23031

    fix(deps): update dependency @google-cloud/paginator to v2 (#513)

    85d944e
  28. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    fix(deps): update dependency @google-cloud/paginator to v2 (#513)

    ef59653
  29. thiyaguk09
    added a commit that references this issue on May 5, 2026

    fix(deps): update dependency @google-cloud/paginator to v2 (googleapi…

    dcbd1da
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @theacodes
    theacodes

Labels

status: blockedResolving the issue is dependent on other work.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.