Skip to content

Commit

Permalink
obfuscate key if needed (#2531)
Browse files Browse the repository at this point in the history
Fixes #2520
  • Loading branch information
adelowo authored and buger committed Sep 20, 2019
1 parent a7300a6 commit 28eb5aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ func (t BaseMiddleware) CheckSessionAndIdentityForValidKey(key string, r *http.R
if found {
session.SetKeyHash(cacheKey)
// If not in Session, and got it from AuthHandler, create a session with a new TTL
t.Logger().Info("Recreating session for key: ", key)
t.Logger().Info("Recreating session for key: ", obfuscateKey(key))

// cache it
if !t.Spec.GlobalConfig.LocalSessionCache.DisableCacheSessionState {
Expand Down

0 comments on commit 28eb5aa

Please sign in to comment.