Cherry pick browser request validation improvements#59045
Merged
Conversation
This causes the dashboard to be more thorough in it's attempts to deny browsers access to the job creation APIs --------- Signed-off-by: Richo Healey <richo@anyscale.com> Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Getting rid of the excessive `while True` loops & timeouts in the tests (we already wait for the dashboard to be up). Also just cleaned up some comments and naming while I was poking around. --------- Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
…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>
Contributor
There was a problem hiding this comment.
Code Review
This pull request significantly improves the browser request validation by incorporating more robust heuristics, which enhances security against CSRF-like attacks. The changes are accompanied by a comprehensive set of test cases, which is great to see. I have a couple of suggestions to improve the maintainability of the new code.
richo-anyscale
approved these changes
Nov 27, 2025
Contributor
|
the python 3.10 failure is related to the click thing. force merging. |
Contributor
|
actually, let me wait for the other core tests to finish. |
Contributor
|
merging now. |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry pick: