mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-12 08:42:18 +00:00
fix(proxy): avoid the public master-key prefix in the email test
The code-quality scan rejects sk-1234. The markup key used that prefix, so the HTML-escaping test now uses a different key.
This commit is contained in:
parent
a2bb74c83f
commit
6d246da917
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ from litellm.proxy.hooks.user_management_event_hooks import UserManagementEventH
|
|||
|
||||
_PLAINTEXT_KEY = "sk-plaintext-key-39315"
|
||||
_TOKEN_ID = "a1b2c3d4e5f6789012345678abcdef01"
|
||||
_MARKUP_KEY = 'sk-1234567890123456</pre><a href="https://attacker.example/login">Activate key</a><pre>'
|
||||
_MARKUP_KEY = 'sk-9876543210987654</pre><a href="https://attacker.example/login">Activate key</a><pre>'
|
||||
|
||||
|
||||
def _key_created_email_response(key: str = _PLAINTEXT_KEY) -> GenerateKeyResponse:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue