ruleset: add support for WAF payload logging
@@ -167,6 +167,7 @@ type RulesetRuleActionParameters struct {
Products []string `json:"products,omitempty"`
Overrides *RulesetRuleActionParametersOverrides `json:"overrides,omitempty"`
Rules []RulesetRuleActionParametersRules `json:"rules,omitempty"`
+ MatchedData *RulesetRuleActionParametersMatchedData `json:"matched_data,omitempty"`
}
// RulesetRuleActionParametersURI holds the URI struct for an action parameter.
@@ -217,6 +218,12 @@ type RulesetRuleActionParametersRules struct {
ScoreThreshold int `json:"score_threshold,omitempty"`
}
+// RulesetRuleActionParametersMatchedData holds the structure for WAF based
+// payload logging.
+type RulesetRuleActionParametersMatchedData struct {
+ PublicKey string `json:"public_key,omitempty"`
+}
+
// RulesetRule contains information about a single Ruleset Rule.
type RulesetRule struct {
ID string `json:"id,omitempty"`
