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, "RemoveInbandRuleByID": w.RemoveInbandRuleByID,
"RemoveOutbandRuleByID": w.RemoveOutbandRuleByID, "RemoveOutbandRuleByID": w.RemoveOutbandRuleByID,
"SetAction": w.SetAction, "SetAction": w.SetAction,
"SetActionByTag": w.SetActionByTag,
"SetHTTPCode": w.SetHTTPCode, "SetHTTPCode": w.SetHTTPCode,
"SetActionByID": w.SetActionnByID, "SetActionByID": w.SetActionByID,
"CancelEvent": w.CancelEvent, "CancelEvent": w.CancelEvent,
} }
} }

View file

@ -53,6 +53,7 @@ type WaapTempResponse struct {
type WaapRuntimeConfig struct { type WaapRuntimeConfig struct {
Name string Name string
OutOfBandRules []WaapCollection OutOfBandRules []WaapCollection
//OutOfBandEngine XXX
InBandRules []WaapCollection InBandRules []WaapCollection
DefaultRemediation string DefaultRemediation string
CompiledOnLoad []Hook CompiledOnLoad []Hook
@ -263,7 +264,12 @@ func (w *WaapRuntimeConfig) CancelEvent() error {
return nil 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") panic("not implemented")
return nil return nil
} }