Skip to content

Conversation

@sampan-s-nayak
Copy link
Contributor

@sampan-s-nayak sampan-s-nayak commented Nov 19, 2025

Description

support X-Ray-Authorization header for accepting auth token. this is used by kuberay to pass auth token when it is making requests to ray dashboard through Kubernetes API via proxy.

this only affects api's using the middleware (dashboard head and runtime env agent server)

Signed-off-by: sampan <sampan@anyscale.com>
@sampan-s-nayak sampan-s-nayak requested a review from a team as a code owner November 19, 2025 16:05
@sampan-s-nayak sampan-s-nayak added the go add ONLY when ready to merge, run all tests label Nov 19, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for a new X-Ray-Auth header to accept authentication tokens, primarily for use by KubeRay when proxying requests to the Ray dashboard. The changes are well-implemented, ensuring that the standard Authorization header takes precedence over the new X-Ray-Auth header. Comprehensive tests have been added to validate both the functionality of the new header and its precedence logic. The code is clear, follows existing patterns, and correctly addresses the stated problem. No critical, high, or medium severity issues were found.

@edoakes
Copy link
Collaborator

edoakes commented Nov 19, 2025

Please note in PR description that this is only for the dashboard/API server

@edoakes edoakes changed the title [Core] support X-Ray-Auth header for acception auth token [Core] Support X-Ray-Auth fallback header for accepting auth token in dashbaord Nov 19, 2025
@edoakes edoakes changed the title [Core] Support X-Ray-Auth fallback header for accepting auth token in dashbaord [Core] Support X-Ray-Auth fallback header for accepting auth token in dashboard Nov 19, 2025
sampan added 2 commits November 19, 2025 16:13
Signed-off-by: sampan <sampan@anyscale.com>
Signed-off-by: sampan <sampan@anyscale.com>
@sampan-s-nayak sampan-s-nayak changed the title [Core] Support X-Ray-Auth fallback header for accepting auth token in dashboard [Core] Support X-Ray-Authorization fallback header for accepting auth token in dashboard Nov 19, 2025
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@edoakes edoakes enabled auto-merge (squash) November 19, 2025 16:28
@edoakes edoakes merged commit 14d50ea into ray-project:master Nov 19, 2025
7 checks passed
Aydin-ab pushed a commit to Aydin-ab/ray-aydin that referenced this pull request Nov 19, 2025
…th token in dashboard (ray-project#58819)

support `X-Ray-Authorization` header for accepting auth token. this is
used by kuberay to pass auth token when it is making requests to ray
dashboard through Kubernetes API via proxy.

this only affects api's using the middleware (dashboard head and runtime
env agent server)

---------

Signed-off-by: sampan <sampan@anyscale.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Co-authored-by: sampan <sampan@anyscale.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Aydin Abiar <aydin@anyscale.com>
edoakes added a commit to edoakes/ray that referenced this pull request Nov 19, 2025
…th token in dashboard (ray-project#58819)

support `X-Ray-Authorization` header for accepting auth token. this is
used by kuberay to pass auth token when it is making requests to ray
dashboard through Kubernetes API via proxy.

this only affects api's using the middleware (dashboard head and runtime
env agent server)

---------

Signed-off-by: sampan <sampan@anyscale.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Co-authored-by: sampan <sampan@anyscale.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
aslonnie pushed a commit that referenced this pull request Nov 19, 2025
Cherry pick: #58819

Signed-off-by: sampan <sampan@anyscale.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Co-authored-by: Sampan S Nayak <sampansnayak2@gmail.com>
Co-authored-by: sampan <sampan@anyscale.com>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Nov 21, 2025
…th token in dashboard (ray-project#58819)

support `X-Ray-Authorization` header for accepting auth token. this is
used by kuberay to pass auth token when it is making requests to ray
dashboard through Kubernetes API via proxy.

this only affects api's using the middleware (dashboard head and runtime
env agent server)

---------

Signed-off-by: sampan <sampan@anyscale.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Co-authored-by: sampan <sampan@anyscale.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
ykdojo pushed a commit to ykdojo/ray that referenced this pull request Nov 27, 2025
…th token in dashboard (ray-project#58819)

support `X-Ray-Authorization` header for accepting auth token. this is
used by kuberay to pass auth token when it is making requests to ray
dashboard through Kubernetes API via proxy.

this only affects api's using the middleware (dashboard head and runtime
env agent server)

---------

Signed-off-by: sampan <sampan@anyscale.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Co-authored-by: sampan <sampan@anyscale.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: YK <1811651+ykdojo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants