Skip to content

fix(security): hash Bearer-prefixed API keys in spend logs - #31799

Merged
yucheng-berri merged 2 commits into
litellm_internal_stagingfrom
litellm_fix_plaintext_api_key_in_spend_logs
Jul 6, 2026
Merged

yucheng-berri merged 2 commits into
litellm_internal_stagingfrom
litellm_fix_plaintext_api_key_in_spend_logs

fix: strip Bearer prefix from non-sk keys in spend log fallback path

4e0117c
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded Jul 6, 2026 in 1s

100.00% of diff hit (target 61.73%)

View this Pull Request on Codecov

100.00% of diff hit (target 61.73%)