cloud-armor-crs-rule-upgrader
Upgrades Google Cloud Armor WAF security policies from legacy OWASP CRS 3.0/3.3 rulesets to CRS 4.22, remapping signatures, preserving exclusions, flagging breaking changes, and supporting safe in-pla
What it does
Upgrades Google Cloud Armor security policies from OWASP CRS 3.0 and 3.3 to OWASP CRS 4.22. Preserves signature opt-in and opt-out lists, translates evaluatePreconfiguredExpr to native evaluatePreconfiguredWaf dictionary parameters, remaps signature IDs to v042200, drops retired signature IDs, and updates structured preconfiguredWafConfig fine-tuning exclusions. Evaluates operational risk (High Breaking Change, Medium Attention Required, Low Clean Upgrade) including Method Enforcement breaking changes (PUT/PATCH/DELETE blocking) and sensitivity coverage expansions. Supports both in-place rule upgrades and smooth preview mode deployments with priority spacing and a 200-rule quota guardrail. Use when a user or agent needs to audit, upgrade, or transition Cloud Armor WAF rules to CRS 4.22. Don't use for non-WAF Cloud Armor rules (IP rate-limiting, geo-blocking, reCAPTCHA) or AWS/Azure WAF migrations.
Quality judgment
Exceptionally thorough skill covering prerequisites, risk classification, transformation logic, guardrails, and gotchas with concrete commands, ID lists, and edge cases (CVE signatures, empty targetRuleIds). Minor deductions: some examples are abstract placeholders rather than fully worked end-to-end cases, and the mandatory agent-behavior block is slightly verbose.