security: retire the legacy /v1/* key-injection proxy and PORTAL_SECRET
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
inference-admin committed 2026-11-19 22:39:14 +00:00
1 parent 1ea7cfc773
commit 5f3519d0af
2 files changed
+9 -102

No files matched your search

+8 -10
View File
@@ -145,22 +145,20 @@ with non-expiring purchased credit packs. The per-tier budgets the portal once
shipped (free/member/supporter) are retired — there are no per-tier portal
settings; the single env knob is `MEMBER_BUDGET`.
## LibreChat wiring
## Chat wiring
Point LibreChat's custom endpoint at this portal (not directly at LiteLLM),
and add the identity header:
LibreChat talks to the **gateway directly** with each member's own key; the
portal is not in the chat request path. (The old `/v1/*` key-injection proxy —
`X-Portal-Secret` + `X-User-Email` — was retired 2026-11-19. It let anyone with
that shared secret spend as any member, and nothing used it.)
```yaml
# librechat-custom/librechat.yaml (excerpt)
endpoints:
custom:
- name: "Inference Cooperative"
apiKey: "${LITELLM_KEY}"
baseURL: "https://portal.inference.coop/v1"
headers:
X-User-Email: "{{LIBRECHAT_USER_EMAIL}}"
models:
default: ["deepseek-v4-flash", "gpt-oss-120b"]
fetch: true
apiKey: "${INFERENCE_COOP_API_KEY}"
baseURL: "https://gateway.inference.coop/v1"
```
## Status