Skip to content

Commit

Permalink
fix(platform): don't set user in header when proxy (#1770)
Browse files Browse the repository at this point in the history
Co-authored-by: xdonggao <xdonggao@tencent.com>
  • Loading branch information
GaoXiaodong and xdonggao committed Feb 21, 2022
1 parent bc48bed commit dbeb1f1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/platform/registry/cluster/storage/proxy.go
Expand Up @@ -111,8 +111,6 @@ func (r *ProxyREST) New() runtime.Object {
func makeDirector(clusterName, userName, tenantID string, uri *url.URL, token string) func(req *http.Request) {
return func(req *http.Request) {
req.Header.Set(filter.ClusterNameHeaderKey, clusterName)
req.Header.Set("X-Remote-User", userName)
req.Header.Set("X-Remote-Extra-TenantID", tenantID)
if token != "" {
req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", token))
}
Expand Down

0 comments on commit dbeb1f1

Please sign in to comment.