jenkinsci / jenkinsci/google-compute-engine-plugin

Integration Tests - Use default credential chain not requiring SA

Open
#497 5 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.