LibreChat/packages/api/src/langfuse
Dustin Healy b0d46b0518
🗝️ feat: Encrypted Langfuse Fanout Config (#14107)
* feat: encrypt tenant Langfuse secret in admin config

Add generic per-field secret encryption to the admin config layer: registered
secret paths (langfuse.secretKey) are encrypted with encryptV3 on write and a
non-secret fingerprint companion is stored. Admin config reads (base + per
principal) redact registered secrets so they are never returned; the fingerprint
is kept so the UI can show which key is configured.

The Langfuse fanout read path decrypts the tenant secret before export. Adds
secretKeyFingerprint to langfuseConfigSchema and tests for the encrypt/redact
policy.

* fix(api): secure admin config secret handling

* fix(api): preserve encrypted langfuse config secrets

* fix(api): couple config secret fingerprint deletion

* fix(api): read langfuse fanout collector url from env

* fix(api): display langfuse secret key hint

* fix(api): remove langfuse secret fingerprint breadcrumbs

* fix(api): use langfuse destination keys for tenant config

* fix(api): remove langfuse config compatibility fallbacks

* refactor(api): simplify langfuse secret helpers

* refactor(api): simplify langfuse config secret handling

---------

Co-authored-by: Ravi Kumar L <ravi.lazar@clickhouse.com>
2026-07-14 08:19:55 -04:00
..
config.spec.ts 🗝️ feat: Encrypted Langfuse Fanout Config (#14107) 2026-07-14 08:19:55 -04:00
config.ts 🗝️ feat: Encrypted Langfuse Fanout Config (#14107) 2026-07-14 08:19:55 -04:00
destinations.ts 🗝️ feat: Encrypted Langfuse Fanout Config (#14107) 2026-07-14 08:19:55 -04:00
feedback.spec.ts 🗝️ feat: Encrypted Langfuse Fanout Config (#14107) 2026-07-14 08:19:55 -04:00
feedback.ts 🪭 feat: Add opt-in Langfuse fanout gateway + collector (#13872) 2026-06-26 11:26:39 -04:00
index.ts
tenantDestinations.ts 🗝️ feat: Encrypted Langfuse Fanout Config (#14107) 2026-07-14 08:19:55 -04:00
trace.ts
utils.ts 🗝️ feat: Encrypted Langfuse Fanout Config (#14107) 2026-07-14 08:19:55 -04:00