Project-Image-Uploader/backend/tests
matthias.lotz 712b8477b9 feat: Implement public/internal host separation
Backend:
- Add hostGate middleware for host-based API protection
- Extend rate limiter with publicUploadLimiter (20/hour)
- Add source_host and source_type to audit logs
- Database migration for audit log source tracking
- Unit tests for hostGate middleware (10/20 passing)

Frontend:
- Add hostDetection utility for runtime host detection
- Implement React code splitting with lazy loading
- Update App.js with ProtectedRoute component
- Customize 404 page for public vs internal hosts
- Update env-config.js for host configuration

Docker:
- Add environment variables to prod/dev docker-compose
- Configure ENABLE_HOST_RESTRICTION flags
- Set PUBLIC_HOST and INTERNAL_HOST variables

Infrastructure:
- Prepared for nginx-proxy-manager setup
- Trust proxy configuration (TRUST_PROXY_HOPS=1)

Note: Some unit tests still need adjustment for ENV handling
2025-11-25 20:26:59 +01:00
..
api Feature Request: admin session security 2025-11-23 21:18:42 +01:00
unit feat: Implement public/internal host separation 2025-11-25 20:26:59 +01:00
utils Feature Request: admin session security 2025-11-23 21:18:42 +01:00
env.js Feature Request: admin session security 2025-11-23 21:18:42 +01:00
globalSetup.js Feature Request: admin session security 2025-11-23 21:18:42 +01:00
globalTeardown.js feat: Add comprehensive test suite and admin API authentication 2025-11-16 18:08:48 +01:00
setup.js Feature Request: admin session security 2025-11-23 21:18:42 +01:00
testServer.js Feature Request: admin session security 2025-11-23 21:18:42 +01:00