🧨 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:
lia-by-librechat[bot] 2026-09-26 20:28:47 -04:00 • committed by GitHub
parent 24f950a484
commit a329e01ac7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 67 additions and 2 deletions

View file

@ -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