Skip to content

Conversation

@sampan-s-nayak
Copy link
Contributor

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

Description

before running ray get-auth-token users first need to set AUTH_MODE=token. this is unnecessary, this pr introduces ignore_auth_mode flag in the token_loader class to remove this check. This pr also moves all auth related tests in src/ray/rpc/tests to src/ray/rpc/authentication/tests.

@sampan-s-nayak sampan-s-nayak requested a review from a team as a code owner November 20, 2025 06:25
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 removes the requirement for AUTH_MODE=token to be set when using the ray get-auth-token CLI command. This is achieved by introducing an ignore_auth_mode flag that is propagated from the CLI down to the C++ token loading logic. The changes are logical, well-implemented, and include corresponding updates to tests. I have one suggestion to refactor some duplicated code in the Python wrapper for the token loader to improve maintainability.

@sampan-s-nayak sampan-s-nayak added the go add ONLY when ready to merge, run all tests label Nov 20, 2025
@ray-gardener ray-gardener bot added the core Issues that should be addressed in Ray Core label Nov 20, 2025
@edoakes edoakes merged commit b62f93d into master Nov 24, 2025
7 checks passed
@edoakes edoakes deleted the auth_refactor branch November 24, 2025 14:51
ykdojo pushed a commit to ykdojo/ray that referenced this pull request Nov 27, 2025
…ect#58848)

## Description
before running `ray get-auth-token` users first need to set
`AUTH_MODE=token`. this is unnecessary, this pr introduces
`ignore_auth_mode` flag in the token_loader class to remove this check.
This pr also moves all auth related tests in `src/ray/rpc/tests` to
`src/ray/rpc/authentication/tests`.

---------

Signed-off-by: sampan <[email protected]>
Co-authored-by: sampan <[email protected]>
Signed-off-by: YK <[email protected]>
SheldonTsen pushed a commit to SheldonTsen/ray that referenced this pull request Dec 1, 2025
…ect#58848)

## Description
before running `ray get-auth-token` users first need to set
`AUTH_MODE=token`. this is unnecessary, this pr introduces
`ignore_auth_mode` flag in the token_loader class to remove this check.
This pr also moves all auth related tests in `src/ray/rpc/tests` to
`src/ray/rpc/authentication/tests`.

---------

Signed-off-by: sampan <[email protected]>
Co-authored-by: sampan <[email protected]>
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.

3 participants