-
Notifications
You must be signed in to change notification settings - Fork 7k
Cherry pick browser request validation improvements #59045
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cherry pick browser request validation improvements #59045
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 <[email protected]> Signed-off-by: Edward Oakes <[email protected]>
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 <[email protected]>
…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 <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
There was a problem hiding this 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 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.
|
the python 3.10 failure is related to the click thing. force merging. |
|
actually, let me wait for the other core tests to finish. |
|
merging now. |
Cherry pick: