Commit Graph

14 Commits

Author SHA1 Message Date
1fe2a55554 update readme 2025-06-16 15:42:12 -04:00
503b0f750b further security improvments 2025-06-16 14:38:44 -04:00
e92790383d remove logger 2025-06-16 14:25:25 -04:00
1d99fa2efc remove security log 2025-06-16 14:20:52 -04:00
697785d9fc Enhance security and fix issues in secure-auth.js
This commit significantly improves the security and reliability of the
authentication module while maintaining all original functionality. Key changes:

- Security: Added input sanitization (sanitize-html, validator), rate limiting
  (rate-limiter-flexible), CSRF protection (csurf), secure headers (helmet),
  and logging (winston). Implemented secure token generation with HMAC-SHA256.
- Bug Fixes: Fixed username validation to allow underscores. Relaxed IP and
  user-agent checks for local IPs to resolve "Invalid session" errors. Fixed
  CSP violation for inline scripts using a nonce-based approach.
- Client-Side: Added debug logging, fallback meta refresh, and improved error
  handling in the auto-login script.
- Logging: Enhanced logging for debugging (user-agent mismatches, invalid inputs).
- Config: Added STRICT_USER_AGENT_CHECK env var for production flexibility.
2025-06-16 14:19:54 -04:00
176f15501b hide error 2025-06-16 13:57:23 -04:00
f655fbe037 fix: UI Not updating when start button is used 2025-06-16 13:25:30 -04:00
09d206ef13 Add status Bin Source Code Link to Status.js 2025-06-16 13:12:24 -04:00
de1b62b47c update readme 2025-06-16 13:01:29 -04:00
61de2a8d14 fix docker stats interval 2025-06-16 12:56:04 -04:00
d38e2ad1f1 Refactor: Initial code split into includes directory for modularity
- Reorganized backend logic by moving API, authentication, Docker, status, and WebSocket handling into separate modules (api.js, auth.js, docker.js, status.js, websocket.js) within ./includes/
- Converted codebase to ES modules with import/export syntax for modern JavaScript
- Updated index.js to serve as main entry point, importing from ./includes/
- Reduced code duplication and improved readability with modularized functions
- Ensured full functionality preservation, including Docker stats and WebSocket communication
- Updated README to reflect new folder structure and ES module setup
2025-06-16 12:30:18 -04:00
fb0eb5ed44 Add README.md 2025-06-16 10:28:09 -04:00
f272619fba add default .env 2025-06-16 10:14:38 -04:00
612ae12863 first commit 2025-06-16 10:11:55 -04:00