Merge pull request #14009 from reasonerjt/tokenreview-rm-header-1.10

Remove raw token from header in token review reuqest - 1.10.x
This commit is contained in:
Wenkai Yin(尹文开) 2021-01-14 18:29:37 +08:00 committed by GitHub
commit 3cb5c32f42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,6 @@ func TokenReview(rawToken string, authProxyConfig *models.HTTPAuthProxy) (k8s_ap
GroupVersion: &schema.GroupVersion{}, GroupVersion: &schema.GroupVersion{},
NegotiatedSerializer: serializer.DirectCodecFactory{CodecFactory: scheme.Codecs}, NegotiatedSerializer: serializer.DirectCodecFactory{CodecFactory: scheme.Codecs},
}, },
BearerToken: rawToken,
TLSClientConfig: getTLSConfig(authProxyConfig), TLSClientConfig: getTLSConfig(authProxyConfig),
} }
authClient, err := rest.RESTClientFor(authClientCfg) authClient, err := rest.RESTClientFor(authClientCfg)