Orchestrator Reference
The Orchestrator is the single source of truth of SOCSuite. It defines the complete target state of the system in YAML files under orchestrator/meta/. No endpoint, no service and no permission may exist that is not declared there.
:::warn [Orchestrator first] Before any new endpoint or service, the entry in the Orchestrator must exist. Without a declaration → STOP — no code. :::
Overview
| Metric | Value |
|---|---|
| Services | 57 (across 22 domains) |
| Endpoints | 310 (REST API) |
| Permissions | 97 (RBAC) |
| Schemas | 50 (request/response) |
| Meta-YAML | ~7,300 lines |
| Consistency | 99.7 % |
| Tests | 117 (97.4 % pass) |
Meta Files
All files are located under orchestrator/meta/:
| File | Lines | Description |
|---|---|---|
endpoints.yaml | 2,787 | All API endpoints with auth, rate limit, permissions |
frontend.yaml | 860 | Frontend target: 58 routes, 29 components, hooks |
installation-wizard.yaml | 606 | 6-phase installation wizard (13 UI screens) |
kubernetes.yaml | 595 | K8s deployment, 16 init jobs, 4 namespaces |
schema.yaml | 552 | 50 request/response schemas |
database.yaml | 533 | PostgreSQL schema, 30+ tables |
one-click-deployment.yaml | 515 | Deployment modes & resource profiles |
services.yaml | 455 | 57 backend services with domain assignment |
integrations.yaml | 291 | 19 third-party connectors |
threat-intel.yaml | 179 | CTI: IOCs, feeds, MITRE ATT&CK v15.1 |
permissions.yaml | 165 | 97 RBAC permissions (registry) |
infrastructure.yaml | 97 | OpenSearch, PostgreSQL, Redis, Keycloak |
invariants.yaml | 45 | System-wide invariants (CRITICAL/ERROR) |
contracts.yaml | 25 | API contract rules |
Domains & Services
The 57 services are distributed across 22 domains:
| Domain | Services | Example functions |
|---|---|---|
| auth | BFF Auth, Session Management | OAuth2 PKCE, session management |
| user | User Service, User Profile | CRUD, self-service profile |
| siem | Alert Service | Security alerts, status updates |
| cases | Case, Task, Timeline, Communication, Evidence, Post-Incident | Incident response, forensics, lessons learned |
| vulnmgmt | Vulnerability, Workflow, Patch Management | CVE enrichment, CVSS/EPSS, patches |
| secbase | Asset, Person, Application | IT assets, contacts, applications |
| detection | Detection Rule Service | SIGMA rules, OpenSearch sync |
| automation | Playbook, Workflow, Action Catalog, Schedule | SOAR, drag-and-drop designer, cron jobs |
| orbit | Agent Lifecycle, Management, Enrollment, EDR, FIM, Device Control | Satellite agents, zero-touch provisioning |
| cti | IOC, Feed, Threat Actor, MITRE ATT&CK | Threat intelligence, STIX 2.1 |
| monitoring | Monitoring Service | Health, container logs, metrics |
| audit | Audit Service | Append-only audit logs (7 years) |
| settings | Settings Service | API tokens, connectors, security policy |
| terminal | Terminal Service | Remote terminal to agents |
| uba | User Behavior Analytics | Baselines, anomalies, risk scores |
| hunting | Threat Hunting | Campaigns, queries, execution |
| compliance | Compliance & GRC | Frameworks, controls, evidence, reports |
| collaboration | Comments, Notifications | Team communication |
| ticketing | Ticket Service | Internal ticketing, SLA tracking |
| ai | AI Assistant | Alert analysis, reports, action suggestions |
| reporting | Dashboards & KPIs | Dashboard builder, KPI views |
| integrations | Connector Manager | 19 connectors (Wazuh, Velociraptor, etc.) |
Invariants
System-wide rules that must never be violated. CRITICAL = immediate abort.
| ID | Rule | Severity |
|---|---|---|
no-hallucinated-routes | No routes not declared in endpoints.yaml | CRITICAL |
auth-is-never-optional | Every endpoint needs an explicit auth field | CRITICAL |
no-undeclared-side-effects | No code with unspecified DB ops, API calls or file writes | CRITICAL |
no-hardcoded-secrets | No passwords, tokens or secrets as literals | CRITICAL |
no-dev-only-endpoints-in-prod | env: dev-only endpoints never in production | CRITICAL |
no-direct-db-in-handlers | Handler → only via repository layer | ERROR |
error-handling-required | Every handler must explicitly handle errors | ERROR |
mfa-required-for-privileged-roles | superadmin and admin require MFA in production | ERROR |
rate-limits-must-be-distributed | Rate limiting must be Redis-backed (not per-pod) | ERROR |
no-audit-log-bypass | Write operations (POST/PUT/PATCH/DELETE) require audit log entry | ERROR |
Contracts
Communication contracts — how endpoints must be structured:
| Contract | Rule |
|---|---|
public-endpoints-require-rate-limit | auth: none → rateLimit field mandatory (Redis-backed, format: N/min or N/s) |
session-endpoints-require-auth-middleware | auth: session → AuthRequired middleware mandatory |
no-undeclared-endpoints | No code endpoint without entry in endpoints.yaml |
permission-required-for-sensitive-domains | Domains siem, cases, user → permission field mandatory |
permission-registry-check | Every permission value must be registered in permissions.yaml |
Endpoint Declaration (Example)
A typical entry in endpoints.yaml looks like this:
- id: auth-login
service: auth-bff-service
method: GET
path: /api/v1/auth/login
auth: none
rateLimit: "10/min"
description: Initiate PKCE flow – redirects browser to Keycloak
- id: user-list
service: user-service
method: GET
path: /api/v1/users
auth: session
permission: users.view
description: List all users with pagination:::info [Required fields]
Every endpoint needs: id, service, method, path, auth, description.
With auth: none additionally: rateLimit. For sensitive domains: permission.
:::
Permission Categories
The 97 permissions are grouped by domain:
| Domain | Permissions (excerpt) |
|---|---|
| User | users.view, users.manage, users.self, profile.self |
| SIEM | siem.alerts.view, siem.alerts.manage |
| Cases | cases.view, cases.create, cases.edit, cases.delete, cases.timeline.*, cases.evidence.* |
| Vulnerability | vulnmgmt.vulnerabilities.view, vulnmgmt.patches.deploy |
| Automation | automation.playbooks.view, automation.playbooks.execute, automation.workflows.* |
| Orbit (Agents) | orbit.missions.*, orbit.agents.*, agents.enrollment.* |
| CTI | cti.iocs.*, cti.feeds.*, cti.threat-actors.*, cti.mitre-attack.view |
| Hunting | hunting.campaigns.*, hunting.queries.*, hunting.execute |
| Compliance | compliance.frameworks.view, compliance.controls.*, compliance.reports.* |
| AI | ai.query, ai.analyze-alert, ai.suggest-actions, ai.generate-report |
:::info [Role hierarchy]
superadmin → admin → soc_manager → soc_analyst → viewer.
Permissions are assigned via role.attributes.permissions in Keycloak.
:::
Generated Artefacts
The Orchestrator automatically generates:
| Artefact | Format | Description |
|---|---|---|
openapi.yaml | OpenAPI 3.0 | Full API specification (426 KB) |
openapi.json | JSON | JSON variant (643 KB) |
postman.json | Postman v2.1 | Importable collection (303 KB) |
endpoints/*.md | Markdown | 22 domain-specific docs |
schemas/*.md | Markdown | 50 schema documentations |
Orchestrator Features
Validation
The Orchestrator automatically checks:
- Meta validation — Referential integrity of all YAML files
- Code analysis — Extracts endpoints from Go code, compares with target state
- Contract checks — SAT/UNSAT solver for contract verification
- Invariant engine — CRITICAL violations → exit 1
Target vs. Actual Comparison
Orchestrator reads meta/*.yaml (target)
│
▼
Analyses apps/api/ Go code (actual)
│
▼
Generates report:
├── MISSING_IN_CODE → endpoint declared but not implemented
└── MISSING_IN_META → code endpoint without declaration (violation!)Workflow: Adding a New Endpoint
1. endpoints.yaml → Declare endpoint (id, path, method, auth, ...)
2. services.yaml → Service exists? Otherwise create it
3. permissions.yaml → Register permission (if needed)
4. schema.yaml → Define request/response schema
5. Go code → domain → repository → service → handler → route
6. Tests → unit + integration
7. Orchestrator → run validation:::error [Follow the order] Always update Orchestrator meta first, then write code. Never the other way around. :::
See Also
- API Reference — Readable endpoint overview by service domain
- Architecture — Clean Architecture and layered model
- Domain Model — Entities and relationships