mirror of
https://github.com/goharbor/harbor
synced 2024-09-21 08:09:51 +00:00
Remove raw token from header in token review reuqest
The server to handle token-review may have a limitation for the size of the header. When the token is huge the token review may fail. This commit remove the necessary header to harden the flow. Signed-off-by: Daniel Jiang <jiangd@vmware.com>
This commit is contained in:
parent
b6de84c571
commit
dc95792ee0
|
@ -26,7 +26,6 @@ func TokenReview(rawToken string, authProxyConfig *models.HTTPAuthProxy) (k8s_ap
|
|||
GroupVersion: &schema.GroupVersion{},
|
||||
NegotiatedSerializer: serializer.WithoutConversionCodecFactory{CodecFactory: scheme.Codecs},
|
||||
},
|
||||
BearerToken: rawToken,
|
||||
TLSClientConfig: getTLSConfig(authProxyConfig),
|
||||
}
|
||||
authClient, err := rest.RESTClientFor(authClientCfg)
|
||||
|
|
Loading…
Reference in New Issue
Block a user