diff --git a/pkg/acquisition/modules/appsec/appsec.go b/pkg/acquisition/modules/appsec/appsec.go index 979684384..628ea58ab 100644 --- a/pkg/acquisition/modules/appsec/appsec.go +++ b/pkg/acquisition/modules/appsec/appsec.go @@ -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")