D10Defect 16 of 17, in the order they close

No policy above the project

Several identities hold owner, and any of them can delete any firewall rule.

Severity
medium
Closes in
phase 6, Govern and tighten
Closed by
Hierarchical firewall policies
  • Your VPC
  • Run by Google
  • Firewall and access rules
  • Allowed traffic
  • Where it breaks
checked top to bottomFrom the internettcp:22 to any VMA project ownercan edit any rulein the projectorganization policynothing setD10VPC firewall rules · projectwhat a project owner writestoday: tcp:22 from 0.0.0.0/0every VMport 22edits, or deletes, any rule here

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

As foundNothing above the project. VPC rules are the first and only layer.

Wide by design - scroll it sideways.

Notes

open one at a time

1.

What it can cause

Any project owner can delete or loosen any firewall rule, by mistake or on purpose, and nothing above the project refuses it.
  • Any project owner can delete or loosen any firewall rule, by mistake or on purpose, and nothing above the project refuses it.
  • D1 happened exactly this way: one broad rule added inside the project, with no floor above it.
  • Every new project starts with no guardrails at all.
2.

Why it is wrong

Evaluation order. A layer above the project is consulted before any rule a project owner controls, and cannot be overridden from below.

VPC rules live inside the project, which is exactly where the trust problem is. A rule set at the org or folder level is evaluated first and cannot be overridden from below.

The idea

Evaluation order. A layer above the project is consulted before any rule a project owner controls, and cannot be overridden from below.

Learn it

3.

How you would find it

gcloud compute firewall-policies list --organization=ORG_ID
detect
gcloud compute firewall-policies list --organization=ORG_ID # surfaces anything attached ABOVE the projectgcloud compute networks get-effective-firewalls harbour-vpc
4.

The change that closes it

Org-level hierarchical policy denying 22 and 3389 from 0.0.0.0/0, evaluated before any project rule.
As found
Nothing above the project. VPC rules are the first and only layer.
Fixed
Org-level hierarchical policy denying 22 and 3389 from 0.0.0.0/0, evaluated before any project rule.
fix
gcloud compute firewall-policies create \  --organization=ORG_ID --short-name=harbour-baseline gcloud compute firewall-policies rules create 1000 \  --firewall-policy=harbour-baseline --direction=INGRESS --action=deny \  --src-ip-ranges=0.0.0.0/0 --layer4-configs=tcp:22,tcp:3389
5.

When to fix it

Phase 6, Govern and tighten

Phase 6, Govern and tighten, together with D1 and D11. Deleting the allow-all rule goes last, because it is the moment you find out what was quietly relying on it.

Cannot start until

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

Unblocks

Nothing waits on it.