From b32800ea71d2cf71f6d3dcd252334e150d4428cd Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 24 Jan 2022 22:08:31 +0100 Subject: [PATCH] outposts/proxy: trace full headers to debug Signed-off-by: Jens Langhammer --- internal/outpost/proxyv2/application/mode_forward.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/outpost/proxyv2/application/mode_forward.go b/internal/outpost/proxyv2/application/mode_forward.go index 15b44c739..57558a30a 100644 --- a/internal/outpost/proxyv2/application/mode_forward.go +++ b/internal/outpost/proxyv2/application/mode_forward.go @@ -25,6 +25,7 @@ func (a *Application) configureForward() error { } func (a *Application) forwardHandleTraefik(rw http.ResponseWriter, r *http.Request) { + a.log.WithField("header", r.Header).Trace("tracing headers for debug") fwd := a.getTraefikForwardUrl(r) claims, err := a.getClaims(r) if claims != nil && err == nil { @@ -73,6 +74,7 @@ func (a *Application) forwardHandleTraefik(rw http.ResponseWriter, r *http.Reque } func (a *Application) forwardHandleNginx(rw http.ResponseWriter, r *http.Request) { + a.log.WithField("header", r.Header).Trace("tracing headers for debug") fwd := a.getNginxForwardUrl(r) claims, err := a.getClaims(r) if claims != nil && err == nil {