pprof: fix required authentication action (#3850)

This commit is contained in:
Alessandro Ros 2024-10-08 17:06:17 +02:00 committed by GitHub
parent d13dc1074a
commit 457a47116a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 {