outposts/proxy: trace full headers to debug
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
e1c0c0b20c
commit
b32800ea71
|
@ -25,6 +25,7 @@ func (a *Application) configureForward() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *Application) forwardHandleTraefik(rw http.ResponseWriter, r *http.Request) {
|
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)
|
fwd := a.getTraefikForwardUrl(r)
|
||||||
claims, err := a.getClaims(r)
|
claims, err := a.getClaims(r)
|
||||||
if claims != nil && err == nil {
|
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) {
|
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)
|
fwd := a.getNginxForwardUrl(r)
|
||||||
claims, err := a.getClaims(r)
|
claims, err := a.getClaims(r)
|
||||||
if claims != nil && err == nil {
|
if claims != nil && err == nil {
|
||||||
|
|
Reference in a new issue