This commit is contained in:
bui 2023-09-19 08:54:31 +02:00
parent a8321b5cc5
commit 42341222df
2 changed files with 11 additions and 4 deletions

View file

@ -34,8 +34,9 @@ func GetHookEnv(w *WaapRuntimeConfig, request ParsedRequest) map[string]interfac
"RemoveInbandRuleByID": w.RemoveInbandRuleByID,
"RemoveOutbandRuleByID": w.RemoveOutbandRuleByID,
"SetAction": w.SetAction,
"SetActionByTag": w.SetActionByTag,
"SetHTTPCode": w.SetHTTPCode,
"SetActionByID": w.SetActionnByID,
"SetActionByID": w.SetActionByID,
"CancelEvent": w.CancelEvent,
}
}

View file

@ -51,8 +51,9 @@ type WaapTempResponse struct {
// runtime version of WaapConfig
type WaapRuntimeConfig struct {
Name string
OutOfBandRules []WaapCollection
Name string
OutOfBandRules []WaapCollection
//OutOfBandEngine XXX
InBandRules []WaapCollection
DefaultRemediation string
CompiledOnLoad []Hook
@ -263,7 +264,12 @@ func (w *WaapRuntimeConfig) CancelEvent() error {
return nil
}
func (w *WaapRuntimeConfig) SetActionnByID(id int, action string) error {
func (w *WaapRuntimeConfig) SetActionByTag(tag string, action string) error {
panic("not implemented")
return nil
}
func (w *WaapRuntimeConfig) SetActionByID(id int, action string) error {
panic("not implemented")
return nil
}