Complete dashboard rewrite with TOTP MFA, user management, and exports#3
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.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
Deployment
Dockerfilefor the dashboard, installing all dependencies, copying application files, and exposing the appropriate port for production use.Dockerfile.c2for the C2 blocker notifier service, installing only required dependencies.