Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: API Keys are getting logged #7603

Open
bansal-ankita opened this issue Jan 7, 2025 · 2 comments
Open

[Bug]: API Keys are getting logged #7603

bansal-ankita opened this issue Jan 7, 2025 · 2 comments
Labels
bug Something isn't working mlops user request

Comments

@bansal-ankita
Copy link

What happened?

I have implemented a custom logger to write all debug logs to a log file. Upon reviewing the log file, I noticed that it contains sensitive information such as LiteLLM API keys and LLM model API keys. After checking the code, it appears that all parameters (including kwargs and LiteLLM-specific parameters) are being logged in their raw form without any key masking.

image image

Relevant log output

No response

Are you a ML Ops Team?

Yes

What LiteLLM version are you on ?

v1.53.1

Twitter / LinkedIn details

No response

@bansal-ankita bansal-ankita added the bug Something isn't working label Jan 7, 2025
@superpoussin22
Copy link
Contributor

superpoussin22 commented Jan 8, 2025

can you check your config file: ( the redact key )
litellm_settings: enable_preview_features: true redact_user_api_key_info: true

@bansal-ankita
Copy link
Author

Yes, I have set redact key setting
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mlops user request
Projects
None yet
Development

No branches or pull requests

2 participants