From 8345143bb05dc25b71369e8e0b419477b741bcbf Mon Sep 17 00:00:00 2001 From: mkelvers Date: Fri, 26 Jun 2026 23:45:43 +0200 Subject: [PATCH] fix: remove unauthenticated pprof routes --- internal/server/server.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/server/server.go b/internal/server/server.go index efc2f030..8910d454 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -7,7 +7,6 @@ import ( "mal/internal/config" "mal/internal/observability" "net/http" - _ "net/http/pprof" // register pprof handlers on http.DefaultServeMux "time" "github.com/gin-gonic/gin" @@ -39,8 +38,6 @@ func ProvideRouter(cfg config.Config, htmlRender render.HTMLRender) *gin.Engine }) r.Static("/static", "./static") r.Static("/dist", "./dist") - r.GET("/debug/pprof", gin.WrapH(http.DefaultServeMux)) - r.GET("/debug/pprof/*action", gin.WrapH(http.DefaultServeMux)) r.HTMLRender = htmlRender return r }