Commit Graph
103 Commits
Author SHA1 Message Date
Reditus 54d9d5db25 v7.3: graceful shutdown/restart with countdown, custom/scheduled notifications, update guard, file jail, security hardening, experimental tab removed 2026-09-21 14:51:37 +01:00
Reditus aee4028f5c v7.2: ServiceAuthToken management, backup/Server tab reorg, WIP warnings, map cleanup 2026-06-16 12:12:25 +01:00
Reditus a2d5af20c9 fix: backup password UX — masked modals, validation, schedule password never sent to client 2026-06-15 12:26:46 +01:00
Reditus 306ebcc871 feat: vertical/horizontal nav layout toggle with grouped dropdowns, mobile auto-sidebar 2026-06-14 22:54:55 +01:00
Reditus 3486f3b2cb feat: pod management UI (logs, describe, delete, list) with csrfFetch fix 2026-06-14 12:01:27 +01:00
Reditus 42eec81081 fix: SSH keepalive, director fallback, Ctrl+C handler, namespace ordering
- SSH transport keepalive (15s) + stale client cleanup for reliable reconnection
- Ctrl+C signal handler (os._exit) to bypass stuck daemon threads
- Director API fallback: SSH + wget to BGD service cluster IP (no tunnel needed)
- Namespace auto-detection moved before DirectorService creation
- Director host defaults to 127.0.0.1 (configurable via director.host)
- Connection monitor: 60s -> 30s interval
- Backup scheduler: skip if SSH unreachable instead of blocking 300s
2026-06-14 11:09:31 +01:00
Reditus 65a1948fd1 feat: add backup/restore with encryption, scheduling, and node resource charts
- Full backup: game DB, K8s manifests, RMQ config, dashboard schema
- AES-256-GCM encryption with PBKDF2 key derivation
- Restore wizard with SSH-based deployment to new VM
- Dashboard schema backup (bans, audit, chat, player_ips, settings)
- Scheduled backups: interval mode (days/hours/mins) or specific days + multiple times
- Retention policy (auto-delete oldest backups beyond keep limit)
- Password protection with sidecar metadata for preview without unlock
- Verify with optional password for encrypted archives
- Node resource charts (CPU/memory) with 5-min history on server page
- csrfFetch moved to head for correct script execution order
2026-06-14 10:12:27 +01:00
Reditus 1d1d2ab2ee fix: use ON CONFLICT DO NOTHING in migration; replace launcher.ps1 with tested version (SID fix, StrictHostKeyChecking=no, BatchMode=yes, ConnectTimeout) 2026-06-01 07:51:16 +01:00
Reditus 593345fb1f fix: file manager overhaul, update removal, template auto-reload
File manager: inline split-pane layout, multi-pod selector, full filesystem access, upload permissions fix, download/delete buttons. Factory: TEMPLATES_AUTO_RELOAD to pick up template changes. Base: removed update banner, check button, polling, progress overlay, and all update JS/CSS.
2026-05-29 17:47:59 +01:00
Reditus 79818f6d5d fix: remove rate limits from API routes, keep login-only
Global default_limits set to [] and all per-route @limiter.limit decorators removed from api.py. Login page retains 10/min.
2026-05-29 16:34:50 +01:00
Reditus f4ee1b85cf feat: themes dual-variant, Leaflet maps, RMQ explorer, security hardening
Themes: 28 variants (14 light + 14 dark) with grid-based switcher
Maps: Leaflet.js smooth zoom/pan, marker clustering, search, owner labels
Experimental: RMQ queue/exchange explorer, publish, message inspector, safety gate
Security: timing-safe login, rate limiter, token env-var, session timeout, Erlang injection fix
Fixes: logout, auto-login removed, table-header theme, default dark theme, ConfigMap name
2026-05-29 16:03:13 +01:00
Reditus 4a94bf68ce fix: director ConfigMap name, CSRF, ServerSetScale replicas + error handling
- Fix ConfigMap name derivation (strip funcom-seabass- prefix from namespace)
- Fix CSRF token missing on all 6 director POST handlers (fetch -> csrfFetch)
- Add ServerSetScale replicas management to director map cards
- Merge webOverrideCfg into cfg so UI shows active runtime overrides
- Auto-refresh after Apply and reset button state on all handlers
- Surface JSON error bodies in error banner instead of silent fail
- Fix SSL SAN handling for IP vs DNS common name
- Fix Let's Encrypt certbot paths to use project-root certbot/ dir
- Fix deploys_ok to reflect actual K8s availability
- Add active server deployment matching with restart buttons
2026-05-29 11:55:57 +01:00
Reditus 0f173dc107 feat: separate dashboard database + launcher repair/cleanup options
- Move dashboard tables (bans, player_ips, audit_log, chat_history,
  settings, player_actions) to a dedicated 'dashboard' database to
  prevent pg_dump conflicts during game updates
- Add DashboardDatabaseService (legacy + backend) with auto-migration
  from old dashboard schema on first startup
