[Bugfix] Redact api_key in non-default args log (#52523)

Signed-off-by: LuckyStep <67696304+Andy365-365@users.noreply.github.com>
This commit is contained in:
LuckyStep
2026-08-19 15:52:53 +08:00
committed by GitHub
parent 842dd8fd96
commit 9a9aa2b017
4 changed files with 61 additions and 1 deletions
+6
View File
@@ -37,6 +37,12 @@ def test_nixl_side_channel_host_is_not_compile_factor(
assert "VLLM_NIXL_SIDE_CHANNEL_HOST" not in envs.compile_factors()
def test_api_key_is_not_compile_factor(monkeypatch: pytest.MonkeyPatch):
monkeypatch.setenv("VLLM_API_KEY", "sk-super-secret")
assert "VLLM_API_KEY" not in envs.compile_factors()
def test_p2p_side_channel_defaults_and_override(monkeypatch: pytest.MonkeyPatch):
monkeypatch.delenv("VLLM_P2P_SIDE_CHANNEL_HOST", raising=False)
monkeypatch.delenv("VLLM_P2P_SIDE_CHANNEL_PORT", raising=False)