Files
opencode-manager/backend/src
Chris Scott 26a8532cc6 feat(backend): add OpenCode Basic Auth for proxy endpoints
Enable remote OpenCode TUI clients to authenticate via Basic Auth when
accessing /api/opencode/* routes. Normal WebUI session auth continues to
work for browser clients.

- Add requireOpenCodeProxyAuth middleware that checks Basic Auth first
- Add isOpenCodeProxyBasicAuth with timing-safe password comparison
- Stream proxy responses without buffering (SSE support)
- Drop hop-by-hop headers from proxied responses
- Add tests for auth validation and streaming behavior
2026-04-28 22:52:28 +00:00
..
2026-01-30 22:39:24 -05:00