- Add launcher option 9: Repair Game Database (fixes schema ownership)
- Add launcher option 10: Clean up Old Dashboard Schema (drops old schema)
- Update PlayerService to fetch IPs from dashboard DB separately
- Update all routes and services to use dash_db for dashboard tables
- Add dashboard_database_name config option to settings.yaml.example
- Update README with new menu options
2026-05-27 01:02:39 +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 d7ac8a6641 fix: allow cross-origin SocketIO when host is 0.0.0.0 2026-05-23 13:07:20 +01:00
Reditus c472e5428a fix: resolve syntax error in conditional rate limiter decorator 2026-05-23 07:16:13 +01:00
Reditus 5fad3a6e87 New systems, dashboard reforctoring starts here 2026-05-22 21:55:05 +01:00
Reditus fd90b6cd46 feat(dashboard): Refactor database schema to dashboard namespace 2026-05-21 16:48:00 +01:00
Reditus e18395e710 Persist firewall rules across VM reboots: re-apply iptables on startup and after SSH reconnect, checking current state to avoid duplicates 2026-05-21 14:00:18 +01:00
Reditus 2d8728edc8 Fix startup warnings: use psycopg2.sql.Identifier for ALTER TABLE OWNER (fixes single-quote syntax error), remove player_state indexes (it's a view, not a table) 2026-05-21 13:41:04 +01:00
Reditus 3e1386e6bd Fix add_item: include stats column with empty JSON object to satisfy NOT NULL constraint 2026-05-21 13:28:07 +01:00
Reditus 6fe4384d91 Add db_owner setting to reassign table ownership to game server DB user for backup compatibility 2026-05-21 06:37:31 +01:00
Reditus 5f26621744 Revert "Add db_owner setting to reassign table ownership to game server DB user for backup compatibility"
This reverts commit 18a3253879.
2026-05-21 06:36:16 +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 18a3253879 Add db_owner setting to reassign table ownership to game server DB user for backup compatibility 2026-05-21 06:28:17 +01:00
Reditus 3453a1ebde WIP: Inventory grid redesign (unfinished - do not use) 2026-05-20 11:36:48 +01:00
Reditus f8e08608e2 Experimental: Auto-reconnect on server restart, rate limiting disabled, inventory edit bug fixes 2026-05-20 03:10:13 +01:00
Reditus 23a7392bcd Fix debug mode: preserve debug when called from option 6 2026-05-19 07:21:03 +01:00
Reditus 16bdb2d778 Fix parameter names in create_debug_log_handler call 2026-05-19 07:10:38 +01:00
Reditus fb6e62021f Fix missing sanitize_for_log import in main.py 2026-05-19 07:08:18 +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 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 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 8c195c2db0 Fix: import current_user for request logging 2026-05-18 04:27:15 +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 7f3ef08e7e Calibrate DeepDesert: calculated bounds from top-left, top-right, bottom 2026-05-16 18:27:55 +01:00
Reditus e6a05b4371 Update DeepDesert bounds with new top-left coordinate 2026-05-16 17:41:46 +01:00
Reditus fa50f640c9 Revert "Calibrate DeepDesert map bounds from in-game coordinates"
This reverts commit 8e6e2a91e5.
2026-05-16 17:06:14 +01:00
Reditus 8e6e2a91e5 Calibrate DeepDesert map bounds from in-game coordinates 2026-05-16 16:10:22 +01:00
Reditus de3212b31f Calibrate HaggaBasin: corner1=(-456752,-450630), corner2=(354547,353821) 2026-05-16 15:27:37 +01:00
Reditus df2cff537c HaggaBasin first in map list, both maps default 15% zoom, slider min 15% 2026-05-16 14:59:03 +01:00
Reditus c06660ae5a Set HaggaBasin as hardcoded default map, 5% zoom, slider min 5% 2026-05-16 14:53:20 +01:00
Reditus 692c673ab3 Revert to simple zoom: canvas size changes, both maps default 100% zoom 2026-05-16 14:49:17 +01:00
Reditus 594dc198b5 Replace DeepDesert with WebP version, match HaggaBasin 8000x8000 bounds and 15% default zoom 2026-05-16 14:11:55 +01:00
Reditus 5a3b0ef2c4 Change zoom min from 0% to 15%, HaggaBasin default 15% 2026-05-16 14:02:27 +01:00
Reditus b9cf227d92 Per-map default zoom levels: HaggaBasin 0%, DeepDesert 145%
- HaggaBasin defaults to 0% zoom for full map view
- DeepDesert defaults to 145% zoom since map is much smaller
- Zoom slider min changed from 25% to 0%
- Added default_zoom to map options in build_map_options
2026-05-16 13:55:38 +01:00
Reditus bb60c3b8d9 Switch HaggaBasin to 8k WebP image (3.6 MB vs 100+ MB) 2026-05-16 13:39:40 +01:00