🛡️ Google Private Service Connect is not used for access to Google APIs🟢⚪
- Contextual name: 🛡️ Private Service Connect is not used for access to Google APIs🟢⚪
- ID:
/ce/ca/google/vpc/private-service-connect-for-google-apis - Tags:
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Description
Description
Private Service Connect for Google APIs lets workloads access
googleapis.comservices through private endpoints in a VPC. Configure it for VPCs that host sensitive or production workloads that call Google APIs.Rationale
Using Private Service Connect keeps API traffic on Google private networking and allows firewall rules to control which workloads can reach Google APIs. This reduces reliance on public internet paths and supports stronger egress control.
Impact
Private Service Connect endpoints and DNS changes must be planned per VPC. Incorrect DNS or firewall configuration can prevent workloads from reaching Google APIs.
Audit
From Google Cloud CLI
List VPC networks that host in-scope workloads:
gcloud compute networks list --format="table(name)"Confirm that a Private Service Connect address exists for each in-scope VPC:
gcloud compute addresses list \
--filter="purpose=PRIVATE_SERVICE_CONNECT" \
--format="table(name,address,purpose,network)"... see more
Remediation
Remediation
From Google Cloud CLI
Reserve an internal address for the Private Service Connect endpoint:
gcloud compute addresses create psc-apis-endpoint \
--global \
--purpose=PRIVATE_SERVICE_CONNECT \
--addresses={{private-ip-address}} \
--network=projects/{{project-id}}/global/networks/{{vpc-name}}Create the forwarding rule for Google APIs:
gcloud compute forwarding-rules create psc-apis \
--global \
--network={{vpc-name}} \
--address=psc-apis-endpoint \
--target-google-apis-bundle=all-apisCreate or update private DNS zones so
googleapis.comresolves to the endpoint IP address.Add firewall rules that allow only approved sources to reach the endpoint.
Test workload access to required Google APIs before removing existing public egress paths.
policy.yaml
Linked Framework Sections
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| 💼 CIS GCP v5.0.0 → 💼 3.9 Ensure Private Service Connect is Used for Access to Google APIs - Level 2 (Manual) | 1 | no data | |||
| 💼 Cloudaware Framework → 💼 Secure Access | 61 | no data |