How cagrisaltik/sentinel-system works
Sentinel System manages authenticated Scout agents: the Commander accepts agent connections, schedules short-lived monitoring tasks, and validates and stores returned telemetry; the Analyst provides authenticated views of stored results. Scout validates and executes authorized ping tasks, then reports results. The README documents MySQL-backed users, agents, targets, logs, and monitoring results. The excerpts show the main runtime entry points and key operations, but the Commander is a single large file and other subsystems are only partly sampled; unsupported internal links are omitted.
Main entry points: commander/main.go Commander Service · scout/main.go Secure Connection · analyst/main.go Analyst Service · index.html Analyst Dashboard
Components 19
Commander
- Commander Service
cmd/commander/main.go - Login and Sessions
cmd/commander/main.go - Agent Gateway
cmd/commander/main.go - Task Scheduler
cmd/commander/main.go - Telemetry Validation
cmd/commander/main.go - Commander Database Access
cmd/commander/main.go
Scout Agent
- Scout Agent
cmd/scout/main.go - Secure Connection
cmd/scout/main.go - Task Validation
cmd/scout/main.go - Ping Execution
cmd/scout/main.go - Telemetry Reporting
cmd/scout/main.go
Analyst
- Analyst Dashboard
web/analyst/index.html - Analyst Service
cmd/analyst/main.go - Authentication and Sessions
cmd/analyst/main.go - Result Queries
cmd/analyst/main.go
Shared Protocol
- Agent Messages
internal/models/message.go
Other components
- Operator
- Commander Panel
web/commander/index.html - MySQL Database
Connections 22
- Operator → Commander Panel: uses
README.md - Commander Panel → Commander Service: HTTPS requests
README.md - Commander Service → Login and Sessions: handles login
cmd/commander/main.go - Commander Service → Agent Gateway: routes agent traffic
cmd/commander/main.go - Task Scheduler → Commander Database Access: reads targets
cmd/commander/main.go - Task Scheduler → Agent Gateway: writes tasks
cmd/commander/main.go - Agent Gateway → Telemetry Validation: receives reports
README.md - Telemetry Validation → Commander Database Access: stores results
cmd/commander/main.go - Commander Database Access → MySQL Database: reads and writes
README.md - Scout Agent → Secure Connection: connects and registers
cmd/scout/main.go - Secure Connection → Agent Gateway: WSS with mTLS
README.md - Secure Connection → Task Validation: reads tasks
cmd/scout/main.go - Task Validation → Ping Execution: authorizes ping
cmd/scout/main.go - Ping Execution → Telemetry Reporting: collects result
cmd/scout/main.go - Telemetry Reporting → Secure Connection: writes report
cmd/scout/main.go - Analyst Dashboard → Analyst Service: dashboard requests
- Operator → Analyst Dashboard: views results
- Analyst Service → Authentication and Sessions: authenticates requests
cmd/analyst/main.go - Analyst Service → Result Queries: routes queries
cmd/analyst/main.go - Result Queries → MySQL Database: queries results
cmd/analyst/main.go - Commander Service → Agent Messages: uses message type
cmd/commander/main.go - Scout Agent → Agent Messages: uses message type
cmd/scout/main.go