mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-19 22:43:38 +00:00
🧨 fix: Reject Invalid AES Credentials Before Startup (#16402)
* 🧨 fix: Reject Invalid AES Credentials Before Startup * 🎯 test: Format Credential Validation Cases * 🧪 test: Use Valid AES Credentials in API Fixtures --------- Co-authored-by: Lia <lia@librechat.ai>
This commit is contained in:
parent
24f950a484
commit
a329e01ac7
3 changed files with 67 additions and 2 deletions
|
|
@ -29,8 +29,9 @@ process.env.BAN_INTERVAL = '20';
|
|||
process.env.CI = 'true';
|
||||
process.env.JWT_SECRET = 'test';
|
||||
process.env.JWT_REFRESH_SECRET = 'test';
|
||||
process.env.CREDS_KEY = 'test';
|
||||
process.env.CREDS_IV = 'test';
|
||||
// Startup rejects malformed explicitly configured AES credentials. Use valid test-only hex fixtures.
|
||||
process.env.CREDS_KEY = '0123456789abcdef'.repeat(4);
|
||||
process.env.CREDS_IV = '0123456789abcdef'.repeat(2);
|
||||
process.env.ALLOW_EMAIL_LOGIN = 'true';
|
||||
|
||||
// Set global test timeout to 30 seconds
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue