You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Raising an issue here nearly identical to one I just raised for 'bigrquery' at r-dbi/bigrquery#541
I'm working at an org where all traffic to Google needs to use Private or Restricted Google APIs. This involves DNS config with CNAMEs that point services like bigquery.googleapis.com to restricted.googleapis.com. This is for VPC Service Controls, and ensures all traffic stays off of the internet and within client networks/VPCs.
After a lot of headscratching about why this was not working with bigrquery (I received VPC SC errors, and digging into GCP logs saw that requests were coming over the internet from on-prem and thus being blocked Googleside), I dug into the source code on this repo and found the issue.
Due to the generic 'www.googleapis.com', the Google-provided processes for using private/restricted googleapis are blocked when using bigrquery. googleapis.com itself can't really be CNAMED to [restricted || private].googleapis.com as not all services (maps, analytics) are suitable for this.
Anyway this was a long winded way of asking - please consider one of the following options:
Update the BigQuery API URL globally to:
https://bigquery.googleapis.com/bigquery/v2/
and
https://bigquery.googleapis.com/upload/bigquery/v2/
Or - provide a mechanism (like a boolean flag) for users to use the 'bigquery.googleapis' url above instead of the current generic 'www.googleapis.com'
Hi,
Raising an issue here nearly identical to one I just raised for 'bigrquery' at r-dbi/bigrquery#541
I'm working at an org where all traffic to Google needs to use Private or Restricted Google APIs. This involves DNS config with CNAMEs that point services like bigquery.googleapis.com to restricted.googleapis.com. This is for VPC Service Controls, and ensures all traffic stays off of the internet and within client networks/VPCs.
After a lot of headscratching about why this was not working with bigrquery (I received VPC SC errors, and digging into GCP logs saw that requests were coming over the internet from on-prem and thus being blocked Googleside), I dug into the source code on this repo and found the issue.
Generally client libraries and SDKs talk to GCP services at [service].googleapis.com - eg https://bigquery.googleapis.com.
At a number of locations in bigqueryr, the URLs/hosts used to reach BQ are hardcoded to
www.googleapis.com
EG :R/jobs.R
and similar at R/listBigQuery.R, R/tables.R, R/datasets.R and others
Due to the generic 'www.googleapis.com', the Google-provided processes for using private/restricted googleapis are blocked when using bigrquery. googleapis.com itself can't really be CNAMED to [restricted || private].googleapis.com as not all services (maps, analytics) are suitable for this.
Anyway this was a long winded way of asking - please consider one of the following options:
Reference:
The text was updated successfully, but these errors were encountered: