Ensure that Private Service Connect (PSC) endpoints are configured within your Virtual Private Cloud (VPC) networks to privately access Google APIs and services, such as Cloud Storage, BigQuery, and Pub/Sub. Private Service Connect creates a secure, private tunnel between your VPC network and Google APIs so that API traffic never touches the public internet. A PSC endpoint for Google APIs consists of an internal IP address reserved within the VPC network and a global forwarding rule that targets Google's API bundle (all-apis or vpc-sc). The endpoint is paired with a private Cloud DNS zone for googleapis.com that resolves standard Google API hostnames to the endpoint's internal IP address, allowing workloads within the VPC to reach supported Google APIs without routing traffic through the public internet.
Accessing Google APIs over the public internet exposes traffic to network-level threats and requires managing NAT gateways or external IP addresses. Using Private Service Connect to access Google APIs keeps API traffic on Google's private network, strengthens your security posture, and, combined with firewall rules that restrict access to the endpoint, supports a zero-trust architecture with more granular control over which workloads can reach Google APIs.
Audit
To determine if Private Service Connect endpoints are configured for accessing Google APIs within your VPC networks, perform the following operations:
Remediation / Resolution
To create and configure Private Service Connect (PSC) endpoints for privately accessing Google APIs, perform the following operations:
References
- Google Cloud Platform (GCP) Documentation
- Private Service Connect
- Access global Google APIs through endpoints
- Private access options for services
- GCP Command Line Interface (CLI) Documentation
- gcloud projects list
- gcloud compute networks list
- gcloud compute addresses list
- gcloud compute addresses create
- gcloud compute forwarding-rules list
- gcloud compute forwarding-rules create
- gcloud dns managed-zones list
- gcloud dns managed-zones create
- gcloud dns record-sets list
- gcloud compute firewall-rules create