---
id: "google-cloud-armor"
type: "component"
kind: "waf"
provider: "gcp"
category: "security"
docs: "https://cloud.google.com/armor/docs/cloud-armor-overview"
url: "https://localhost:3000/catalogue/components/google-cloud-armor"
---

# Google Cloud Armor

Edge security policy with WAF rules, rate limiting and DDoS defence.

| | |
|---|---|
| Provider | [gcp](https://localhost:3000/catalogue?provider=gcp) |
| Kind | [Web application firewall](https://localhost:3000/catalogue/kinds/waf) |
| Category | Security |
| Official docs | [https://cloud.google.com/armor/docs/cloud-armor-overview](https://cloud.google.com/armor/docs/cloud-armor-overview) |

## Properties

| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| `adaptiveProtection` | boolean | — | no | — | inherited |
| `botProtection` | boolean | — | no | — | inherited |
| `customRuleCount` | integer | — | no | — | inherited |
| `defaultRuleAction` | enum | `allow`, `deny` | no | "deny" | inherited |
| `managed` | boolean | — | no | false | **true** |
| `managedRuleSet` | string | — | no | — | inherited |
| `mode` | enum | `detection`, `prevention`, `off` | no | — | **"prevention"** |
| `policyType` | enum | `backend`, `edge`, `network-edge`, `internal-service` | no | "backend" | inherited |
| `preconfiguredWafRules` | boolean | — | no | false | inherited |
| `rateLimiting` | boolean | — | no | — | inherited |

Bold values are the ones this component pins.

## Rules that apply · 0

No rule selects this kind or its category.

## Other products of the same kind · 13

- [Web Application Firewall](https://localhost:3000/catalogue/components/alibaba-waf.md) `alibaba-waf` — alibabacloud
- [AWS WAF web ACL](https://localhost:3000/catalogue/components/aws-waf.md) `aws-waf` — aws
- [AWS WAF Classic](https://localhost:3000/catalogue/components/aws-waf-classic.md) `aws-waf-classic` — aws
- [Azure Web Application Firewall](https://localhost:3000/catalogue/components/azure-web-application-firewall.md) `azure-web-application-firewall` — azure
- [Firewall for AI](https://localhost:3000/catalogue/components/cloudflare-firewall-for-ai.md) `cloudflare-firewall-for-ai` — cloudflare
- [Cloudflare WAF](https://localhost:3000/catalogue/components/cloudflare-waf.md) `cloudflare-waf` — cloudflare
- [Coraza](https://localhost:3000/catalogue/components/coraza.md) `coraza` — default
- [Imperva Application Security](https://localhost:3000/catalogue/components/imperva.md) `imperva` — default
- [ModSecurity](https://localhost:3000/catalogue/components/modsecurity.md) `modsecurity` — default
- [NAXSI](https://localhost:3000/catalogue/components/naxsi.md) `naxsi` — default
- [Generic web application firewall](https://localhost:3000/catalogue/components/waf.md) `waf` — default
- [reCAPTCHA Enterprise](https://localhost:3000/catalogue/components/google-recaptcha-enterprise.md) `google-recaptcha-enterprise` — gcp
- [Web Application Firewall](https://localhost:3000/catalogue/components/oci-waf.md) `oci-waf` — oci

## Use it in a design

```yaml
nodes:
  - { id: "google-cloud-armor", component: "google-cloud-armor" }
```

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# Google Cloud Armor security policy: request filtering, WAF and rate limiting in front of load balancers and CDN.
# Defaults from "Security policy overview" and "Configure security policies": every policy carries a default rule at priority 2147483647 whose action is deny, and rules are not in preview mode unless --preview is passed, so the policy enforces.
schemaVersion: "1"
type: "component"
id: "google-cloud-armor"
kind: "waf"
provider: "gcp"
docs: "https://cloud.google.com/armor/docs/cloud-armor-overview"
defaults:
  managed: true
  mode: "prevention"
properties:
  policyType:
    type: "enum"
    values: ["backend", "edge", "network-edge", "internal-service"]
    default: "backend"
  defaultRuleAction:
    type: "enum"
    values: ["allow", "deny"]
    default: "deny"
  preconfiguredWafRules:
    type: "boolean"
    default: false
  adaptiveProtection:
    type: "boolean"
```

Human page: https://localhost:3000/catalogue/components/google-cloud-armor
