224 Commits
Author SHA1 Message Date
Reditus 027ec13660 Remove accidental file 2026-05-15 02:21:41 +01:00
Reditus c74ef9cf9c Update to latest version 2026-05-15 02:18:17 +01:00
Reditus 7125e29993 Merge branch 'nightly' 2026-05-15 02:13:17 +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 5fddd72e69 Restore @auth_req decorators to all API endpoints 2026-05-14 22:22:17 +01:00
Reditus 9c34ccb327 Restore @auth_req decorators to all API endpoints
- Re-added conditional @auth_req decorator to all 38+ unprotected endpoints
- Ensures login required when auth.enabled=true, works without auth when disabled
2026-05-14 22:22:11 +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 573fb9858c add scripts/db_check.py for database connection test 2026-05-14 06:27:30 +01:00
Reditus 73a3428b1d fix: run pkill directly via ssh before port-forward 2026-05-14 06:17:22 +01:00
Reditus a2b35eb3c6 fix: run pkill directly via ssh instead of batch file 2026-05-14 06:09:53 +01:00
Reditus d0ed5fca16 fix: kill existing port-forwards on VM before starting new ones 2026-05-14 06:06:35 +01:00
Reditus 8a061fa8e6 fix: use batch file for port-forward SSH commands to avoid quote escaping issues 2026-05-14 06:02:23 +01:00
Reditus 6a166b8ac0 fix: use sudo for kubectl port-forward commands 2026-05-14 05:36:55 +01:00
Reditus 0418fba37c fix: use NodePort (30822) for director API instead of local tunnel port 2026-05-14 05:29:14 +01:00
Reditus 33dd1c57af fix: use direct BGD pod port 11717 instead of NodePort; remove conflicting SSH tunnel forward 2026-05-14 05:26:53 +01:00
Reditus 49b38918ad fix: SSH key detection via batch file; add director port-forward 2026-05-14 05:10:50 +01:00
Reditus 6e7bb75f17 chore: cleanup unused files, fix gitignore, update docs and settings example 2026-05-14 01:54:05 +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
Reditus a16f4319fa fix: remove tracked VERSION file, generate dynamically for ZIP installs 2026-05-14 01:16:15 +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 6eb6948fcf docs: update firewall description in README with chain details 2026-05-14 00:39:35 +01:00
Reditus 67ad94ea26 fix: firewall block/unblock in INPUT, FORWARD, and mangle PREROUTING chains; combine SSH calls to avoid timeouts; check actual iptables rules instead of settings config 2026-05-14 00:37:45 +01:00
Reditus ae86251196 fix: firewall block/unblock in both INPUT and FORWARD chains for Kubernetes traffic 2026-05-14 00:08:34 +01:00
Reditus f7bcbb81b4 fix: firewall unblock error handling - combine stdout/stderr, handle Bad rule error 2026-05-13 23:42:17 +01:00
Reditus 15bbda3d11 docs: clarify main branch is beta, no stable release yet 2026-05-13 23:34:16 +01:00
Reditus fb47962867 docs: make early development warning red 2026-05-13 23:32:53 +01:00
Reditus aa5d2ca47c docs: update README with early development warning 2026-05-13 23:31:11 +01:00
Reditus 8002fe33f5 fix: firewall setup - clarify vulnerability status, fix PS5.1 base64 upload, remove extra braces 2026-05-13 23:29:35 +01:00
Reditus b7e2b6ccf9 feat: firewall security - block unauthenticated game server ports 2026-05-13 23:16:50 +01:00
Reditus 290271a4f9 cleanup: remove admin page, add fuel keywords to vehicle API, ignore temp scripts and AI docs 2026-05-13 22:05:05 +01:00
Reditus b5e557329c fix: password hashing via temp script to handle special characters 2026-05-13 20:10:39 +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 6c77512470 fix: use external IP service (api.ipify.org) for auto-detection in setup 2026-05-12 09:38:22 +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 1c9cc471e2 fix: update VERSION file to latest commit 2026-05-12 09:19:00 +01:00
Reditus 846b27e834 feat: Let's Encrypt integration, dual IP prompts, firewall checks, and CA utilities
- Add Let's Encrypt support in setup scripts with certbot auto-install (winget/pip/python -m fallbacks)
- Separate VM External IP and Host External IP prompts during setup
- Firewall rule creation only prompts when DuneDashboard rule doesn't exist
- HTTP redirect server tries 0.0.0.0:80 first, falls back to 127.0.0.1:80
- Cert monitor detects LE certs and runs certbot renew instead of local CA regeneration
- Add ssl_domain and ssl_email settings
- Add install-ca-cert.bat and clean-ca-certs.bat utilities for Windows CA management
- Update README with setup flow details, LE docs, and firewall notes
2026-05-12 09:07:51 +01:00
Reditus f22f3bdf8d Release beta: Remote access, auto-update, settings migration, and login security 2026-05-12 05:51:33 +01:00
Reditus 6d785b56df Suppress Flask development server warning 2026-05-12 04:43:52 +01:00
Reditus ad757c8e12 Clean up README: remove duplicate text and version badge 2026-05-12 04:41:15 +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 d3fd8cfea2 Clean up test change from LICENSE 2026-05-12 04:28:01 +01:00
Reditus 192fbded58 Update trigger for updater test 2026-05-12 04:26:55 +01:00