From f0980e9b3049cf6fb78452f9070c09eae44322b4 Mon Sep 17 00:00:00 2001 From: Ben Toogood Date: Tue, 7 Apr 2020 10:54:27 +0100 Subject: [PATCH] Change cross namespace request err level --- api/server/auth/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/server/auth/auth.go b/api/server/auth/auth.go index 0641115a..530e6403 100644 --- a/api/server/auth/auth.go +++ b/api/server/auth/auth.go @@ -75,8 +75,8 @@ func (h authHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { // Check the accounts namespace matches the namespace we're operating // within. If not forbid the request and log the occurance. if acc.Namespace != namespace { - logger.Warnf("Cross namespace request forbidden: account %v (%v) requested access to %v in the %v namespace", acc.ID, acc.Namespace, req.URL.Path, namespace) - http.Error(w, "Forbidden namespace", 403) + logger.Debugf("Cross namespace request warning: account %v (%v) requested access to %v in the %v namespace", acc.ID, acc.Namespace, req.URL.Path, namespace) + // http.Error(w, "Forbidden namespace", 403) } // Determine the name of the service being requested