google / guice

Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 11 and above, brought to you by Google.
https://github.com/google/guice
Apache License 2.0
12.51k stars 1.67k forks source link

GCP OAuth2 auth method failed through Java SDK when trying to build a Docker image in local #1800

Open silviaherf opened 9 months ago

silviaherf commented 9 months ago

Hey team,

I am getting this error

,"severity":"ERROR","stack_trace":"java.io.IOException: Unable to fetch ID token provider. This is expected when running the SDK locally with end-user credentials

when trying to build a DockerImage from local using Java 17. The point is that the Singleton decorator from the library is forcing this authentication in GCP even when I am stating a config key not to authenticate in Pubsub for the deployments of my service.

Could you add a feature not to override the server configuration on this authentication step?

Thanks!