Clear front proxy headers after authentication is complete

This matches the logic we have for the Authorization header as well
as the impersonation headers.

Signed-off-by: Monis Khan <mok@microsoft.com>
This commit is contained in:
Monis Khan
2023-03-20 13:11:38 -04:00
parent 15894cfc85
commit e9866d2794
11 changed files with 335 additions and 22 deletions

View File

@@ -238,6 +238,7 @@ func TestPodLogsKubeletClientCertReload(t *testing.T) {
w.WriteHeader(http.StatusUnauthorized)
}),
nil,
nil,
),
)
fakeKubeletServer.TLS = &tls.Config{ClientAuth: tls.RequestClientCert}