How keshavsundar10-kk/sentrax works
SentraX is an AI-agent security monitoring dashboard with a Spring backend for task records and rule-based action evaluation. The principal workflow is to submit a task intent and proposed action in the Live Demo, reuse or create a task, request an evaluation, and display the decision while the backend records a security event. The dashboard also refreshes metrics, tasks, and recent events. The sampled material does not establish live data wiring for every page or the database configuration, so those links are omitted or marked unverified.
Main entry points: App.jsx Page router · api.js API client · SecurityController.java Security evaluation · TaskRepository.java Task persistence
Components 16
Monitoring interface
- Page router
sentrax-frontend/src/App.jsx - Action evaluation
sentrax-frontend/src/pages/LiveDemo.jsx - Live dashboard
sentrax-frontend/src/pages/Dashboard.jsx - Task monitor
sentrax-frontend/src/pages/Tasks.jsx - Security events
sentrax-frontend/src/pages/SecurityEvents.jsx - Analytics view
sentrax-frontend/src/pages/Analytics.jsx - Navigation
sentrax-frontend/src/components/Sidebar.jsx - API client
sentrax-frontend/src/services/api.js
Security service
- Task endpoints
sentrax-backend/src/main/java/com/sentrax/TaskController.java - Security evaluation
sentrax-backend/src/main/java/com/sentrax/SecurityController.java - Metrics endpoint
sentrax-backend/src/main/java/com/sentrax/SecurityMetricsController.java
Task and event records
- Task persistence
sentrax-backend/src/main/java/com/sentrax/TaskRepository.java - Task record
sentrax-backend/src/main/java/com/sentrax/Task.java - Event persistence
sentrax-backend/src/main/java/com/sentrax/SecurityEventRepository.java - Security event
sentrax-backend/src/main/java/com/sentrax/SecurityEvent.java
Other components
- Security operator
Connections 17
- Security operator → Page router: opens
sentrax-frontend/src/App.jsx - Page router → Action evaluation: routes to
sentrax-frontend/src/App.jsx - Page router → Live dashboard: routes to
sentrax-frontend/src/App.jsx - Page router → Task monitor: routes to
sentrax-frontend/src/App.jsx - Page router → Security events: routes to
sentrax-frontend/src/App.jsx - Page router → Analytics view: routes to
sentrax-frontend/src/App.jsx - Action evaluation → API client: requests tasks and evaluation
sentrax-frontend/src/pages/LiveDemo.jsx - Live dashboard → API client: loads monitoring data
sentrax-frontend/src/pages/Dashboard.jsx - API client → Task endpoints: calls task routes
sentrax-frontend/src/services/api.js - API client → Security evaluation: calls security routes
sentrax-frontend/src/services/api.js - Task endpoints → Task persistence: reads and saves
sentrax-backend/src/main/java/com/sentrax/TaskController.java - Task persistence → Task record: persists
sentrax-backend/src/main/java/com/sentrax/TaskRepository.java - Security evaluation → Task persistence: looks up task
sentrax-backend/src/main/java/com/sentrax/SecurityController.java - Security evaluation → Event persistence: saves and lists events
sentrax-backend/src/main/java/com/sentrax/SecurityController.java - Event persistence → Security event: persists
sentrax-backend/src/main/java/com/sentrax/SecurityEventRepository.java - API client → Metrics endpoint: requests metrics
- Metrics endpoint → Event persistence: counts decisions
sentrax-backend/src/main/java/com/sentrax/SecurityMetricsController.java