You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added:
- Automatic Cloud Armor tier detection — resolve_zone_id inspects
ddos_protection_config and rule_visibility to classify policies
as standard, plus, or enterprise.
Fixed:
- recaptcha_options_config validation error message now includes
zone_name/extension_key prefix.
Changed:
- Policy settings and linter registration now thread-safe.
Removed:
- Unused format_plan/count_changes from PolicySettingsFormatter.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/lint.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1920,9 +1920,9 @@ gcloud_armor_custom_rules:
1920
1920
1921
1921
**Severity:** WARNING
1922
1922
1923
-
Google Cloud Armor standard tier limits each security policy to **10 rules** that use `matches()` (regex) in their CEL expression. This check counts regex rules across all phases in the policy and warns when the limit is exceeded.
1923
+
Google Cloud Armor standard tier limits each security policy to **10 rules** that use `matches()` (regex) in their CEL expression. This check counts regex rules across all phases in the policy and warns when the limit is exceeded. The tier is auto-detected from the policy's DDoS and adaptive protection configuration (see [GA502](#ga502--rule-count-exceeds-tier-limit) for details); this rule only fires when the detected tier is `standard`.
1924
1924
1925
-
**Triggers on:** A policy with more than 10 rules using `matches()`.
1925
+
**Triggers on:** A standard-tier policy with more than 10 rules using `matches()`.
1926
1926
1927
1927
**Fix:** Reduce the number of regex rules, combine patterns, or upgrade to Cloud Armor Plus/Enterprise which has higher limits.
1928
1928
@@ -1940,7 +1940,7 @@ Cloud Armor has per-policy rule count limits that vary by tier:
1940
1940
| Plus | 512 |
1941
1941
| Enterprise | 1024 |
1942
1942
1943
-
This check compares the number of rules in a phase against the configured tier's limit. The tier is determined by the `plan_tier` setting (defaults to "enterprise", the most permissive).
1943
+
This check compares the number of rules in a phase against the tier's limit. The tier is auto-detected from the policy's `ddos_protection_config` and `adaptive_protection_config.layer7_ddos_defense_config.rule_visibility` during zone resolution (`standard`, `plus`, or `enterprise`). When detection isn't possible (e.g., the policy lacks these fields), the tier falls back to `enterprise` (the most permissive).
1944
1944
1945
1945
**Triggers on:** A phase with more rules than the tier allows.
0 commit comments