Thanks to visit codestin.com
Credit goes to github.com

Skip to content

danielnorberg/google-cloud-java-default-project-bug-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

google-cloud-java-default-project-bug-repro

On a GCE host in the GCP project bad-food-17 with credentials for a service account in the project feisty-beverage-4711.

google-cloud-core 1.3.0 correctly defaults to the SA project:

GOOGLE_APPLICATION_CREDENTIALS=sa-key.json mvn -q compile exec:java -Dexec.mainClass=Repro -Dgoogle.cloud.core.version=1.3.0 | grep ServiceOptions.getDefaultProjectId
ServiceOptions.getDefaultProjectId(): feisty-beverage-4711

google-cloud-core 1.4.0+ incorrectly defaults to the GCE metadata project:

GOOGLE_APPLICATION_CREDENTIALS=sa-key.json mvn -q compile exec:java -Dexec.mainClass=Repro -Dgoogle.cloud.core.version=1.4.0 | grep ServiceOptions.getDefaultProjectId
ServiceOptions.getDefaultProjectId(): bad-food-17

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages