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?
When using version 0.8.5 of the Google Cloud Agents plugin, attempts to use machine environment credentials (ie, the
GOOGLE_APPLICATION_CREDENTIALSenv var being set to a json file) that make use of workload identity federation fail with the following error:It looks like the plugin uses a very old version of
google-auth-library-oauth2-httpwhich may be related?