-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
[Small] Prevent bypassing media domain restriction via HTTP redirects #26035
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
Conversation
Signed-off-by: Chenheli Hua <[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 effectively addresses a security concern by introducing a mechanism to prevent bypassing media domain restrictions via HTTP redirects. The implementation adds a new environment variable, VLLM_MEDIA_URL_ALLOW_REDIRECTS, and correctly propagates the allow_redirects flag through the necessary function calls to the underlying HTTP clients. The documentation has also been updated accordingly. I have one suggestion to improve type consistency in the environment variable definition, which will enhance code clarity and maintainability.
Signed-off-by: Chenheli Hua <[email protected]>
DarkLight1337
left a comment
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.
cc @russellb
Signed-off-by: Chenheli Hua <[email protected]>
|
force merging to unblock release |
…#26035) Signed-off-by: Chenheli Hua <[email protected]> Signed-off-by: simon-mo <[email protected]>
…vllm-project#26035) Signed-off-by: Chenheli Hua <[email protected]>
…#26035) Signed-off-by: Chenheli Hua <[email protected]> Signed-off-by: yewentao256 <[email protected]>
…vllm-project#26035) Signed-off-by: Chenheli Hua <[email protected]> Signed-off-by: Tomer Asida <[email protected]>
…vllm-project#26035) Signed-off-by: Chenheli Hua <[email protected]>
…vllm-project#26035) Signed-off-by: Chenheli Hua <[email protected]> Signed-off-by: xuebwang-amd <[email protected]>
…vllm-project#26035) Signed-off-by: Chenheli Hua <[email protected]> Signed-off-by: simon-mo <[email protected]>
…roject#26035) Signed-off-by: Chenheli Hua <[email protected]> Signed-off-by: simon-mo <[email protected]>
…vllm-project#26035) Signed-off-by: Chenheli Hua <[email protected]>
…vllm-project#26035) Signed-off-by: Chenheli Hua <[email protected]>
…vllm-project#26035) Signed-off-by: Chenheli Hua <[email protected]> Signed-off-by: xuebwang-amd <[email protected]>
…vllm-project#26035) Signed-off-by: Chenheli Hua <[email protected]>
Purpose
Addresses comment from Gemini in #25783 to prevent bypassing media domain restriction via HTTP redirects.
Test Plan
VLLM_MEDIA_URL_ALLOW_REDIRECTS=0 CUDA_VISIBLE_DEVICES=7 vllm serve Qwen/Qwen2.5-VL-3B-Instruct --port 8001 --host 0.0.0.0 --dtype bfloat16 --limit-mm-per-prompt '{"image": 1, "video":1}'Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.