[Misc] Add security warning for development mode endpoints (#20508)

Signed-off-by: reidliu41 <reid201711@gmail.com>
This commit is contained in:
Reid 2025-07-05 11:52:13 +08:00 committed by GitHub
parent d3f05c9248
commit 7e90870491
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -910,6 +910,8 @@ TASK_HANDLERS: dict[str, dict[str, tuple]] = {
}
if envs.VLLM_SERVER_DEV_MODE:
logger.warning("SECURITY WARNING: Development endpoints are enabled! "
"This should NOT be used in production!")
@router.get("/server_info")
async def show_server_info(raw_request: Request):