Commit Graph
58 Commits
Author SHA1 Message Date
Reditus ce241a283d v0.7.5: socket.io polling-only shell, busybox realpath fallback chain 2026-09-22 08:53:11 +01:00
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 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 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 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 5fad3a6e87 New systems, dashboard reforctoring starts here 2026-05-22 21:55:05 +01:00
Reditus 8868ecb6fc Fix slot clicks: replace default('null') with tojson (fixes None→null JS error), add transparent click overlay on filled slots 2026-05-21 13:18:32 +01:00
Reditus 52f2575a20 Redesign inventory UI: compact equipped items grid, dedicated hotbar row, key items grid layout
- Equipped items (type 1): compact 5x2 grid matching main inventory sizing,
  slot labels as small uppercase badges
- Hotbar (type 5): dedicated 10-column horizontal row with minimal item display
- Key items (type 15): responsive card grid instead of plain vertical list
- Main inventory: preserve 5x7 slot grid with correct position_index mapping
2026-05-21 07:58:37 +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 3453a1ebde WIP: Inventory grid redesign (unfinished - do not use) 2026-05-20 11:36:48 +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 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 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 104b3db4a8 Fix default map and zoom initialization: HaggaBasin default, initial zoom 0.15 2026-05-16 14:29:47 +01:00
Reditus 7e2c7128e5 Simplify map zoom with CSS transform instead of canvas resizing 2026-05-16 14:25:09 +01:00
Reditus 368ae69b7e Fix map interactivity: canvas overflow hidden, always show full image on load, scroll to top-left 2026-05-16 14:18:01 +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 f23d4aa1f5 Zoom map to 50% by default (was 100%), allows seeing full map on load 2026-05-16 13:48:21 +01:00
Reditus 86b65d48b0 Fix map credit visibility and add thank you message
- Positioned credit absolutely at bottom of map view with semi-transparent background
- Added thank you message to awakening.wiki
2026-05-16 12:45:58 +01:00
Reditus 1fd28267e9 Add fan-made disclaimer footer and awakening.wiki map attribution
- Added site-wide footer with fan-made project disclaimer
- Added credit link to awakening.wiki below map images on Map tab
2026-05-16 12:40:01 +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 341e9a3213 Fix chat UI to show helpful message when text-router logs don't contain chat data 2026-05-15 18:47:00 +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
Reditus 9ddaa5f667 merge remote changes 2026-05-15 13:59:59 +01:00
Reditus 6161f36ea4 merge remote changes 2026-05-15 11:15:00 +01:00
Reditus 85d8fbc8ae Fix Atreides theme swatch typo 2026-05-15 04:06:02 +01:00
Reditus ca1f2e1966 Simplify map: remove filter dropdown, only show DeepDesert/HaggaBasin data, placeholder when no image 2026-05-15 03:48:18 +01:00
Reditus d769c3ef86 Add map image support with coordinate mapping to pixels 2026-05-15 03:40:15 +01:00
Reditus 3d63950d01 Fix map: use class for vehicle names instead of non-existent name column 2026-05-15 03:23:25 +01:00
Reditus f15e8783e2 Add map prototype with coordinate tracking for players, vehicles, buildings 2026-05-15 03:14:15 +01:00
Reditus 70f573eed5 Add Dune theme system with 14 themes 2026-05-15 03:08:32 +01:00
Reditus c74ef9cf9c Update to latest version 2026-05-15 02:18:17 +01:00
Reditus 361c6fcf2f Fix: Add CSRF token to login form and make auth conditional
- Added csrf_token hidden input to login.html for regular form POST
- Made @login_required conditional on auth.enabled setting so dashboard works without auth enabled
- Now supports both auth-enabled and auth-disabled modes
2026-05-14 09:48:00 +01:00
Reditus 9f56c3943e Security: Add @login_required to all API endpoints and CSRF protection
- Added @login_required decorator to all 38 unprotected API endpoints
- Initialized Flask-WTF CSRFProtect in app factory
- Added CSRF token meta tag to base.html
- Added JavaScript fetch interceptor to attach X-CSRFToken header to all non-GET requests
- Closes critical security vulnerability where any unauthenticated user could perform administrative actions
2026-05-14 09:03:14 +01:00
Reditus 236ac4caee revert: restore server page title 2026-05-14 01:29:58 +01:00
Reditus aa8915903d test: temporary change on server page 2026-05-14 01:28:39 +01:00
Reditus 98f9866dea feat: add version indicator in nav bar 2026-05-14 01:24:27 +01:00