From aea4c80dd75c162e0657a8ebafea681357cc9215 Mon Sep 17 00:00:00 2001 From: koalaty-code <43392371+koalaty-code@users.noreply.github.com> Date: Wed, 18 Dec 2019 14:44:23 -0600 Subject: [PATCH] Ignore /health endpoint when checking auth --- lib/httpserver/httpserver.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/httpserver/httpserver.go b/lib/httpserver/httpserver.go index eb8740109a..ea49624ce4 100644 --- a/lib/httpserver/httpserver.go +++ b/lib/httpserver/httpserver.go @@ -203,6 +203,9 @@ func handlerWrapper(w http.ResponseWriter, r *http.Request, rh RequestHandler) { func checkAuth(w http.ResponseWriter, r *http.Request) bool { path := r.URL.Path + if path == "/health" { + return true + } if path == "/metrics" && len(*metricsAuthKey) > 0 { authKey := r.FormValue("authKey") if *metricsAuthKey == authKey {