From 48e3c8c5d47b746ffd7e686e420d8179b0418b34 Mon Sep 17 00:00:00 2001 From: blotus Date: Fri, 4 Apr 2025 14:44:18 +0200 Subject: [PATCH] do not return an error if we cannot fetch allowlists when starting the appsec (#3550) --- pkg/acquisition/modules/appsec/appsec.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")