Dune Awakening Dashboard
A comprehensive web-based management dashboard for Dune: Awakening private servers. Provides real-time monitoring, player management, chat logging, file browsing, and server administration tools.
Branching Strategy
This repo follows a git-flow inspired strategy. Here's the breakdown:
-
main - Current beta release. It's stable enough to use, but things still break occasionally. I'm working toward a proper stable release, but we're not there yet. Don't use main as a reference for "production-ready" code - it's more "production-adjacent."
-
nightly - The cutting edge. Updated automatically from main with the latest changes. Might have shiny new features, might have shiny new bugs. Generally works but don't be surprised if something catches fire.
-
experimental - Where ideas go to become features or crash spectacularly. This is where new features are tested, questionable UI decisions are made, and code is written that might make future-me weep. Expect bugs. Expect weirdness. Expect things to break in creative new ways.
"This seemed like a great idea at 3am" - every experimental commit ever
Workflow: Features → experimental → testing → nightly → main (eventually)
If you're testing this project, grab builds from nightly for the latest features, or main for something more stable. Experimental is where I break things on purpose to see what sticks.
Quick Start
Windows
- Double-click
setup.bat - Follow the prompts
- Double-click
start.batto launch
Tip
: Ensure your SSH key is in
internal-scripts/ssh/sshKeybefore running setup.
Features
- Real-time Overview: Server metrics, player counts, pod status, and resource usage.
- Player Management: View, search, and filter players. Track online status, factions, guilds, and locations.
- Chat Logs: Parsed from text-router pod logs with channel filtering and auto-refresh.
- Director Controls: Live battlegroup stats, world state management, and server transfer controls.
- File Browser: Secure SSH-based file browser for server configuration and logs.
- Shell Access: Interactive VM and Kubernetes pod shells directly in the browser.
- Admin Tools: Ban management, IP detection, kick/unban functionality, and player history.
- Firewall Security: Block unauthenticated game server ports (File Browser, Director, PostgreSQL) from external internet access. Applied via iptables on the game server VM across INPUT, FORWARD, and mangle PREROUTING chains to cover both host services and Kubernetes NodePort traffic. Configurable per-port during setup or from the Server page.
- Vehicles & Buildings: Track owned vehicles, modules, and player structures.
- Auto-Update: Background checker polls GitHub for new commits. Safe file replacement preserves your settings, logs, and SSH keys. One-click update from the dashboard.
- Remote Access: Built-in support for HTTPS and binding to
0.0.0.0for secure remote management. - Let's Encrypt: Optionally set up publicly trusted SSL certs during setup with automatic renewal via certbot.
- Settings Migration: Automatically adds new configuration options to
settings.yamlwhen updating, so you never miss a feature. - Cross-Platform: Works on Windows (
.bat/.ps1) and Linux/macOS (.sh).
License
This project is Source Available under the Dune Dashboard Source License (DDSL).
- Source code is available for inspection and security auditing.
- No redistribution (modified or unmodified).
- No claiming of credit or authorship.
- Personal, non-commercial use only.
Requirements
- Python 3.8+
- OpenSSH client
kubectlaccess to the Dune: Awakening Kubernetes cluster- SSH access to the game server VM
Setup
Windows
-
Run Setup
.\setup.ps1This will install dependencies, configure your SSH key, and generate
settings.yaml.During setup you'll be prompted for:
- VM External IP — the IP you SSH into (e.g.,
65.21.198.100) - Host External IP — the public IP for SSL certificate SANs (e.g.,
65.21.198.107) - Let's Encrypt — optionally set up a publicly trusted SSL cert with auto-renewal via certbot
- Firewall rules — only prompted if no
DuneDashboardrule exists yet
- VM External IP — the IP you SSH into (e.g.,
-
Start Dashboard
.\start.ps1This starts the SSH tunnel, database port-forward, and launches the dashboard.
Linux / macOS
-
Run Setup
chmod +x setup.sh start.sh ./setup.sh -
Start Dashboard
./start.sh
Configuration
All settings are stored in settings.yaml. The setup script generates this automatically. Key settings include:
server.host: Game server VM IPserver.ssh_key: Path to your SSH private keykubernetes.namespace: Auto-detected K8s namespacedatabase.port: Local port for database tunnelauth.username/auth.password_hash: Dashboard login credentials (password_hash is Argon2 hash, generated by setup)
Remote Access
During setup, answer y to "Enable remote access?" to:
- Bind to
0.0.0.0(accessible from other machines) - Auto-generate SSL certificates for HTTPS
- Enable secure remote connections via
https://YOUR_IP:5050
Firewall rules are created automatically during setup. On subsequent starts, start.ps1/start.sh will only prompt if the DuneDashboard rule is missing.
You can also manually edit settings.yaml later:
dashboard:
host: 0.0.0.0
ssl_cert: ssl/cert.pem
ssl_key: ssl/key.pem
Let's Encrypt (Publicly Trusted Certs)
During setup, answer y when asked to enable Let's Encrypt. The setup script will:
- Install
certbot(trieswinget,pip, andpython -mfallbacks on Windows) - Run
certbot certonly --standaloneto validate your domain - Configure auto-renewal via Windows Scheduled Task or Linux cron
- Point the dashboard to the Let's Encrypt cert paths
Note
: Port 80 must be free during certbot validation. The dashboard's HTTP redirect server will release port 80 temporarily for this.
Local CA Utilities (Windows)
Two helper scripts are included for managing the self-signed CA:
install-ca-cert.bat— Installs the local CA (ssl/ca.pem) into Windows Trusted Root store. Run as Administrator. Removes browser warnings.clean-ca-certs.bat— Removes the dashboard CA from Windows Trusted Root store. Run as Administrator.
SSL Configuration
The dashboard supports both self-signed and CA-signed certificates.
Local CA (auto-generated during setup):
- A local Certificate Authority (
ssl/ca.pem) is created during setup - Server certificates are signed by this CA
- Server certs include SAN for the server IP +
127.0.0.1+localhost - Valid for 365 days
Remove browser warnings (Windows):
- Run
install-ca-cert.batas Administrator - Restart your browser
- Access
https://localhost:5050— no more warnings
Remove browser warnings (Linux):
sudo cp ssl/ca.pem /usr/local/share/ca-certificates/dune-dashboard-ca.crt
sudo update-ca-certificates
Let's Encrypt or custom CA:
dashboard:
host: 0.0.0.0
ssl_cert: /etc/letsencrypt/live/yourdomain.com/fullchain.pem
ssl_key: /etc/letsencrypt/live/yourdomain.com/privkey.pem
When SSL is enabled:
- Session cookies are marked
Secure(sent only over HTTPS) - HTTP-to-HTTPS redirect runs on port+1 (e.g.,
http://localhost:5051→https://localhost:5050) - Certificate expiry is checked at startup (warning if < 30 days)
Regenerate certificates:
Delete ssl/cert.pem, ssl/key.pem, and ssl/ca*.pem, then re-run setup.
Auto-Renewal
SSL certificates are automatically regenerated when they approach expiry:
- A background thread checks the certificate every 24 hours (configurable)
- If the certificate expires within 30 days (configurable), a new one is generated
- The server does not need to restart — Flask-SocketIO picks up the new cert on the next connection
- Configure thresholds in
settings.yamlunder thessl:section
Project Structure
DuneDashboard/
├── app/ # Core application package
│ ├── routes/ # HTTP route handlers
│ ├── services/ # Business logic (DB, SSH, K8s, etc.)
│ ├── utils/ # Helpers and constants
│ └── websocket/ # Socket.IO handlers
├── templates/ # Jinja2 HTML templates
├── static/ # CSS and frontend assets
├── setup.ps1 / setup.sh # One-time setup scripts
├── start.ps1 / start.sh # Dashboard launchers
└── settings.yaml # Configuration (gitignored)
Security Notes
- Never commit
settings.yamlto version control. - SSH keys are copied to
%TEMP%with restricted permissions during startup. - All database queries use parameterized statements to prevent SQL injection.
- Dashboard authentication is required by default.