From 9860bd51e7fc5dd7f18ed197cfbe840ce99f82e9 Mon Sep 17 00:00:00 2001 From: Marwan Sulaiman Date: Sun, 26 Aug 2018 22:11:04 -0400 Subject: [PATCH] Proxy: return 200 on / regardless of prefix (#572) --- cmd/proxy/actions/app.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/proxy/actions/app.go b/cmd/proxy/actions/app.go index 4caf583d..e232f0d1 100644 --- a/cmd/proxy/actions/app.go +++ b/cmd/proxy/actions/app.go @@ -99,6 +99,11 @@ func App() (*buffalo.App, error) { Logger: blggr, }) if prefix := env.AthensPathPrefix(); prefix != "" { + // certain Ingress Controllers (such as GCP Load Balancer) + // can not send custom headers and therefore if the proxy + // is running behind a prefix as well as some authentication + // mechanism, we should allow the plain / to return 200. + app.GET("/", healthHandler) app = app.Group(prefix) }