Commit Graph

3 Commits (alpha2.0)

Author SHA1 Message Date
isnowglobal-admin 9b21b40da8 release: alpha2.0 — session persistence, Tanuki stability, login flow
Auth & Session:
- Add credentials: include to all frontend fetch calls (queryClient,
  auth-context, tanuki-trades, symbol-selector, settings, verify)
- Redis-backed session store with connect-redis, 7-day cookie expiry,
  sameSite=lax, httpOnly=true
- Add app.set('trust proxy', 1) so Express honors X-Forwarded-Proto from
  nginx — fixes secure cookies never being sent over HTTPS
- Cookie secure flag also checks APP_URL for reverse proxy deployments

Login Flow:
- Fix post-login redirect race condition: use full page reload
  (window.location.href) instead of hash navigation so auth cookie is
  established before ProtectedRoute checks session
- Disable SymbolSelector query when not authenticated to prevent blocking
  fetches on login page
- SymbolSelector returns null when not authenticated — no UI rendered

Tanuki Trades:
- Add ErrorBoundary component to isolate Tanuki page crashes
- Use unique queryKey ['tanuki-tickers'] to prevent React Query cache
  collision with symbol selector
- Defensive query syntax with async/await for error isolation

Testing:
- Verified login → redirect → refresh → session persists (no 401)
- Verified Tanuki page no longer crashes the entire app
- Verified /api/auth/me returns user data across requests with cookie
2026-07-01 14:53:24 -04:00
isnowglobal-admin a03ae5b62c Security hardening: rate limit whitelist for home subnet, relaxed dev limits, ORATS fixes
- Add .env to .gitignore (already present)
- Whitelist 192.168.x.x, 10.x.x.x, 127.x in rate limiter
- Relax rate limits: 500/15min general, 50/15min auth (was 100/10)
- ORATS API v2 integration: datav2 base URL, ?token= auth, flat response parsing
- GEX metrics: DTE ≤ 7 filter, 80-120% strike range, 500 OI threshold
- Save button: real-time singleton update, cache invalidation
- Server binds to 0.0.0.0 for network access
- Added Docker support, security middleware, auth routes
2026-06-13 14:21:27 -04:00
isnowglobal-admin 003a913186 GammaDesk initial commit - Options Gamma Analytics platform 2026-05-21 01:41:11 -04:00