Skip to content

Commit

Permalink
respect key logging in reverse proxy (#1905)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblakeley authored and buger committed Sep 25, 2018
1 parent 21633e0 commit 319436b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions reverse_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -619,11 +619,6 @@ func (p *ReverseProxy) WrappedServeHTTP(rw http.ResponseWriter, req *http.Reques

token := ctxGetAuthToken(req)

var obfuscated string
if len(token) > 4 {
obfuscated = "****" + token[len(token)-4:]
}

var alias string
if session != nil {
alias = session.Alias
Expand All @@ -633,7 +628,7 @@ func (p *ReverseProxy) WrappedServeHTTP(rw http.ResponseWriter, req *http.Reques
"prefix": "proxy",
"user_ip": addrs,
"server_name": outreq.Host,
"user_id": obfuscated,
"user_id": obfuscateKey(token),
"user_name": alias,
"org_id": p.TykAPISpec.OrgID,
"api_id": p.TykAPISpec.APIID,
Expand Down

0 comments on commit 319436b

Please sign in to comment.