do not return an error if we cannot fetch allowlists when starting the appsec (#3550)

This commit is contained in:
blotus 2025-04-04 14:44:18 +02:00 committed by GitHub
parent 49927f79a1
commit 48e3c8c5d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -418,11 +418,11 @@ func (w *AppsecSource) StreamingAcquisition(ctx context.Context, out chan types.
err = w.appsecAllowlistClient.Start(ctx, apiClient)
if err != nil {
return fmt.Errorf("failed to fetch allowlists: %w", err)
w.logger.Errorf("failed to fetch allowlists for appsec, disabling them: %s", err)
} else {
w.appsecAllowlistClient.StartRefresh(ctx, t)
}
w.appsecAllowlistClient.StartRefresh(ctx, t)
t.Go(func() error {
defer trace.CatchPanic("crowdsec/acquis/appsec/live")