anelendata / tap-bigquery

Singer.io tap for extracting data from BigQuery tables
Apache License 2.0
16 stars 33 forks source link

Support providing credentials via env var. #27

Closed cjohnhanson closed 1 year ago

cjohnhanson commented 1 year ago

This PR adds the ability to provide credentials via an environment variable for use cases where adding a client_secrets.json to the filesystem in the runtime environment is not feasible.

It was tested against a BigQuery cluster and was able to successfully access the cluster for discovery using only the new GOOGLE_APPLICATION_CREDENTIALS_STRING variable. It does not impact existing functionality if this variable is not set; it simply falls back to the default authentication mechanism.