How nowsadmunna/spl-3-sadmc_sheild works
SADMC Shield monitors Kubernetes services through an agent, sends metrics to a SaaS backend for persistence and anomaly inference, and can execute thresholded remediation; users inspect results in an authenticated dashboard. The tree also contains a separate federated anomaly-detection research/training codebase. The README is empty, and sampled sources do not establish how that research code connects to the SaaS model or how dashboard data services are wired, so those links are omitted.
Main entry points: app.routes.ts Dashboard routes · main.py Agent loop · dashboard.routes.js Dashboard API · app.js API application
Components 34
Cluster agent
- Agent loop
HelmAndSaas/Agent/agent/main.py - Service discovery
HelmAndSaas/Agent/agent/discovery.py - Prometheus detection
HelmAndSaas/Agent/agent/prometheus_detector.py - Metrics collection
HelmAndSaas/Agent/agent/metrics_collector.py - SaaS client
HelmAndSaas/Agent/agent/inference_client.py - Remediation executor
HelmAndSaas/Agent/agent/remediation/executor.py - Cooldown tracking
HelmAndSaas/Agent/agent/remediation/cooldown.py
SaaS backend
- HTTP server
HelmAndSaas/Saas/server.js - API application
HelmAndSaas/Saas/app.js - Authentication routes
HelmAndSaas/Saas/routes/auth.routes.js - Authentication service
HelmAndSaas/Saas/services/authService.js - Metrics ingestion
HelmAndSaas/Saas/routes/metrics.routes.js - Cluster service
HelmAndSaas/Saas/services/clusterService.js - Metrics service
HelmAndSaas/Saas/services/metricsService.js - Inference service
HelmAndSaas/Saas/services/inferenceService.js - Anomaly events
HelmAndSaas/Saas/services/eventService.js - Dashboard API
HelmAndSaas/Saas/routes/dashboard.routes.js - Dashboard queries
HelmAndSaas/Saas/services/dashboardService.js - Remediation reports
HelmAndSaas/Saas/routes/remediation.routes.js - Live events
HelmAndSaas/Saas/ws/wsServer.js
Web dashboard
- Dashboard routes
HelmAndSaas/Dashboard/src/app/app.routes.ts - Dashboard authentication
HelmAndSaas/Dashboard/src/app/core/auth.service.ts - Overview and feeds
HelmAndSaas/Dashboard/src/app/pages/dashboard-overview/dashboard-overview.ts - Metrics view
HelmAndSaas/Dashboard/src/app/pages/metrics/metrics.ts - Anomaly feed
HelmAndSaas/Dashboard/src/app/pages/anomaly-feed/anomaly-feed.ts - Remediation log
HelmAndSaas/Dashboard/src/app/pages/remediation-log/remediation-log.ts - Settings and setup
HelmAndSaas/Dashboard/src/app/pages/settings/settings.ts
Anomaly modeling
- ONNX model
HelmAndSaas/Saas/inference/onnxModel.js - Federated model training
SADMC-MT-FF-FL/code/train.py - Federated network
SADMC-MT-FF-FL/code/network_fed.py
Other components
- Kubernetes cluster
- Prometheus
- Dashboard user
- PostgreSQL
HelmAndSaas/Saas/db/pool.js
Connections 42
- Dashboard user → Dashboard routes: navigates
- Dashboard routes → Dashboard authentication: uses auth
- Dashboard routes → Overview and feeds: routes to
- Dashboard routes → Metrics view: routes to
- Dashboard routes → Anomaly feed: routes to
- Dashboard routes → Remediation log: routes to
- Dashboard routes → Settings and setup: routes to
- Agent loop → Prometheus detection: detects
- Agent loop → Service discovery: discovers
- Agent loop → Metrics collection: collects
- Agent loop → SaaS client: registers and sends
- Service discovery → Kubernetes cluster: discovers services
- Prometheus detection → Prometheus: detects endpoint
- Metrics collection → Prometheus: reads metrics
- SaaS client → HTTP server: sends API requests
- HTTP server → API application: serves
- API application → Authentication routes: mounts
- API application → Metrics ingestion: mounts
- API application → Dashboard API: mounts
- API application → Remediation reports: mounts
- Authentication routes → Authentication service: calls
- Authentication service → PostgreSQL: queries
- Metrics ingestion → Cluster service: calls
- Metrics ingestion → Metrics service: calls
- Metrics ingestion → Inference service: predicts with
- Metrics ingestion → Anomaly events: records anomalies
- Cluster service → PostgreSQL: queries
- Metrics service → PostgreSQL: writes metrics
- Anomaly events → PostgreSQL: writes events
- Inference service → ONNX model: loads and predicts
- Dashboard API → Dashboard queries: calls
- Dashboard queries → PostgreSQL: queries
- SaaS client → Remediation reports: reports outcomes
- Agent loop → Cooldown tracking: checks and records
- Agent loop → Remediation executor: executes actions
- Dashboard user → Authentication routes: registers or logs in
- Dashboard authentication → Authentication routes: requests auth
- Overview and feeds → Dashboard API: requests dashboard data
- Metrics view → Dashboard API: requests metrics
- Anomaly feed → Dashboard API: requests anomalies
- Remediation log → Dashboard API: requests remediation history
- HTTP server → Live events: attaches event server