Files
dune-dashboard/README.md
T

111 lines
4.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Dune Awakening Dashboard
A modern, full‑featured management dashboard for **Dune: Awakening** private servers. Provides real‑time monitoring, player tools, chat logs, file browsing, admin utilities, and secure remote access.
> “A comprehensive web-based management dashboard for Dune: Awakening private servers.”
---
## Quick Start
### **Windows**
1. Run `launcher.bat` or `.\launcher.ps1`
2. Select **[2] Run Setup** on first launch
3. Select **[1] Start Dashboard** to open the UI
> The launcher automatically finds your Dune Awakening SSH key and politely ignores PowerShell’s opinions about execution policies.
### **Linux / macOS**
```bash
chmod +x start.sh
./start.sh
```
---
## Features
- **Player Management** (vitals, inventory, vehicles, buildings, guilds, reputation)
- **Chat Logs** with channel filtering and auto-refresh
- **Director Tools** (battlegroups, world state, transfers)
- **SSH File Browser** + **in-browser shell**
- **Pod Management** (list, logs, describe, delete with safe-mode for DB backup pods)
- **Nav Layout** — switch between horizontal and vertical sidebar; persists preference; auto-enables sidebar on mobile
- **Firewall Hardening** via iptables
- **Auto‑Update** with safe file replacement
- **HTTPS + Remote Access** (self‑signed or Let’s Encrypt)
- **Cross‑Platform Launchers**
- **Organized Logging** with automatic cleanup and redaction
- **Debug Mode** with full SSH/K8s tracing
- **SSH Key Rotation** — scan all key locations and sync the newest key
- **Backup & Restore** — full server snapshots (game DB, K8s resources, RMQ config, dashboard schema) with optional AES-256 encryption and password protection
- **Scheduled Backups** — configurable interval or day/time-based scheduling with automatic retention cleanup
- **Funcom Service Auth Token Management** — update the `ServiceAuthToken` JWT across files and live K8s resources (secret, YAML, BattleGroup CR) with verification
- **Graceful Shutdown / Restart** — in-game countdown warnings, then `battlegroup stop` / `restart`, with cancel notices
- **Custom Notifications** — instant in-game broadcasts, plus scheduled one-shot/daily/weekly/monthly messages
- **Scheduled Restarts** — daily/weekly/monthly/one-shot with the same countdown, enable/disable/clear without losing settings
- **Battlegroup Update Guard** — update refuses while game servers are online
- **Jailed File Browser** — restricted to configured directories with symlink-aware checks
---
## Project Structure
```
DuneDashboard/
├── app/ # Flask/Jinja2 dashboard
├── launcher.ps1 # Windows launcher
├── start.sh # Linux/macOS launcher
└── settings.yaml # Generated config (gitignored)
```
---
## Requirements
- Python 3.8+
- OpenSSH client
- `kubectl` access to your Dune Awakening cluster
- SSH access to the game server VM
---
## Security
- `settings.yaml` is never committed
- SSH keys stored with restricted permissions
- All DB queries parameterized
- No raw SQL console — the old experimental query/execute endpoints were removed entirely
- Shell parameters validated and quoted throughout
- File browser jailed to allowed directories
- All mutations audited
- CSP, HSTS, X‑Frame‑Options enforced in production
> Because letting users run `DROP TABLE` from a web UI is how horror stories begin — so that UI no longer exists.
---
## Development
Run `launcher.bat` or `.\launcher.ps1` — the launcher handles dependencies, SSH key configuration, and server setup automatically.
---
## Branching Strategy
- **main** — stable-ish beta
- **experimental** — where chaos becomes innovation
> “This seemed like a great idea at 3am.” — every experimental commit ever
---
## License
Source Available under the **Dune Dashboard Source License (DDSL)**
- No redistribution
- No claiming authorship
- Personal, non-commercial use only
- Basically: look, learn, enjoy — just don’t repost it as “Dune Dashboard Pro Deluxe Edition”.