From 08c79421c32a2d8882abf2d9bb643c512efa9f95 Mon Sep 17 00:00:00 2001 From: hwh33 Date: Thu, 21 Sep 2023 11:17:47 -0600 Subject: [PATCH] Require config server auth token flag (#582) --- http-proxy/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/http-proxy/main.go b/http-proxy/main.go index 1bca7577..6688d2b2 100644 --- a/http-proxy/main.go +++ b/http-proxy/main.go @@ -275,6 +275,10 @@ func main() { } }() + if *cfgSvrAuthToken == "" { + log.Fatal("Config server auth token is required") + } + if *lampshadeAddr != "" && !*https { log.Fatal("Use of lampshade requires https flag to be true") }