From 8b7f698c7bcf85e972f6af37f31fe0378a885c92 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 28 Nov 2021 15:06:26 +0100 Subject: [PATCH] outposts/proxy: continue compiling additional regexes even when one fails Signed-off-by: Jens Langhammer --- internal/outpost/proxyv2/application/application.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/outpost/proxyv2/application/application.go b/internal/outpost/proxyv2/application/application.go index 5cd720f6b..24dc153ab 100644 --- a/internal/outpost/proxyv2/application/application.go +++ b/internal/outpost/proxyv2/application/application.go @@ -149,7 +149,8 @@ func NewApplication(p api.ProxyOutpostConfig, c *http.Client, cs *ak.CryptoStore re, err := regexp.Compile(regex) if err != nil { // TODO: maybe create event for this? - return nil, errors.Wrap(err, "failed to compile SkipPathRegex") + a.log.WithError(err).Warning("failed to compile SkipPathRegex") + continue } else { a.UnauthenticatedRegex = append(a.UnauthenticatedRegex, re) }