Skip to content

Commit

Permalink
pprof: fix required authentication action (#3850)
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 authored Oct 8, 2024
1 parent d13dc10 commit 457a471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pprof/pprof.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 457a471

Please sign in to comment.