Skip to content

Commit

Permalink
fix - don't print hcorp secrets in debug logs (#7529)
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff authored Jan 3, 2025
1 parent 9fef0a6 commit 4899ed1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion litellm/secret_managers/hashicorp_secret_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ def read_secret(self, secret_name: str) -> Optional[str]:

# 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
Expand Down
3 changes: 0 additions & 3 deletions litellm/secret_managers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 4899ed1

Please sign in to comment.