mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-14 22:21:29 +00:00
07def978cf
* Fix plaintext JWTs leaking in debug logs Wrap raw request headers in RedactedDict (dict subclass with redacted str/repr) at the single entry point where they enter the system. This prevents any downstream logging path from exposing Bearer tokens. Also remove a redundant log that re-read request.headers directly, bypassing the already-cleaned _headers variable. * Add e2e test for JWT redaction in debug logs * Preserve RedactedDict type through copy()
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/test_litellm
This folder can only run mock tests.