Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
7e908704
Unverified
Commit
7e908704
authored
Jul 05, 2025
by
Reid
Committed by
GitHub
Jul 04, 2025
Browse files
[Misc] Add security warning for development mode endpoints (#20508)
Signed-off-by:
reidliu41
<
reid201711@gmail.com
>
parent
d3f05c92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vllm/entrypoints/openai/api_server.py
vllm/entrypoints/openai/api_server.py
+2
-0
No files found.
vllm/entrypoints/openai/api_server.py
View file @
7e908704
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment