Skip to content

Commit 594ff85

Browse files
Support X-Ray-Authorization fallback header for accepting auth token via proxy (#4213)
* Support X-Ray-Authorization fallback header for accepting auth token in dashboard Signed-off-by: Future-Outlier <eric901201@gmail.com> * remove todo comment Signed-off-by: Future-Outlier <eric901201@gmail.com> --------- Signed-off-by: Future-Outlier <eric901201@gmail.com>
1 parent c7669d0 commit 594ff85

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ray-operator/controllers/ray/utils/dashboardclient/dashboard_httpclient.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,9 @@ func (r *RayDashboardClient) InitClient(client *http.Client, dashboardURL string
5353
r.authToken = authToken
5454
}
5555

56-
// TODO: change authorization to x-ray-authorization after this PR is merged: https://github.com/ray-project/ray/pull/58819
5756
func (r *RayDashboardClient) setAuthHeader(req *http.Request) {
5857
if r.authToken != "" {
59-
req.Header.Set("authorization", fmt.Sprintf("Bearer %s", r.authToken))
58+
req.Header.Set("x-ray-authorization", fmt.Sprintf("Bearer %s", r.authToken))
6059
}
6160
}
6261

0 commit comments

Comments
 (0)