From 056c979455a81d18e5ace2e03ae125ca27319878 Mon Sep 17 00:00:00 2001 From: bui Date: Wed, 15 Nov 2023 15:08:57 +0100 Subject: [PATCH] add support for labels to waap rules --- pkg/waf/waap_rules_collection.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/waf/waap_rules_collection.go b/pkg/waf/waap_rules_collection.go index 472cd494c..0b4caccdc 100644 --- a/pkg/waf/waap_rules_collection.go +++ b/pkg/waf/waap_rules_collection.go @@ -29,6 +29,8 @@ type WaapCollectionConfig struct { SecLangRules []string `yaml:"seclang_rules"` Rules []waap_rule.CustomRule `yaml:"rules"` + Labels map[string]interface{} `yaml:"labels"` //Labels is K:V list aiming at providing context the overflow + Data interface{} `yaml:"data"` //Ignore it hash string `yaml:"-"` version string `yaml:"-"`