mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 13:40:22 +03:00
remove logging for invalid metadata values (#18068)
This commit is contained in:
+1
-1
@@ -616,7 +616,7 @@ func AuthMiddleware(h http.Handler) http.Handler {
|
||||
tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
|
||||
|
||||
claims, groups, owner, authErr := metricsRequestAuthenticate(r)
|
||||
if authErr != nil || !claims.VerifyIssuer("prometheus", true) {
|
||||
if authErr != nil || (claims != nil && !claims.VerifyIssuer("prometheus", true)) {
|
||||
if ok {
|
||||
tc.FuncName = "handler.MetricsAuth"
|
||||
tc.ResponseRecorder.LogErrBody = true
|
||||
|
||||
Reference in New Issue
Block a user