mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
fix(auth): remove hardcoded base64 string flagged by secret scanner (#22125)
Replace literal Base64-encoded example value in docstring with a placeholder to prevent GitGuardian/ggshield from flagging it as a leaked Basic Authentication credential in container scans. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3534e2c37b
commit
371a0e6f59
1 changed files with 2 additions and 4 deletions
|
|
@ -395,10 +395,8 @@ async def check_api_key_for_custom_headers_or_pass_through_endpoints(
|
|||
endpoint.get("custom_auth_parser") is not None
|
||||
and endpoint.get("custom_auth_parser") == "langfuse"
|
||||
):
|
||||
"""
|
||||
- langfuse returns {'Authorization': 'Basic YW55dGhpbmc6YW55dGhpbmc'}
|
||||
- check the langfuse public key if it contains the litellm api key
|
||||
"""
|
||||
# langfuse returns {'Authorization': 'Basic <base64(username:password)>'}
|
||||
# check the langfuse public key if it contains the litellm api key
|
||||
import base64
|
||||
|
||||
api_key = api_key.replace("Basic ", "").strip()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue