Unverified Commit 7e908704 authored by Reid's avatar Reid Committed by GitHub
Browse files

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


Signed-off-by: default avatarreidliu41 <reid201711@gmail.com>
parent d3f05c92
...@@ -910,6 +910,8 @@ TASK_HANDLERS: dict[str, dict[str, tuple]] = { ...@@ -910,6 +910,8 @@ TASK_HANDLERS: dict[str, dict[str, tuple]] = {
} }
if envs.VLLM_SERVER_DEV_MODE: 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") @router.get("/server_info")
async def show_server_info(raw_request: Request): async def show_server_info(raw_request: Request):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment