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-apis -
Create 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.