Home

boring / v2

publicBoring-Software-Inc/v2
Overview Code History Branches Pull requestsIssuesInsights Campfire Docs
main
HomeOverview Code PRsIssues

feat(api): session-gate /events/stream, web-head SSE proxy

4 months ago

f695b75
Authored
grim7/11/2026, 7:38:40 PM
- stream requires a session (auth.api.getSession); webhooks stay HMAC-public,
  healthz open; dev open posture keeps the stream usable; production posture
  guard reinstated on api boot
- api builds a session-read auth instance (github: null) from @tripwire/auth
- web start.ts proxies /api/events/stream to the api with the session cookie
  (same-origin EventSource; the /api/auth precedent)
- integration: 401/200/dev-open/webhook-untouched; live cookieless curl 401

Parentf2f0d56

11 files changed
  • .env.example+1−1
  • DECISIONS.md+28−0
  • all-summaries.md+23−0
  • apps/api/package.json+1−0
  • apps/api/src/env.ts+7−0
  • apps/api/src/index.ts+30−0
  • apps/api/src/routes/stream.ts+52−34
  • apps/api/src/stream.integration.test.ts+105−0
  • apps/api/src/webhooks.integration.test.ts+1
−0
  • apps/web/src/lib/events.query.ts+1−5
  • apps/web/src/start.ts+10−1