Dashboardopencode-loreGateway authentication, credentials, an…

Gateway authentication, credentials, and fetch-interceptor boundaries

Category: architecture
Confidence: 1.00
ID: 01a0a519-f1bb-7a9d-afb7-ed13ea2a77af
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 1
Source session: 0jqfAyzTbQiUgim4O
Created: 2026-08-21 13:25:57
Updated: 2026-09-15 12:45:36

Cross-Project Recalls

ProjectHitsLast recalled
opencode 1 8d ago

Content

Gateway authentication uses only x-lore-gateway-token; provider bearer or API-key headers never authorize Lore. Remote access fails closed without an exact configured-token match. Strip the gateway token before parsing and never forward, log, store, expose in URLs, or pass it via CLI arguments. Bind administrator extra headers only to configured provider and worker bases. Caller-selected origins receive no credentials and require the normalized-HTTPS allowlist, which rejects credentials, paths, queries, fragments, wildcards, and duplicates. The fetch interceptor must not reroute gateway-bound or localhost requests, but must still observe direct-gateway headers. Preserve authorization, API keys, bodies, and upstream URL/path metadata, share header construction across routing paths, and fail safely when URL or protocol detection is uncertain.

Move to: