Repository navigation
fix: host validation for vllm server-detection request - #1375
Conversation
Signed-off-by: AngeloDanducci <[email protected]>
Signed-off-by: AngeloDanducci <[email protected]>
|
If I understand this right, this check would only fire when the user provides a base_url to the OpenAI backend right? So do we really need this? |
Need is a strong word, but it was the last thing mentioned in the issue so I figured I would tackle it even if it's just being overly cautious. If you don't think we need it we can close it and mark the security epic as completed. |
ajbozarth
left a comment
There was a problem hiding this comment.
Solid, correctly-scoped fix for M3 — resolving the host before checking (rather than matching literal IPs) is the right approach, and the test coverage is thorough.
Requesting changes on one item: as written, the link-local guard only validates the initial hostname, so a redirect to a metadata endpoint slips through (inline). Since merge-when-ready is enabled, flagging so it doesn't reach the queue on that. The rest are optional.
Signed-off-by: AngeloDanducci <[email protected]>
|
I probably would've not merged this (a lot of things in that issue were unnecessary IMO), but c'est la vie. |
Pull Request
Issue
Fixes #1246
Description
Adds host validation for the vllm server-detection request.
Final outstanding issue of #1246
Testing
Attribution
Adding a new component, requirement, sampling strategy, or tool?
If your PR adds or modifies one of the types below, check the matching box. A checklist of type-specific review items will be posted as a comment.
NOTE: Please ensure you have an issue that has been acknowledged by a core contributor and routed you to open a pull request against this repository. Otherwise, please open an issue before continuing with this pull request.