Skip to content

Unable to use identity pool credentials #64

@a-wh

Description

@a-wh

When using version 0.8.5 of the Google Cloud Agents plugin, attempts to use machine environment credentials (ie, the GOOGLE_APPLICATION_CREDENTIALS env var being set to a json file) that make use of workload identity federation fail with the following error:

class com.google.auth.oauth2.IdentityPoolCredentials cannot be cast to class com.google.auth.oauth2.ServiceAccountCredentials (com.google.auth.oauth2.IdentityPoolCredentials and com.google.auth.oauth2.ServiceAccountCredentials are in unnamed module of loader jetbrains.buildServer.plugins.classLoaders.PluginStandaloneClassLoader @54a1447d)

It looks like the plugin uses a very old version of google-auth-library-oauth2-http which may be related?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions