D7Defect 10 of 17, in the order they close

Cloud Run egress is private-ranges-only

Internet calls leave from Google’s shared serverless pool.

Severity
high
Closes in
phase 5, Egress and load balancer
Closed by
all-traffic
Breaks
1 journey
  • Your VPC
  • Run by Google
  • Firewall and access rules
  • Allowed traffic
  • Where it breaks
harbour-apiCloud Runegress: private-rangesD7Google's shared poolserverless egressa new IP each timeoutside GCPPayGateallows two addressesharbour-egress-1, -2harbour-vpc · sn-a-appCloud NATharbour-egress-1, -2harbour-cacheMemorystore10.90.x.x · privatea private range: through the VPC either wayrejected · not on file

Only what D7 touches. Red is the defect and what it lets through; switch to fixed to see the same parts with only D7 closed. Struck IDs are closed.

As found--vpc-egress=private-ranges-only

Wide by design - scroll it sideways.

Notes

open one at a time

1.

What it can cause

Payments fail when PayGate sees an address it does not know - and the failures come and go with deploys and scaling, which makes them slow to trace.
  • Payments fail when PayGate sees an address it does not know - and the failures come and go with deploys and scaling, which makes them slow to trace.
  • Internet calls never enter the VPC, so its routes, Cloud NAT and every egress firewall rule are skipped. D9's fix would not apply to Cloud Run at all.
2.

Why it is wrong

Cloud Run egress modes. private-ranges-only reaches your database fine, which is why the broken payment path goes unnoticed - only all-traffic gives a stable egress IP.

The service reaches the private database fine, which is why nobody noticed. But PayGate sees an unpredictable source address, so whitelisting silently fails after a redeploy.

The idea

Cloud Run egress modes. private-ranges-only reaches your database fine, which is why the broken payment path goes unnoticed - only all-traffic gives a stable egress IP.

3.

How you would find it

gcloud run services describe harbour-api --region=asia-southeast1 --format=yaml | grep -E "vpc-access-egress|network-interfaces"
detect
gcloud run services describe harbour-api --region=asia-southeast1 \  --format=yaml | grep -E "vpc-access-egress|network-interfaces"
4.

The change that closes it

--vpc-egress=all-traffic - internet-bound traffic routes through Cloud NAT
As found
--vpc-egress=private-ranges-only
Fixed
--vpc-egress=all-traffic - internet-bound traffic routes through Cloud NAT
fix
gcloud run services update harbour-api \  --region=asia-southeast1 \  --network=harbour-vpc --subnet=sn-a-app \  --vpc-egress=all-traffic
5.

When to fix it

Phase 5, Egress and load balancer

Phase 5, Egress and load balancer, together with D9, D14, D13 and D15. The egress deny needs every external destination enumerated first, which you only know once the NAT path is proven.

Cannot start until

Nothing. It can start as soon as its phase does.

Unblocks

Nothing waits on it.

6.

Journeys it breaks

The API charges a card