Pulse/internal/api
Pulse Monitor 28f9d9db53 feat: add comprehensive security system for API protection
Security Features Added:
- Secure-by-default configuration export/import with ALLOW_UNPROTECTED_EXPORT environment variable
- Rate limiting (5 attempts/minute) to prevent brute force attacks on sensitive endpoints
- Comprehensive audit logging for all export/import attempts with IP tracking
- Frontend Security tab showing API protection status and configuration guidance
- Frontend now shows when export is blocked and disables buttons appropriately
- Strong passphrase requirement (minimum 12 characters) for exports

Technical Implementation:
- New RateLimiter component with automatic cleanup and middleware support
- Security status API endpoint showing protection state
- Enhanced error messaging with specific guidance for homelab vs production use
- Proper authentication flow with API token validation
- Updated documentation reflecting new security model

Breaking Changes:
- Export/import now requires API_TOKEN unless ALLOW_UNPROTECTED_EXPORT=true is set
- Minimum passphrase length increased from none to 12 characters

Additional Improvements:
- Fixed architecture-specific updates for better cross-platform support
- Removed RC label from UI header
- Updated security documentation with clear setup instructions
2025-08-06 21:39:52 +00:00
..
alerts.go Initial clean Go + TypeScript rewrite 2025-07-28 21:24:33 +00:00
config_handlers.go feat: add comprehensive security system for API protection 2025-08-06 21:39:52 +00:00
diagnostics.go fix: Docker persistence and Windows VM memory reporting 2025-08-06 16:00:22 +00:00
middleware.go feat: Implement security, type safety, and error handling improvements 2025-07-29 17:53:51 +00:00
notifications.go Fix frontend email test field mapping 2025-08-02 18:15:03 +00:00
ratelimit.go feat: add comprehensive security system for API protection 2025-08-06 21:39:52 +00:00
router.go feat: add comprehensive security system for API protection 2025-08-06 21:39:52 +00:00
settings.go fix: consolidate to encrypted-only configuration system 2025-08-03 11:19:32 +00:00
updates.go Add comprehensive update mechanism with auto-update support 2025-07-30 15:59:06 +00:00