Init AppSec before the run context, keep credentials out of its logged URL, and parse its concurrency cap at int size

This commit is contained in:
Viktor Liu
2026-09-23 09:54:59 +02:00
parent 780d63171b
commit ba64c251f2
4 changed files with 45 additions and 21 deletions
-10
View File
@@ -253,16 +253,6 @@ func (v Verdict) IsCrowdSec() bool {
}
}
// IsAppSec returns true when the verdict originates from an AppSec inspection.
func (v Verdict) IsAppSec() bool {
switch v {
case DenyAppSecBan, DenyAppSecCaptcha, DenyAppSecUnavailable:
return true
default:
return false
}
}
// IsObserveOnly returns true when v is a CrowdSec verdict and the filter is in
// observe mode. Callers should log the verdict but not block the request.
func (f *Filter) IsObserveOnly(v Verdict) bool {