Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix - don't print hcorp secrets in debug logs (#7529)

Ishaan Jaff4899ed1b4217
diff --git a/litellm/secret_managers/hashicorp_secret_manager.py b/litellm/secret_managers/hashicorp_secret_manager.py
index d97752da292..3b2bebca7c6 100644
--- a/litellm/secret_managers/hashicorp_secret_manager.py
+++ b/litellm/secret_managers/hashicorp_secret_manager.py
@@ -98,7 +98,6 @@ class HashicorpSecretManager:
# For KV v2, the secret is in response.json()["data"]["data"]
json_resp = response.json()
- verbose_logger.debug(f"Hashicorp secret manager response: {json_resp}")
_value = self._get_secret_value_from_json_response(json_resp)
self.cache.set_cache(secret_name, _value)
return _value
diff --git a/litellm/secret_managers/main.py b/litellm/secret_managers/main.py
index 738332209a2..28af35097bc 100644
--- a/litellm/secret_managers/main.py
+++ b/litellm/secret_managers/main.py
@@ -292,9 +292,6 @@ def get_secret( # noqa: PLR0915
elif key_manager == KeyManagementSystem.HASHICORP_VAULT.value:
try:
secret = client.read_secret(secret_name)
- print_verbose(
- f"secret from hashicorp secret manager: {secret}"
- )
if secret is None:
raise ValueError(
f"No secret found in Hashicorp Secret Manager for {secret_name}"