client-go: add the UID to the auth-proxy roundtripper

Kubernetes-commit: 2cc0370169ea1fcf45429f9586e0ffd4ab32ed26
This commit is contained in:
Stanislav Láznička 2023-02-16 14:01:53 +01:00 committed by Kubernetes Publisher
parent b9e6a66c69
commit 60f20c32c7
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ func (h *peerProxyHandler) proxyRequestToDestinationAPIServer(req *http.Request,
newReq.Header.Add(PeerProxiedHeader, "true")
defer cancelFn()
proxyRoundTripper := transport.NewAuthProxyRoundTripper(user.GetName(), user.GetGroups(), user.GetExtra(), h.proxyTransport)
proxyRoundTripper := transport.NewAuthProxyRoundTripper(user.GetName(), user.GetUID(), user.GetGroups(), user.GetExtra(), h.proxyTransport)
delegate := &epmetrics.ResponseWriterDelegator{ResponseWriter: rw}
w := responsewriter.WrapForHTTP1Or2(delegate)