Skip to content

Commit b15a3fa

Browse files
committed
rename stack_trace action in generate_stack as per libddwaf upgrading guide
Signed-off-by: Eliott Bouhana <[email protected]>
1 parent eb80ff9 commit b15a3fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: internal/appsec/emitter/sharedsec/actions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (a *StackTraceAction) EmitData(op dyngo.Operation) { dyngo.EmitData(op, a)
103103
func NewStackTraceAction(params map[string]any) Action {
104104
id, ok := params["stack_id"]
105105
if !ok {
106-
log.Debug("appsec: could not read stack_id parameter for stack_trace action")
106+
log.Debug("appsec: could not read stack_id parameter for generate_stack action")
107107
return nil
108108
}
109109

Diff for: internal/appsec/listener/sharedsec/shared.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func ActionsFromEntry(actionType string, params any) []sharedsec.Action {
107107
return sharedsec.NewBlockAction(p)
108108
case "redirect_request":
109109
return []sharedsec.Action{sharedsec.NewRedirectAction(p)}
110-
case "stack_trace":
110+
case "generate_stack":
111111
return []sharedsec.Action{sharedsec.NewStackTraceAction(p)}
112112

113113
default:

0 commit comments

Comments
 (0)