Authorize prometheus endpoint with bearer token (#7640)
This commit is contained in:
committed by
kannappanr
parent
4925bc3e80
commit
ad75683bde
@@ -221,7 +221,7 @@ func guessIsMetricsReq(req *http.Request) bool {
|
||||
return false
|
||||
}
|
||||
aType := getRequestAuthType(req)
|
||||
return aType == authTypeAnonymous &&
|
||||
return (aType == authTypeAnonymous || aType == authTypeJWT) &&
|
||||
req.URL.Path == minioReservedBucketPath+prometheusMetricsPath
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user