Skip to content

Conversation

@sampan-s-nayak
Copy link
Contributor

Description:

when token auth is enabled, the dashboard prompts the user to enter the valid auth token and caches it (as a browser cookie). when token based auth is disabled, existing behaviour is retained.

all dashboard ui based rpc's to to the ray cluster set the authorization header in their requests

Screenshots

token popup
image

on entering an invalid token
image

@sampan-s-nayak sampan-s-nayak requested a review from a team as a code owner November 3, 2025 08:14
@sampan-s-nayak sampan-s-nayak added the go add ONLY when ready to merge, run all tests label Nov 3, 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 token-based authentication for the Ray Dashboard UI, which is a significant security improvement. The implementation is well-structured, separating concerns into different modules for authentication logic, cookie management, and UI components. The use of Axios interceptors to handle token injection and authentication errors is a clean approach. The backend changes in http_server_head.py correctly define public endpoints to allow the UI to load and prompt for a token. The addition of comprehensive tests for the new components and logic is also commendable. I have a few suggestions to improve maintainability and clean up some code.

sampan added 2 commits November 3, 2025 08:35
Signed-off-by: sampan <[email protected]>
Signed-off-by: sampan <[email protected]>
@ray-gardener ray-gardener bot added the core Issues that should be addressed in Ray Core label Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core 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