Commit Graph

7 Commits

Author SHA1 Message Date
gnezim 7db39cbeec Fix type errors and lint warnings in health and shutdown modules
Use proper type-safe interfaces instead of Node.js http types for the
health handler, and avoid vi.spyOn type issues in shutdown tests by
directly intercepting process.on.
2026-04-15 00:59:59 +03:00
gnezim ca6ae0eea2 Add graceful shutdown handler with TDD
registerGracefulShutdown drains in-flight requests for 30s on SIGTERM,
flushes logs, then exits cleanly. Force-exits with code 1 on timeout.
2026-04-15 00:55:09 +03:00
gnezim f0e540aa3f Add health endpoint factory with TDD
healthMiddleware returns 200 if upstream was reachable within 60s, 503 otherwise.
Exports a factory function — registration in modern.config.ts is a future step.
2026-04-15 00:55:08 +03:00
gnezim 59d5a7314e Fix lint: exempt storage test from no-restricted-globals, remove non-null assertion 2026-04-15 00:50:46 +03:00
gnezim 5d041cc4c6 Implement security headers middleware for HSTS, COOP, CORP, and more 2026-04-15 00:49:07 +03:00
gnezim 4f93d0a9bf Implement SSR stream nonce injection as workaround for React #24883 2026-04-15 00:48:54 +03:00
gnezim 10b97339bf Implement CSP middleware with per-request nonce and React context 2026-04-15 00:48:02 +03:00