From 457a47116aca1789c85dd4a0caaf4efed5db38a0 Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Tue, 8 Oct 2024 17:06:17 +0200 Subject: [PATCH] pprof: fix required authentication action (#3850) --- internal/pprof/pprof.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pprof/pprof.go b/internal/pprof/pprof.go index 8d3de9d6..90c49290 100644 --- a/internal/pprof/pprof.go +++ b/internal/pprof/pprof.go @@ -100,7 +100,7 @@ func (pp *PPROF) middlewareOrigin(ctx *gin.Context) { func (pp *PPROF) middlewareAuth(ctx *gin.Context) { err := pp.AuthManager.Authenticate(&auth.Request{ IP: net.ParseIP(ctx.ClientIP()), - Action: conf.AuthActionMetrics, + Action: conf.AuthActionPprof, HTTPRequest: ctx.Request, }) if err != nil {