Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Ilario <[email protected]>
  • Loading branch information
filariow committed Sep 25, 2024
1 parent cf79085 commit 599e2d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@ func (p *Proxy) newReverseProxy(ctx echo.Context, target *access.ClusterAccess,
req := ctx.Request()
targetQuery := target.APIURL().RawQuery
username, _ := ctx.Get(context.UsernameKey).(string)
// set username in context for logging purposes
ctx.Set(context.ImpersonateUser, target.Username())

director := func(req *http.Request) {
Expand Down

0 comments on commit 599e2d2

Please sign in to comment.