From 151f3c5f44eb46c38e940a28e1846711231d8d3b Mon Sep 17 00:00:00 2001 From: mmatur Date: Sat, 27 Jun 2026 11:44:59 +0200 Subject: [PATCH] fix: bump paerser to v0.2.3 and remove CitronusAcademy from blacklist paerser v0.2.3 fixes the panic in isArrayKey when a YAML map key is an empty string. CitronusAcademy/traefik-maintenance-plugin was blacklisted as a workaround and can now be removed. --- go.mod | 2 +- go.sum | 4 ++-- pkg/core/scrapper.go | 27 +++++++++++++-------------- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/go.mod b/go.mod index 9fa30db..cdd7ae1 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/stealthrocket/wazergo v0.19.1 github.com/stretchr/testify v1.10.0 github.com/tetratelabs/wazero v1.7.2 - github.com/traefik/paerser v0.2.0 + github.com/traefik/paerser v0.2.3 github.com/traefik/yaegi v0.16.1 github.com/urfave/cli/v2 v2.27.2 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.62.0 diff --git a/go.sum b/go.sum index 92da504..fc7182d 100644 --- a/go.sum +++ b/go.sum @@ -76,8 +76,8 @@ github.com/tetratelabs/wazero v1.7.2 h1:1+z5nXJNwMLPAWaTePFi49SSTL0IMx/i3Fg8Yc25 github.com/tetratelabs/wazero v1.7.2/go.mod h1:ytl6Zuh20R/eROuyDaGPkp82O9C/DJfXAwJfQ3X6/7Y= github.com/traefik/http-wasm-host-go v0.0.0-20240618100324-3c53dcaa1a70 h1:I+oBnV0orhmasb87yaX54tOAfqrV9+yKoQ1Cum5mq8w= github.com/traefik/http-wasm-host-go v0.0.0-20240618100324-3c53dcaa1a70/go.mod h1:zQB3w+df4hryDEqBorGyA1DwPJ86LfKIASNLFuj6CuI= -github.com/traefik/paerser v0.2.0 h1:zqCLGSXoNlcBd+mzqSCLjon/I6phqIjeJL2xFB2ysgQ= -github.com/traefik/paerser v0.2.0/go.mod h1:afzaVcgF8A+MpTnPG4wBr4whjanCSYA6vK5RwaYVtRc= +github.com/traefik/paerser v0.2.3 h1:3ea1XZA0cMA9CwwC2qQ7Yn7GenixZZMzzOM/gYT4iWY= +github.com/traefik/paerser v0.2.3/go.mod h1:7BBDd4FANoVgaTZG+yh26jI6CA2nds7D/4VTEdIsh24= github.com/traefik/yaegi v0.16.1 h1:f1De3DVJqIDKmnasUF6MwmWv1dSEEat0wcpXhD2On3E= github.com/traefik/yaegi v0.16.1/go.mod h1:4eVhbPb3LnD2VigQjhYbEJ69vDRFdT2HQNrXx8eEwUY= github.com/urfave/cli/v2 v2.27.2 h1:6e0H+AkS+zDckwPCUrZkKX38mRaau4nL2uipkJpbkcI= diff --git a/pkg/core/scrapper.go b/pkg/core/scrapper.go index 20b208e..24a978c 100644 --- a/pkg/core/scrapper.go +++ b/pkg/core/scrapper.go @@ -93,20 +93,19 @@ func NewScrapper(gh *github.Client, gp *goproxy.Client, pgClient pluginClient, d sources: sources, // TODO improve blacklist storage blacklist: map[string]struct{}{ - "containous/plugintestxxx": {}, - "enzo24ofreopgh/traefik-maintenance-warden": {}, // Doesn't allow issues - "esenac/traefik-custom-router": {}, // Doesn't allow issues - "gitmotion/fosrl-badger": {}, // Doesn't allow issues - "odit-services/traefik-oidc-relying-party": {}, // Doesn't allow issues - "thubolt/geoblock": {}, // Doesn't allow issues - "tmpim/tmpauth-traefik": {}, // Doesn't allow issues - "alexdelprete/traefik-oidc-relying-party": {}, - "FinalCAD/TraefikGrpcWebPlugin": {}, // Crash piceus. - "deas/teectl": {}, // Not a plugin - "GDGVIT/securum-exire": {}, // Not a plugin - "morzan1001/forward_auth_grpc_plugin": {}, // piceus panic (excluded during fix) - "iobear/queryparameter-to-bearer": {}, // Doesn't allow issues - "CitronusAcademy/traefik-maintenance-plugin": {}, // empty map key in testData causes paerser panic + "containous/plugintestxxx": {}, + "enzo24ofreopgh/traefik-maintenance-warden": {}, // Doesn't allow issues + "esenac/traefik-custom-router": {}, // Doesn't allow issues + "gitmotion/fosrl-badger": {}, // Doesn't allow issues + "odit-services/traefik-oidc-relying-party": {}, // Doesn't allow issues + "thubolt/geoblock": {}, // Doesn't allow issues + "tmpim/tmpauth-traefik": {}, // Doesn't allow issues + "alexdelprete/traefik-oidc-relying-party": {}, + "FinalCAD/TraefikGrpcWebPlugin": {}, // Crash piceus. + "deas/teectl": {}, // Not a plugin + "GDGVIT/securum-exire": {}, // Not a plugin + "morzan1001/forward_auth_grpc_plugin": {}, // piceus panic (excluded during fix) + "iobear/queryparameter-to-bearer": {}, // Doesn't allow issues }, skipNewCall: map[string]struct{}{ "github.com/negasus/traefik-plugin-ip2location": {},