SIGN IN SIGN UP

propose an alternative, cleaner configuration for appsec-config (#4397)

* propose an alternative, cleaner configuration for appsec-config

* fix tests

* lint

* avoid hardcoded hook names

* simplify struct layout

* Update pkg/appsec/appsec.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix early-return guards to also check PostEval hooks in ProcessInBandRules and ProcessOutOfBandRules

Agent-Logs-Url: https://github.com/crowdsecurity/crowdsec/sessions/d48208fb-cd17-47ce-b881-3e04d596990f

Co-authored-by: buixor <990714+buixor@users.noreply.github.com>

* tests

* Update pkg/acquisition/modules/appsec/appsec_test.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: buixor <990714+buixor@users.noreply.github.com>
T
Thibault "bui" Koechlin committed
d8b922d5738bd8955ca0b6ff23d97bb42d531dcf
Parent: fc1677b
Committed by GitHub <noreply@github.com> on 4/10/2026, 1:28:07 PM