1.1 KiB
1.1 KiB
1. Runtime Stability Hardening
- 1.1 Add startup validation for
SECRET_KEYand environment-aware secure defaults. - 1.2 Register centralized shutdown hooks to stop cache updater, realtime sync worker, Redis client, and DB engine.
- 1.3 Isolate database health probing from request pool and keep degraded signal contract stable.
- 1.4 Normalize pool-exhausted response metadata and retry headers across API error paths.
2. Security Baseline Enforcement
- 2.1 Add CSRF token issuance/validation for form posts and JSON mutation endpoints.
- 2.2 Update login flow to rotate session identity on successful authentication.
- 2.3 Replace JS-context template interpolation in
hold_detail.htmlwith JSON-safe serialization.
3. Verification and Documentation
- 3.1 Add tests for startup secret guard, CSRF rejection, and session-rotation behavior.
- 3.2 Add lifecycle tests/validation for shutdown cleanup and health endpoint behavior under pool saturation.
- 3.3 Update README/README.mdj runtime hardening sections and operator rollout notes.