LibreChat/packages/data-provider/specs
Marco Beretta 4c6ea7e981
🔐 fix: Hash Passwords on a Worker Pool and Surface API Key Lookup Failures (#17261)
* fix: Hash Off the Event Loop and Surface API Key Lookup Failures

Registration, email verification, password reset and verification resends
hashed and compared with bcryptjs's synchronous calls. bcryptjs is pure
JavaScript, so each call blocked the event loop for every request in the
process. They now use the promise APIs, and the password reset
dependencies are async.

validateAgentApiKey caught its own query failures and returned null, so a
database outage answered remote callers with 401 Invalid API key. It now
lets the failure reach requireApiKeyAuth, which answers with a 500.

* fix: Run bcrypt on a Worker Pool in packages/api

bcryptjs's promise API still computes on the main thread, only in chunks
of up to 100 ms, so concurrent registrations and resets kept stalling
unrelated requests (four cost-10 hashes delayed a 5 ms timer by about
190 ms). hashSecret and compareSecret now run bcryptjs on a small
worker_threads pool in packages/api, and AuthService.js calls them.

* feat: Configure the Password Hashing Worker Count

* fix: Verify Login and Step-Up Passwords on the Hash Pool
2026-10-19 22:13:31 +02:00
..
actions.spec.ts ⚓ fix: Bind Action Servers to Metadata Ports (#14575) 2026-08-02 13:41:31 -04:00
api-endpoints-subdir.spec.ts
api-endpoints.spec.ts 🔐 feat: Enforce Required Two-Factor Authentication (#14731) 2026-10-01 23:39:51 +02:00
astra-catalog.spec.ts 🌌 feat: Add GPT-6 Astra Support (#15567) 2026-09-04 10:23:29 -04:00
azure.spec.ts 🗃️ refactor: Remove Dead Data Schemas Methods and Data Provider Exports (#17113) 2026-10-15 12:23:29 +02:00
bedrock.spec.ts 🎐 feat: Add Claude Haiku 5.5 Support (#17201) 2026-10-17 14:03:20 +02:00
codeWorkspace.spec.ts 🧳 feat: Choose Agent-Allowed Machines For New Chats (#16651) 2026-10-02 08:38:14 -04:00
config-schemas.spec.ts 🔐 fix: Hash Passwords on a Worker Pool and Surface API Key Lookup Failures (#17261) 2026-10-19 22:13:31 +02:00
createPayload.spec.ts 🖋️ feat: Seal Code Environment Choices Per Conversation (#15868) 2026-09-12 20:45:00 -04:00
filetypes.spec.ts
generate.spec.ts 🧮 fix: Render Google Settings From the Shared Schema and Bound Them Per Model (#14989) 2026-08-25 21:21:28 -04:00
grok.spec.ts 🗃️ refactor: Remove Dead Data Schemas Methods and Data Provider Exports (#17113) 2026-10-15 12:23:29 +02:00
headers-helpers.spec.ts
mcp.spec.ts 🗼 fix: Serialize MCP OAuth Token Refresh Across Replicas (#15993) 2026-09-16 21:58:23 -04:00
openapiSpecs.ts
parsers.spec.ts 🔇 fix: Keep Reasoning Out of Read Aloud (#16790) 2026-10-05 23:44:39 +02:00
parsers.timezone.spec.ts
providers.spec.ts 🗃️ refactor: Remove Dead Data Schemas Methods and Data Provider Exports (#17113) 2026-10-15 12:23:29 +02:00
request-interceptor-subdir.spec.ts
request-interceptor.spec.ts 🚮 fix: Require Sign-In After Missing OpenID Sessions (#15655) 2026-09-06 12:47:58 -04:00
sol-luna.spec.ts 🧬 feat: Resolve GPT Point Releases to Their Family and Add GPT-6.1 Sol (#16526) 2026-09-29 19:04:06 -04:00
stateful-code.spec.ts ⚗️ refactor: Separate Content, Tool, and Agent Types From the Assistants Module (#15910) 2026-09-15 14:15:24 -04:00
theme.spec.ts 🪪 fix: Boot-Paint a Cached Theme Only for Its Signed-In Owner (#16926) 2026-10-14 11:08:53 +02:00
utils.spec.ts 🗃️ refactor: Remove Dead Data Schemas Methods and Data Provider Exports (#17113) 2026-10-15 12:23:29 +02:00