jenkinsci / jenkinsci/google-compute-engine-plugin
Integration Tests - Use default credential chain not requiring SA
Open
- Dominant language
- Java
- Stars
- 58
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Description
Currently the integration tests expect to create a service account and export it to environment variables
```
GOOGLE_CREDENTIALS_FILE or GOOGLE_CREDENTIALS
GOOGLE_SA_NAME
```
it is bad practice and should try to use the default credentials instead.
Currently simply using the default credential path `~/.config/gcloud/application_default_credentials.json` is not working - need to make appropriate changes to the credential reading and test automations.
See https://github.com/jenkinsci/google-compute-engine-plugin/pull/495/files/79b8ffdb9a7ad456b7ea013e88802f2ea3cd1046#r1895805984
Contributor guide
Assessment
This issue has not been assessed yet.