Skip to content

Conversation

@richo-anyscale
Copy link
Collaborator

Description

Adds more headers to the denylist for recognising browser requests and denying them

Related issues

Supercedes #59040

Signed-off-by: Richo Healey <richo@anyscale.com>
@richo-anyscale richo-anyscale requested a review from a team as a code owner November 27, 2025 17:04
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 enhances the detection of browser-based requests by adding more headers to the denylist, including Referer, Origin, and CORS-related headers. The changes are accompanied by a comprehensive set of new test cases that cover various browsers and scenarios, which is great. My feedback focuses on improving the maintainability and readability of both the implementation and the new tests.

@edoakes edoakes added the go add ONLY when ready to merge, run all tests label Nov 27, 2025
@edoakes edoakes changed the title [core] Test for more Browser specific headers in browser rejection [core] Test for more browser-specific headers in dashboard browser rejection logic Nov 27, 2025
@ray-gardener ray-gardener bot added the core Issues that should be addressed in Ray Core label Nov 27, 2025
@edoakes edoakes merged commit 8cd9e61 into master Nov 27, 2025
5 of 6 checks passed
@edoakes edoakes deleted the richo/cors-headers branch November 27, 2025 20:02
edoakes pushed a commit to edoakes/ray that referenced this pull request Nov 27, 2025
…jection logic (ray-project#59042)

## Description
Adds more headers to the denylist for recognising browser requests and
denying them

## Related issues
Supercedes ray-project#59040

Signed-off-by: Richo Healey <richo@anyscale.com>
edoakes pushed a commit to edoakes/ray that referenced this pull request Nov 27, 2025
…jection logic (ray-project#59042)

## Description
Adds more headers to the denylist for recognising browser requests and
denying them

## Related issues
Supercedes ray-project#59040

Signed-off-by: Richo Healey <richo@anyscale.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
edoakes added a commit that referenced this pull request Nov 27, 2025
Cherry pick:

- #59042

Signed-off-by: Richo Healey <richo@anyscale.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Co-authored-by: richo-anyscale <richo@anyscale.com>
aslonnie added a commit that referenced this pull request Nov 28, 2025
Cherry pick #58553 #58648 #59042

---------

Signed-off-by: Richo Healey <richo@anyscale.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Co-authored-by: richo-anyscale <richo@anyscale.com>
Co-authored-by: Lonnie Liu <95255098+aslonnie@users.noreply.github.com>
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