From e0ee4b6016a70e11256f094282bc49c0e8027bab Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Sat, 5 Sep 2026 15:21:51 -0700 Subject: [PATCH] fix(proxy): hide identity token file paths from /health output --- litellm/proxy/health_check.py | 2 ++ .../proxy/health_endpoints/test_health_endpoints.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/litellm/proxy/health_check.py b/litellm/proxy/health_check.py index 7eab47192a1..cd028657aa9 100644 --- a/litellm/proxy/health_check.py +++ b/litellm/proxy/health_check.py @@ -50,6 +50,8 @@ ILLEGAL_DISPLAY_PARAMS: Final = [ "anthropic_identity_token", "anthropic_issuer_signing_key_ref", "anthropic_keycloak_client_secret_ref", + "anthropic_identity_token_file", + "openai_identity_token_file", "extra_headers", "headers", "exception", # internal; not JSON-serializable, never for display diff --git a/tests/test_litellm/proxy/health_endpoints/test_health_endpoints.py b/tests/test_litellm/proxy/health_endpoints/test_health_endpoints.py index ae503a70784..515b02fc303 100644 --- a/tests/test_litellm/proxy/health_endpoints/test_health_endpoints.py +++ b/tests/test_litellm/proxy/health_endpoints/test_health_endpoints.py @@ -2556,6 +2556,8 @@ def test_clean_endpoint_data_strips_extra_headers_and_aws_session_token(): "anthropic_identity_token", "anthropic_issuer_signing_key_ref", "anthropic_keycloak_client_secret_ref", + "anthropic_identity_token_file", + "openai_identity_token_file", "vertex_credentials", "vertex_ai_credentials", "extra_headers",