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 — Support AE dev appserver · Issue #216 · googleapis/google-cloud-java

Support AE dev appserver #216

New issue
Copy link
New issue
Copy link
Closed
Closed
Support AE dev appserver#216
Copy link
Assignees
garrettjonesgoogle
Labels
api: coreauthpriority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@aozarov
aozarov
opened on Oct 6, 2015
Issue body actions

We need to understand what is the desired expectation when using gcloud-java on AE dev appserver.

The options are:

  1. use local services
  2. use production services

An issue with option (1) is that currently local dev app services such as Datastore are not accesible via the cloud interface (apiary or gRpc).

An issue with option (2) is that the current implementation detects that we are running on AE and automatically chooses the projectid and authentication mode.
This is nice and convenient in production but is an issue with dev appserver as the AppEngineAuthCredentials is based on AppIdentity which
will not work against production when used by dev appserver.

Activity

Next
  1. aozarov
    added
    auth
    api: core
    on Oct 6, 2015
  2. aozarov commented on Oct 6, 2015

    @aozarov
    aozarov
    on Oct 6, 2015
    ContributorAuthor
    More actions

    /cc @ludoch @pcostell

  3. aozarov commented on Oct 6, 2015

    @aozarov
    aozarov
    on Oct 6, 2015
    ContributorAuthor
    More actions

    Note that it is possible to use gcloud-java with dev appserver by explicitly specifying projectId (if different from the local appid) and using ApplicationDefaultAuthCredentials but I think the goal should be to make the same code work in both modes (prod or dev).

    Also, choosing this option seems to omit a warning.

  4. ludoch commented on Oct 6, 2015

    @ludoch
    ludoch
    on Oct 6, 2015
    Contributor
    More actions

    When you say AE dev app server, do you refer to the Python Devappserver that can also support Java Web apps for Cloud SDK integration or the current Java GAE SDK classic?

  5. aozarov commented on Oct 6, 2015

    @aozarov
    aozarov
    on Oct 6, 2015
    ContributorAuthor
    More actions

    I think we have the same issue for both types of dev appserver and I think we should provide the same solution for both cases.

  6. aozarov commented on Oct 6, 2015

    @aozarov
    aozarov
    on Oct 6, 2015
    ContributorAuthor
    More actions

    Though if we can only deal with one than I would say the non-classic is more important.

  7. johnshunfan commented on Oct 7, 2015

    @johnshunfan
    johnshunfan
    on Oct 7, 2015
    More actions

    /cc @lesv @tmatsuo @saturnism

  8. lesv commented on Oct 7, 2015

    @lesv
    lesv
    on Oct 7, 2015
    Contributor
    More actions

    Why won't DefaultAuthCredentials work if gcloud init has been run? That has both user credentials and a project ID.

  9. saturnism commented on Oct 7, 2015

    @saturnism
    saturnism
    on Oct 7, 2015
    More actions

    +1 to DefaultAuthCredentials. however iirc, appengine credential is a service account where you can add additional scopes, but gcloud auth login could've been a 3LO oauth2 where the scopes were predetermined during the authorization request. there is no way to add another scope except to re-auth...

  10. aozarov commented on Oct 7, 2015

    @aozarov
    aozarov
    on Oct 7, 2015
    ContributorAuthor
    More actions

    What do you think about the option of routing the calls to local services (fakes/emulators) when we detect that we run in a local dev appserver environment?

  11. saturnism commented on Oct 8, 2015

    @saturnism
    saturnism
    on Oct 8, 2015
    More actions

    i feel that's a good default behavior, what if they do want to run it against a remote server?

  12. aozarov commented on Oct 9, 2015

    @aozarov
    aozarov
    on Oct 9, 2015
    ContributorAuthor
    More actions

    I think they should be able to do that by explicitly specifying the production host of the service,
    its project id and using ApplicationDefaultAuthCredentials (which works today).

  13. lesv commented on Feb 23, 2017

    @lesv
    lesv
    on Feb 23, 2017
    Contributor
    More actions

    There was supposed to be a conversation about Cloud Fakes / Emulators, not sure of the status of that. I don't think this blocks GA.

  14. lesv
    added
    triaged for GA
    on Feb 23, 2017
  15. 33 remaining items

  16. github-actions
    added 3 commits that reference this issue on Sep 15, 2022

    deps: update dependency com.google.cloud:google-cloud-shared-dependen…

    00e262b

    chore(main): release 0.7.4 (#217)

    739f1c1

    chore(main): release 1.4.2 (#217)

    a80c934
  17. github-actions
    added 4 commits that reference this issue on Oct 4, 2022

    chore(main): release 0.6.3 (#229)

    1bdb368

    chore(main): release 1.3.4 (#236)

    919b220

    chore(main): release 1.3.1 (#205)

    858374e

    chore(main): release 1.2.1 (#224)

    f0e999d
  18. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore(java): enable generated-files-bot (#216)

    fe5219b
  19. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore(java): set yoshi-java as default CODEOWNER (#216)

    89fb0e7
  20. chingor13
    added a commit that references this issue on Feb 24, 2026

    Bump next snapshot (#216)

    24164bf
  21. chingor13
    added a commit that references this issue on Mar 12, 2026

    Bump next snapshot (#216)

    0de30da
  22. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    feat: add detach subscription rpc (#216)

    09866b0

    feat: add detach subscription rpc (#216)

    14d887f
  23. blakeli0
    added a commit that references this issue on May 18, 2026

    chore: switch to jreleaser and central.sonatype.com (#216)

    d3d399f
  24. benjaminp
    added a commit that references this issue on Jul 13, 2026

    deps: update dependency com.google.cloud:google-cloud-conformance-tes…

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

Metadata

Metadata

Assignees

  • @garrettjonesgoogle
    garrettjonesgoogle

Labels

api: coreauthpriority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

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.