Skip to content

Conversation

@sampan-s-nayak
Copy link
Contributor

@sampan-s-nayak sampan-s-nayak commented Oct 26, 2025

Description

This PR adds support for token-based authentication in the Ray bi-directional syncer, for both client and server sides. It also includes tests to verify the functionality.

@sampan-s-nayak sampan-s-nayak changed the base branch from master to token_auth_2 October 26, 2025 05:56
@sampan-s-nayak sampan-s-nayak changed the title [Core] Add authentication token logic and related tests [Core] Support token auth in ray_syncer and pubsub Oct 27, 2025
@sampan-s-nayak sampan-s-nayak changed the base branch from token_auth_2 to token_auth_2.5 October 27, 2025 06:36
@sampan-s-nayak sampan-s-nayak changed the title [Core] Support token auth in ray_syncer and pubsub [Core] Support token auth in ray_syncer Oct 27, 2025

// Should connect successfully with matching token
client.Connect(channel);
std::this_thread::sleep_for(std::chrono::milliseconds(100));
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we need the sleeps in these tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we seem to be doing it for other tests in this file, let me try and see if I can remove them from my tests

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the raysyncer code uses boost::asio for running things async, the sleep waits for these async calls to end.

sampan added 2 commits October 31, 2025 02:34
Signed-off-by: sampan <[email protected]>
Signed-off-by: sampan <[email protected]>
@sampan-s-nayak sampan-s-nayak changed the base branch from user_error_macro to token_auth_2.5 October 31, 2025 02:44
Signed-off-by: Sampan S Nayak <[email protected]>
sampan-s-nayak and others added 4 commits October 31, 2025 03:07
This PR adds token-based authentication support to the
PythonGcsSubscriber, which previously made direct gRPC calls via the
stub without auth. The rest of the pub-sub layer already uses the shared
gRPC infrastructure (GrpcServer, GrpcClient), which supports token
authentication.

---------

Signed-off-by: Sampan S Nayak <[email protected]>
Signed-off-by: sampan <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
Co-authored-by: sampan <[email protected]>
Co-authored-by: Edward Oakes <[email protected]>
Base automatically changed from token_auth_2.5 to master October 31, 2025 14:06
@edoakes
Copy link
Collaborator

edoakes commented Nov 1, 2025

build/test failure

sampan added 3 commits November 2, 2025 13:00
Signed-off-by: sampan <[email protected]>
Signed-off-by: sampan <[email protected]>
cursor[bot]

This comment was marked as outdated.

Signed-off-by: sampan <[email protected]>
@edoakes edoakes merged commit 3b631ef into master Nov 3, 2025
6 checks passed
@edoakes edoakes deleted the token_auth_3 branch November 3, 2025 20:33
YoussefEssDS pushed a commit to YoussefEssDS/ray that referenced this pull request Nov 8, 2025
This PR adds support for token-based authentication in the Ray
bi-directional syncer, for both client and server sides. It also
includes tests to verify the functionality.

---------

Signed-off-by: sampan <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
Co-authored-by: sampan <[email protected]>
Co-authored-by: Edward Oakes <[email protected]>
landscapepainter pushed a commit to landscapepainter/ray that referenced this pull request Nov 17, 2025
This PR adds support for token-based authentication in the Ray
bi-directional syncer, for both client and server sides. It also
includes tests to verify the functionality.

---------

Signed-off-by: sampan <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
Co-authored-by: sampan <[email protected]>
Co-authored-by: Edward Oakes <[email protected]>
Aydin-ab pushed a commit to Aydin-ab/ray-aydin that referenced this pull request Nov 19, 2025
This PR adds support for token-based authentication in the Ray
bi-directional syncer, for both client and server sides. It also
includes tests to verify the functionality.

---------

Signed-off-by: sampan <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
Co-authored-by: sampan <[email protected]>
Co-authored-by: Edward Oakes <[email protected]>
Signed-off-by: Aydin Abiar <[email protected]>
SheldonTsen pushed a commit to SheldonTsen/ray that referenced this pull request Dec 1, 2025
This PR adds support for token-based authentication in the Ray
bi-directional syncer, for both client and server sides. It also
includes tests to verify the functionality.

---------

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