mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-02 13:01:23 +01: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
ac80a832df
commit
4d23dd3f03
@ -26,7 +26,6 @@ func TokenReview(rawToken string, authProxyConfig *models.HTTPAuthProxy) (k8s_ap
|
||||
GroupVersion: &schema.GroupVersion{},
|
||||
NegotiatedSerializer: serializer.DirectCodecFactory{CodecFactory: scheme.Codecs},
|
||||
},
|
||||
BearerToken: rawToken,
|
||||
TLSClientConfig: getTLSConfig(authProxyConfig),
|
||||
}
|
||||
authClient, err := rest.RESTClientFor(authClientCfg)
|
||||
|
Loading…
Reference in New Issue
Block a user