Skip to main content

Overview

Address Groups in Google Cloud Armor Enterprise hold a central IP deny list that several security policies can use. This page explains how to connect the OneFirewall WCF Agent to an Address Group so the deny list is updated automatically.

Prerequisites

Address Groups with purpose = CLOUD_ARMOR require the project to be enrolled in Cloud Armor Enterprise. Without it, you cannot create or modify address groups. If you downgrade, all security policies referencing address groups will be frozen (read-only).

Cloud Armor Enterprise

The GCP project must be enrolled in the Enterprise tier. On downgrade, security policies referencing address groups become read-only until those rules are removed.

Terraform Provider

The google_network_security_address_group resource requires the google-beta provider in your Terraform setup.

Required IAM Permissions for the Service Account

The Terraform service account needs these roles:
In production, use a custom role with only the required permissions instead of broad roles such as roles/editor.

Address Group Limits & Quota

The capacity of an address group cannot be changed after creation. Choose it before deploying.
To increase quota limits, the service account needs the serviceusage.quotas.update permission, included in the Owner, Editor, and Quota Administrator roles. Requests can be submitted from the GCP Console under IAM & Admin → Quotas.

Step 1: Configure the google-beta Provider

terraform.tf

Step 2: Create the Address Group

address_group.tf
The items field can also be managed externally via gcloud or the API, without re-running Terraform every time you add or remove an IP.

Step 3: Create the Security Policy with the Deny Rule

security_policy.tf

Step 4: Attach the Policy to a Backend Service

backend.tf

Step 5: Update the Deny List Without Terraform

To add or remove IPs without Terraform, use gcloud:

Step 6: Reuse the Address Group Across Multiple Security Policies

Several security policies can reference the same address group:
multi_policy.tf

Step 7: Handle a CDN with Masked IP (X-Forwarded-For)

multi_policy.tf

Notes