Commit Graph
16 Commits
Author SHA1 Message Date
Reditus aeaaf49f00 fix: comprehensive reset function + diagnostics + here-string fixes 2026-05-26 13:27:17 +01:00
Reditus 011ba8c8b4 refactor: ChakraUI v3 frontend + direct SQL backend services
Frontend:
- Replace Tailwind CSS with ChakraUI v3 (react, recharts, fontsource)
- 24 themes (12 Dune factions x day/night variants)
- Collapsible sidebar navigation with 6 groups
- Recharts AreaChart/PieChart for CPU/RAM/metrics
- New Experimental page (ports legacy admin_experimental.html)
- Common components: DataTable, Modal, Badge, Toaster

Backend:
- Fix services to use direct SQL (dune.* schema) instead of stored procedures
- PlayerService, EconomyService, GuildService, WorldService rewritten
- Auto-login for SPA development in factory.py
- Fix settings.yaml path resolution

Launcher:
- Add option [7] Start New Dashboard in launcher.ps1 and start.sh
- Auto-installs pip + npm dependencies
- Sets up SSH tunnels + kubectl port-forwards
- Starts backend API + frontend Vite dev server

Security:
- Sanitize hardcoded RMQ password in config.py
- Add frontend/dist/ to .gitignore
2026-05-25 03:08:02 +01:00
Reditus 7866869eb6 Fix port-forward startup: use sudo fuser to kill stale processes on ports 15433/32479; restore db_check.py for database connectivity check 2026-05-21 12:38:38 +01:00
Reditus c57e6572a9 Experimental branch cleanup and fixes
- Removed miner protection module, config, API routes, and UI
- Removed block_postgres firewall feature from dashboard + launcher
- Fixed SSH host key policy (WarningPolicy → AutoAddPolicy)
- Fixed kick race condition (threading.Lock for iptables)
- Tuned Argon2 password parameters (time_cost=3, memory_cost=65536)
- Added login rate-limit (10/min) + IP cooldown after 5 failed attempts
- Created scripts/db_check.py for launcher pre-flight DB check
- Updated README and .gitignore for sanitized repo state
2026-05-21 06:33:48 +01:00
Reditus 23a7392bcd Fix debug mode: preserve debug when called from option 6 2026-05-19 07:21:03 +01:00
Reditus 690a3970d0 Fix debug mode enable - recursively convert PS objects to hashtables 2026-05-19 07:08:54 +01:00
Reditus 7bd0dc1584 Fix debug mode enable in launcher - use hashtable for reliable property setting 2026-05-19 07:04:28 +01:00
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 6e7a850ba2 Fix setup flow: ask remote access first, auto-detect VM IP, validate local_ip
- Ask 'Enable remote access?' before any IP questions
- Default to local-only (n) for simpler setup
- Skip SSL questions when local-only
- Fix Hyper-V VM IP detection (handle single-element arrays properly)
- Validate local_ip in config.py before using as host override
- Fix factory.py to use settings['server']['host'] instead of local_ip
- VM Host prompt shows '(detected)' when auto-detected IP is found
2026-05-19 02:57:50 +01:00
Reditus 27d87b3d31 Relax rate limits, reduce SSH warning noise, add step logging helpers 2026-05-16 19:50:54 +01:00
Reditus e3c828c2ed Add organized logging with sanitization and auto-cleanup
- Launcher logs categorized by type (ssh, k8s, database, dashboard, setup, diagnostics)
- Sensitive data automatically redacted in log files (IPs, tokens, passwords, namespaces, host IDs)
- Console output remains unsanitized for user visibility
- Auto-cleanup: deletes logs older than 30 days, truncates files over 10 MB
- Updated README with logging documentation
2026-05-15 21:13:16 +01:00
Reditus 2378147fa9 Add auto Python install via winget and interactive dependency installer with package list 2026-05-15 18:29:08 +01:00
Reditus ac43d14b75 Merge setup into launcher, fix DB connection, add CA cert management, and clean up redundant scripts
- Consolidate setup.ps1, setup.bat, setup.sh into launcher.ps1 (option 2)
- Merge install-ca-cert.bat and clean-ca-certs.bat into launcher.ps1 (options 4-5)
- Remove broken local VM direct DB connection path (DB is inside Kubernetes)
- Fix factory.py overriding database.host with server.local_ip
- Add password masking (Read-Host -AsSecureString) in setup flow
- Fix SSH key detection to prioritize battlegroup key path
- Fix SSH test output redirect (*> -> 2>)
- Delete redundant scripts and debug helpers
- Update .gitignore with new patterns
2026-05-15 17:58:03 +01:00
Reditus bbdc0ab39c Add graceful Director unavailable UI and diagnostic script
- Director API returns 503 with helpful error details when BGD is down
- New unavailable banner in director.html with troubleshooting hints
- Created scripts/diagnostic.py for full connectivity testing
- Launcher diagnostics now runs server-side checks via diagnostic.py
- All Director endpoints handle connection errors gracefully
2026-05-15 15:53:08 +01:00
Reditus 6efce4dbcb Fix director connectivity, dynamic firewall port resolution, and map banner readability
- DirectorService now connects via 127.0.0.1 SSH tunnel instead of external IP
- Launcher auto-scales BGD deployment before starting port-forward
- SSH tunnel forwards both DB and Director ports
- Firewall toggle resolves BGD NodePort dynamically from K8s
- Map experimental banner uses theme-aware text color for readability
- Frontend gracefully handles director not running (shows N/A)
2026-05-15 15:23:21 +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