Files
litellm/tests
ryan-crabbe 07def978cf Fix plaintext JWTs leaking in debug logs (#22424)
* 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()
2026-02-28 15:44:38 -08:00
..
2026-02-28 09:46:35 -08:00
2026-02-21 15:48:26 -08:00
2026-02-28 09:46:35 -08:00
2026-02-28 09:46:35 -08:00
2026-02-28 09:46:35 -08:00
2026-02-28 09:46:35 -08:00
2026-02-28 09:46:35 -08:00

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.