6 Commits

Author SHA1 Message Date
Zachariah K. Sharma e324b2237a Fix Codex default model 2026-06-09 00:59:20 -06:00
Zachariah K. Sharma c645027805 Route APIs through shared Hermes gateway 2026-06-08 20:47:15 -06:00
Zachariah K. Sharma 05da1532b6 Fix Portainer Hermes runtime deployment 2026-06-08 00:14:59 -06:00
Zachariah K. Sharma f4dca8ca73 fix: destroy client socket on upstream mid-stream error
Prevents hanging connections when the upstream response stream errors
after headers have already been sent to the client.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 02:19:46 -06:00
Zachariah K. Sharma fd6666ae4a feat: add authenticated pre and post api gateway
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 01:59:00 -06:00
Zachariah K. Sharma 143f5df049 feat: add authenticated pre and post api gateway
Implements api-gateway.cjs — a standalone HTTP server that authenticates
API keys, enforces rate/token limits, records usage events, and proxies
requests to an internal upstream (pre or post route). Adds integration
tests covering auth failures, rate limiting, non-streaming, SSE streaming,
and upstream connection errors.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 01:57:25 -06:00