Skip to content

Complete dashboard rewrite with TOTP MFA, user management, and exports#3

Merged
TheModdersDen merged 5 commits into
productionfrom
development
May 26, 2026
Merged

Complete dashboard rewrite with TOTP MFA, user management, and exports#3
TheModdersDen merged 5 commits into
productionfrom
development

Conversation

@TheModdersDen

Copy link
Copy Markdown
Contributor

This pull request introduces a new FastAPI-based dashboard for SentinelSpawn, providing a secure authentication system with TOTP-based MFA, session management, and a real-time web interface for monitoring network security statistics and alerts. The implementation includes a robust authentication backend, a modern dashboard UI, and Dockerfiles for deployment.

Key changes include:

Dashboard Application & Authentication

  • Added a new FastAPI application (main.py) that implements a web dashboard with secure session management, login, MFA, password change, and logout flows. It displays real-time stats from Suricata, AdGuard, and WireGuard, and provides a setup wizard for first-time admin creation.
  • Implemented a secure authentication backend (auth.py) using bcrypt for password hashing, TOTP for MFA, and encrypted credential storage with Fernet. Features include first-login password change enforcement, user/session management, and SQLite-based persistence.

User Interface

  • Added Jinja2 HTML templates for login, MFA verification, password change, and the main dashboard, providing a modern, responsive UI with Materialize CSS and real-time auto-refresh. [1] [2] [3] [4]

Deployment

  • Added Dockerfile for the dashboard, installing all dependencies, copying application files, and exposing the appropriate port for production use.
  • Added a minimal Dockerfile.c2 for the C2 blocker notifier service, installing only required dependencies.

TheModdersDen and others added 5 commits May 26, 2026 20:27
…management, first-login flow, Chart.js visualizations, exports (CSV/PNG/JSON), and polished Material UI

- Added secure TOTP MFA with first-login password setup
- Encrypted SQLite credential storage with auto-generated SECRET_KEY
- User management page (change username/password)
- Beautiful dashboard with Chart.js, dark/light toggle, no username exposure
- Rate limiting, backoff, and Prometheus metrics in C2 blocker
- Export functionality: CSV (alerts/stats), PNG (charts), JSON (full state)
- Fully network-agnostic and privacy-focused

Co-authored-by: Hermes Agent
…rite

Complete dashboard rewrite with TOTP MFA, user management, and exports
Copilot AI review requested due to automatic review settings May 26, 2026 21:03
@TheModdersDen
TheModdersDen merged commit bf98ef0 into production May 26, 2026
1 check passed
@TheModdersDen
TheModdersDen removed the request for review from Copilot May 26, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants