SDK reference / Models / Network

WafPolicy

Kind: class

Namespace: Egulu.Sdk.Models.Network

A web application firewall policy (founder, 22 Nov 2026; NET-14; proposed ADR-0685): Coraza with the OWASP Core Rule Set on the platform's edge. InDETECTION mode matched rules are logged and nothing is blocked; in PREVENTION mode a request that reaches the anomaly threshold, or matches a BLOCK rule,gets a 403. paranoiaLevel and excludedRuleIds tune the Core Rule Set (the rule set's own blocking rules cannot be excluded); custom rules matchaddresses, countries, paths, headers and query text and allow, block, log or rate-limit. A policy protects an application load balancer (whosewafPolicy names it) and the custom domains in customDomains. Matched rules are written to the project's logs under logName. Metered by themillion requests it inspects (waf-requests). Bot rules are only those the Core Rule Set offers. The policy is rendered to Coraza's directives with everyvalue checked and escaped, applied by the edge router as a whole and kept as last-known-good.

Properties

NameTypeJSON nameDescription
AnnotationsModels.Network.WafPolicy_annotations?annotationsAt most 256 KiB in all; never policy input.
AnomalyThresholdint?anomalyThresholdThe inbound anomaly score at which a request is blocked, 1 to 100; 5 (the rule set's default) when omitted.
AttachedToList<string>?attachedToWhat the policy protects now: `applicationLoadBalancers/{id}` and `customDomains/{id}`.
ConfigHashstring?configHashSHA-256 of the configuration the edge router serves now.
CreateTimeDateTimeOffset?createTimeThe createTime property
CustomDomainsList<string>?customDomainsCustom domains of the project (their IDs) the policy protects, at most 20.
CustomRulesList<Models.Network.WafCustomRule>?customRulesCustom rules, at most 50.
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DisplayNamestring?displayNameUp to 63 characters.
Etagstring?etag"{generation}"; send it back in If-Match.
ExcludedRuleIdsList<int?>?excludedRuleIdsCore Rule Set rules turned off, at most 20, each in 911000 to 948999 or 950000 to 958999.
LabelsModels.Network.WafPolicy_labels?labelsAt most 64.
LogMatchesbool?logMatchesWhether matched rules are written to the project's logs; true when omitted.
LogNamestring?logNameThe log they are written to; `waf` when omitted.
Modestring?modeDETECTION (default) or PREVENTION.
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
ParanoiaLevelint?paranoiaLevelThe Core Rule Set's paranoia level, 1 to 4; 1 when omitted.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
StateModels.Network.NetworkState?stateCurrent lifecycle state.
StateDetailsstring?stateDetailsWhat is not carried out yet, or what the edge refused, when something is not.
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property