Skip to content

[core] Test for more browser-specific headers in dashboard browser rejection logic#59042

Merged
edoakes merged 1 commit into
masterfrom
richo/cors-headers
Nov 27, 2025
Merged

[core] Test for more browser-specific headers in dashboard browser rejection logic#59042
edoakes merged 1 commit into
masterfrom
richo/cors-headers

Conversation

@richo-anyscale

Copy link
Copy Markdown
Contributor

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

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

Copy link
Copy Markdown
Contributor

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.

Comment thread python/ray/dashboard/optional_utils.py
Comment thread python/ray/dashboard/tests/test_dashboard.py
Comment thread python/ray/dashboard/tests/test_dashboard.py
@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 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>
weiquanlee pushed a commit to antgroup/ant-ray that referenced this pull request Dec 11, 2025
Cherry pick ray-project#58553 ray-project#58648 ray-project#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

2 participants