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
467a4f98
Unverified
Commit
467a4f98
authored
Oct 08, 2025
by
Rui Qiao
Committed by
GitHub
Oct 08, 2025
Browse files
[Misc] Redact ray runtime env before logging (#26302)
Signed-off-by:
Rui Qiao
<
ruisearch42@gmail.com
>
parent
e614ab78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
vllm/engine/arg_utils.py
vllm/engine/arg_utils.py
+7
-1
No files found.
vllm/engine/arg_utils.py
View file @
467a4f98
...
...
@@ -1327,7 +1327,13 @@ class EngineArgs:
import
ray
ray_runtime_env
=
ray
.
get_runtime_context
().
runtime_env
logger
.
info
(
"Using ray runtime env: %s"
,
ray_runtime_env
)
# Avoid logging sensitive environment variables
sanitized_env
=
ray_runtime_env
.
to_dict
()
if
ray_runtime_env
else
{}
if
"env_vars"
in
sanitized_env
:
sanitized_env
[
"env_vars"
]
=
{
k
:
"***"
for
k
in
sanitized_env
[
"env_vars"
]
}
logger
.
info
(
"Using ray runtime env (env vars redacted): %s"
,
sanitized_env
)
# Get the current placement group if Ray is initialized and
# we are in a Ray actor. If so, then the placement group will be
...
...
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