Dashboardopencode-loreGateway request decoding, failure sanit…

Gateway request decoding, failure sanitization, and cleanup

Category: preference
Confidence: 1.00
ID: 01a09cca-edba-7eda-b548-9fe8d7e41222
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 2
Source session: 0fNAMQhum3Eh6fISO
Created: 2026-08-24 08:53:05
Updated: 2026-09-13 22:02:19

Cross-Project Recalls

ProjectHitsLast recalled
cli 1 7d ago
opencode 1 8d ago

Content

Sanitize upstream, malformed-input, and provisional-identity failures to canonical { type: "server_error", message: "Gateway request failed" } payloads, preserving only upstream status and bounded allowlisted retry metadata. Never relay, log, persist, or expose upstream bodies, status text, URLs, credentials, request content, provider diagnostics, malformed successful text, or arbitrary parser/fetch errors; routing logs may record only an auth scheme. Read diagnostics privately only under a bounded timeout, then cancel or release readers. Before identity proof and durable commit, resolution content is never client-visible or stored; retain only fixed allowlisted internal log detail. Add regressions for response sanitization, retry-header clamping, stalled-body cancellation, and log redaction.

Move to: