Skip to content

Remove reflection to get App Engine credentials and project ID #763

Description

@ajkannan

In production App Engine (standard runtime), reflection to get project ID and credentials won't work unless the user depends on appengine-api-1.0-sdk, even though the necessary jars are already provided by the runtime. To get around this, we should declare a "provided"-scoped dependency on that library in gcloud-java-core and use the AppIdentityService directly instead of through reflection to get credentials and the project ID.

Activity

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

Metadata

Metadata

Assignees

Labels

type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions