security: image MCP fails closed when the member's own key is absent
This commit is contained in:
1 parent
14b61e24da
commit
69ba4346cf
3 files changed
+31
-19
No files matched your search
@@ -322,14 +322,14 @@ needed.
|
||||
is deliberately NOT in the chat picker (image models are not chat models;
|
||||
chat-calling it was the source of the old 500s).
|
||||
- **Image generation — two paths**:
|
||||
1. **MCP tool (default, no key ever)**: `inference-image` server (tool
|
||||
`generate_image`) — members select it in the composer's **+** palette
|
||||
and just ask. Per-member billing via `customUserVars.IC_API_KEY` (seeded
|
||||
from the portal) + `env: IC_API_KEY: "{{IC_API_KEY}}"`; a system-key
|
||||
fallback (`system-image-fallback`, $5/30d) covers the rare empty-value
|
||||
case. The `customUserVars` gate blocks a not-yet-seeded member until the
|
||||
next sync (≤10 min) — accepted as a short delay over billing everything
|
||||
to the system account.
|
||||
1. **MCP tool (default)**: `inference-image` server (tool `generate_image`)
|
||||
— members select it in the composer's **+** palette and just ask.
|
||||
Per-member billing via `customUserVars.IC_API_KEY` (seeded from the
|
||||
portal) + `env: IC_API_KEY: "{{IC_API_KEY}}"`. **Fail-closed:** the co-op
|
||||
system key is not passed into per-user MCP processes at all, so a missing
|
||||
member key returns a message pointing at the dashboard instead of billing
|
||||
the co-op account. The `customUserVars` gate blocks a not-yet-seeded
|
||||
member until the next sync (≤10 min).
|
||||
2. **Agent tool**: LibreChat's built-in "OpenAI Image Tools" (env
|
||||
`IMAGE_GEN_OAI_BASEURL`/`IMAGE_GEN_OAI_MODEL` → gateway; no admin key,
|
||||
members paste their own). Note LibreChat v0.8.8 renders the generated
|
||||
|
||||
Reference in new issue
Block a user