Commit Graph
29 Commits
Author SHA1 Message Date
Reditus 00288d93a6 Add debug logging system with full request/response logging and sanitization
- New debug logging system with auto-sanitization of sensitive data (passwords, tokens, JWTs, keys)
- Debug mode can be enabled via launcher (option 6) or Server page UI
- Debug logs written to logs/debug.log with full HTTP request/response details
- Added comprehensive page access logging (overview, players, vehicles, server, director)
- Added SSH, K8s, database, and service initialization debug logging
- Fixed miner protection console spam (now uses DEBUG level)
- Removed admin management section from server page
- Updated README with debug mode documentation
2026-05-19 06:59:46 +01:00
Reditus e977f8cd5b Remove delete functionality from vehicles and buildings
- Remove DELETE endpoints for vehicles and buildings from api.py
- Remove delete_vehicle() method from vehicle service
- Remove delete buttons from vehicles.html and buildings.html
2026-05-19 05:56:27 +01:00
Reditus 3dc98c2fc3 Add audit logging expansion, health endpoint, and request logging
- Expand audit logging: server actions (restart, scale), login/logout with success/failure tracking
- Add sensitive data filtering to audit logs before file writes (passwords, keys, tokens)
- Add /api/health endpoint for monitoring (checks DB, SSH, K8s, miner protection, uptime)
- Add request logging middleware with timing for API/server routes
- Add X-Response-Time header to responses
2026-05-18 04:22:39 +01:00
Reditus b4023fb341 Add global exception handler and audit log viewer
- Global exception handler in factory.py (404, 405, unhandled exceptions return JSON)
- AuditService for tracking admin actions (miner cleanup, toggles)
- Audit Log Viewer UI section in server.html
- Updated .gitignore to exclude app/logs/
2026-05-18 04:12:44 +01:00
Reditus ab8d0d922a Add miner protection feature with auto-cleanup and log viewer 2026-05-18 02:39:38 +01:00
Reditus 27d87b3d31 Relax rate limits, reduce SSH warning noise, add step logging helpers 2026-05-16 19:50:54 +01:00
Reditus 79d9abef34 Fix updater restart to use launcher.ps1 instead of deleted start.bat 2026-05-15 18:42:07 +01:00
Reditus de438769f5 Update GitHub remote and updater to new account name ReditusDraco 2026-05-15 18:16:42 +01:00
Reditus 1959a013ab Major refactor: unified launcher, paramiko SSH, DirectorService, diagnostics, and map warning banner
- Merge setup and start scripts into unified launcher (launcher.ps1 / start.sh)
  with menu: Start Dashboard, Run Setup, Run Diagnostics, Quit
- Migrate SSHService from subprocess to paramiko for connection reuse
- Extract Director API into dedicated DirectorService class
- Centralize SSH key resolution in app/utils/ssh_key.py
- Add pagination to player list (50 per page)
- Add comprehensive diagnostics with port-forward troubleshooting guide
- Add 17 new tests (43 total, all passing)
- Fix Director page loading (point to local port-forward instead of remote IP)
- Add experimental warning banner to map page with Dune-themed joke
- Remove dead Flask-Talisman dependency, upgrade cryptography to >=42.0.0
- Fix PowerShell launcher parsing errors (Unicode chars, variable delimiters)
- Update start.bat/setup.bat to point to unified launcher
2026-05-15 14:57:36 +01:00
Reditus 6161f36ea4 merge remote changes 2026-05-15 11:15:00 +01:00
Reditus 3d1fc8a638 Merge local changes 2026-05-15 09:12:35 +01:00
Reditus 9bc68c6d4f Security fixes: add authentication to unprotected endpoints, replace deprecated Flask-Talisman, fix session cookie, add WebSocket auth check, improve error handling 2026-05-14 23:04:18 +01:00
Reditus f84dd975cd fix: create VERSION file on first ZIP run to prevent false update alerts 2026-05-14 01:10:50 +01:00
Reditus a9ac20e036 fix: remove duplicate except block causing SyntaxError in updater 2026-05-14 01:06:54 +01:00
Reditus 32a010ed40 fix: detect branch from folder name for ZIP downloads, preventing false update alerts on nightly/beta builds 2026-05-14 01:03:28 +01:00
Reditus 748d66b1f1 fix: updater checks current branch instead of always main, preventing false update alerts on nightly/beta 2026-05-14 00:51:02 +01:00
Reditus 99864b4d8f feat: implement player editing, security hardening, and director proxy
- Add 7 player-edit endpoints: faction, XP, tech knowledge, currency, item edit/delete/add
- Password hashing with Argon2 (setup.ps1, setup.sh, auth.py, config.py)
- Rate limiting on all sensitive endpoints (Flask-Limiter)
- IP validation for ban/unban/kick operations
- Audit logging for admin actions
- File browser path traversal protection
- Login_required on all debug endpoints
- Director API proxy via NodePort with _director_request helper
- SSH tunnel includes director port forward in start.ps1
- Currency editing now sets exact balance instead of delta
- Fix undefined values in success alert messages
2026-05-13 20:07:37 +01:00
Reditus 4d3d5d2888 fix: use git fetch + origin/main for update checks in git clones 2026-05-12 09:25:05 +01:00
Reditus fb672a16bd fix: use git rev-parse HEAD for update checks when .git exists 2026-05-12 09:21:54 +01:00
Reditus 2b215f8920 Add retry loop to database pool initialization (handles startup race conditions) 2026-05-12 04:37:55 +01:00
Reditus 51cf375823 Fix updater restart to use launcher script (preserves SSH/DB tunnels) 2026-05-12 04:34:39 +01:00
Reditus 289e092b5f Switch updater to SHA comparison via GitHub API (instant updates) 2026-05-12 04:23:43 +01:00
Reditus 51252b7f98 Fix VERSION comparison and add debug values to check endpoint 2026-05-12 04:17:45 +01:00
Reditus 55f87f8fbb Fix update checker to compare VERSION strings instead of commit SHAs 2026-05-12 04:14:27 +01:00
Reditus de19edee54 Sync VERSION file to current commit and fix SHA comparison 2026-05-12 04:11:01 +01:00
Reditus e9fb72ed02 Switch to VERSION file for update detection (works for zip downloads) 2026-05-12 03:45:43 +01:00
Reditus f52e5f1693 Add auto-update system with background checker and safe file replacement 2026-05-12 03:17:06 +01:00
Reditus 6dab454830 Replace hardcoded IPs with placeholders in templates and services 2026-05-12 01:55:01 +01:00
Reditus 59cc98133c Initial release - Dune Awakening Dashboard beta 2026-05-12 01:02:58 +01:00