π Google Project has a legacy network π’
- Contextual name: π Project has a legacy network π’
- ID:
/ce/ca/google/project/project-with-legacy-network
- Located in: π Google Project
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
RELIABILITY
Similar Policiesβ
- Cloud Conformity
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
In order to prevent use of legacy networks, a project should not have a legacy network configured. As of now, Legacy Networks are gradually being phased out, and you can no longer create projects with them. This recommendation is to check older projects to ensure that they are not using Legacy Networks.
Rationaleβ
Legacy networks have a single network IPv4 prefix range and a single gateway IP address for the whole network. The network is global in scope and spans all cloud regions. Subnetworks cannot be created in a legacy network and are unable to switch from legacy to auto or custom subnet networks. Legacy networks can have an impact for high network traffic projects and are subject to a single point of contention or failure.
Auditβ
From Google Cloud CLIβ
For each Google Cloud Platform project,
Set the project name in the Google Cloud Shell:
gcloud config set project <Project-ID>
List the networks configured in that project:
gcloud compute networks list
None of the listed networks should be in the
legacy
mode.... see more
Remediationβ
Remediationβ
From Google Cloud CLIβ
For each Google Cloud Platform project,
- Follow the documentation and create a non-legacy network suitable for the organization's requirements.
- Follow the documentation and delete the networks in the
legacy
mode.
policy.yamlβ
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags |
---|---|---|---|---|
πΌ CIS GCP v3.0.0 β πΌ 3.2 Ensure Legacy Networks Do Not Exist for Older Projects - Level 1 (Automated) | 1 | |||
πΌ Cloudaware Framework β πΌ Infrastructure Modernization | 9 |