How shimkwkr/sesim works
SESIM is a security-AI platform with a SaaS control plane and a customer-side deployment/runtime. The user flow is to register and configure a cloud role, provision a private project, then send security logs to local AI for detection and inspect results and usage. The graph retains the README’s provisioning, AI, and billing/dashboard branches. Only shown code and README support the relationships; several feature links remain dashed where implementation wiring was not sampled.
Main entry points: predict_service.py Prediction workflow · DeploymentService.java Deployment orchestration · MainRoutes.tsx Web experience · APIUsagePage.tsx Usage dashboard
Components 25
SaaS web
- Web experience
fe/sesim/src/layouts/MainRoutes.tsx - Project setup
fe/sesim/src/pages/CreateProjectPage.tsx - Usage dashboard
fe/sesim/src/pages/APIUsagePage.tsx - Model catalog
fe/sesim/src/pages/AiModelPage.tsx
SaaS control plane
- Account auth
be/sesim/src/main/java/com/backend/sesim/domain/auth/service/AuthService.java - User records
be/sesim/src/main/java/com/backend/sesim/domain/user/repository/UserRepository.java - Cloud role access
be/sesim/src/main/java/com/backend/sesim/domain/iam/service/IamRoleService.java - Project state
be/sesim/src/main/java/com/backend/sesim/domain/deployment/entity/Project.java - Usage aggregation
be/sesim/src/main/java/com/backend/sesim/domain/deployment/service/ApiUsageService.java - Usage streaming
be/sesim/src/main/java/com/backend/sesim/domain/deployment/service/ApiUsageSSEService.java - Usage records
be/sesim/src/main/java/com/backend/sesim/domain/deployment/entity/ApiUsage.java
Customer runtime
- Customer API
client/app/main.py - Log extraction
client/app/core/extractors/nginx_extractor.py - Prediction workflow
client/app/services/predict_service.py - Detection results
client/app/models/models.py
AI inference
- AI service API
ai/app/main.py - Model training
ai/app/api/train.py - Attack detection
ai/app/api/predict.py
Provisioning
- Deployment orchestration
be/sesim/src/main/java/com/backend/sesim/domain/deployment/service/DeploymentService.java - Terraform execution
be/sesim/src/main/java/com/backend/sesim/domain/deployment/service/TerraformService.java - K3s setup
be/sesim/src/main/java/com/backend/sesim/domain/deployment/service/K3sSetupService.java
Other components
- Platform user
- Grafana dashboard
- Customer infrastructure
- AWS services
Connections 27
- Platform user → Web experience: uses
fe/sesim/src/layouts/MainRoutes.tsx - Web experience → Project setup: routes to
fe/sesim/src/layouts/MainRoutes.tsx - Web experience → Model catalog: routes to
fe/sesim/src/layouts/MainRoutes.tsx - Platform user → Account auth: authenticates
- Account auth → User records: reads and writes
be/sesim/src/main/java/com/backend/sesim/domain/auth/service/AuthService.java - Platform user → Cloud role access: configures role
- Cloud role access → AWS services: verifies role
be/sesim/src/main/java/com/backend/sesim/domain/iam/service/IamRoleService.java - Cloud role access → User records: loads user
be/sesim/src/main/java/com/backend/sesim/domain/iam/service/IamRoleService.java - Project setup → Deployment orchestration: requests provisioning
- Deployment orchestration → Terraform execution: orchestrates
- Deployment orchestration → Project state: persists project
be/sesim/src/main/java/com/backend/sesim/domain/deployment/service/DeploymentService.java - Terraform execution → K3s setup: sets up cluster
- Deployment orchestration → Customer infrastructure: provisions into
README.md - Customer infrastructure → Customer API: hosts
README.md - Customer API → Prediction workflow: routes requests
client/app/main.py - Prediction workflow → Log extraction: parses logs
client/app/services/predict_service.py - Prediction workflow → AI service API: requests inference
client/app/services/predict_service.py - AI service API → Attack detection: exposes
ai/app/main.py - AI service API → Model training: exposes
ai/app/main.py - Prediction workflow → Detection results: stores results
client/app/services/predict_service.py - Model training → Attack detection: trains models
- Usage dashboard → Usage aggregation: requests usage
- Usage aggregation → Usage records: aggregates records
be/sesim/src/main/java/com/backend/sesim/domain/deployment/service/ApiUsageService.java - Usage aggregation → Usage streaming: streams updates
be/sesim/src/main/java/com/backend/sesim/domain/deployment/service/ApiUsageService.java - Usage streaming → Usage dashboard: pushes updates
- Usage dashboard → Grafana dashboard: visualizes usage
README.md - Detection results → Grafana dashboard: visualizes detections
README.md