Migrating to WAF with Yandex rule set support
Web Application Firewall analyzes requests to your resources using rule sets. Previously, only one rule set was available: OWASP Core Ruleset
To support new rule sets, the coreRuleSet object in the WAF interfaces will get a mandatory field: ruleSet.type. The coreRuleSet section will be nested into the ruleSet section, which sets the priority for processing a request by a rule set.
The type field may get the following values:
CORE: OWASP Core rule set.YA: Yandex rule set.ML: ML WAF (Yandex Malicious Score) rule set.
By default, the type field will have the RULE_SET_TYPE_UNSPECIFIED value, which means the requests will not be checked by any rule set.
To continue working with WAF, add this new field to the API function calls or Terraform manifest. In the management console
Warning
Starting September 9, 2025, the type field will become mandatory, while the ruleSet description will be only accepted in the new format. The previous format will no longer be supported.
rule_set {
action = "DENY"
is_enabled = true
priority = 1
core_rule_set {
inbound_anomaly_score = 2
paranoia_level = local.waf_paranoia_level
rule_set {
name = "OWASP Core Ruleset"
type = "CORE"
version = "4.0.0"
}
}
}
"coreRuleSet": {
"inboundAnomalyScore": 2,
"paranoiaLevel": 2,
"ruleSet": {
"name": "OWASP Core Ruleset",
"type": "CORE",
"version": "4.0.0"
}
}
For more information, see the update REST API method description for the WafProfile resource.
"core_rule_set": {
"inbound_anomaly_score": 2,
"paranoia_level": 2,
"rule_set": {
"name": "OWASP Core Ruleset",
"version": "4.0.0",
"type": "CORE"
}
}
For more information, see the WafProfile/Update gRPC API call description.