IMVEEDev Portal

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

MetricValue
Services57 (across 22 domains)
Endpoints310 (REST API)
Permissions97 (RBAC)
Schemas50 (request/response)
Meta-YAML~7,300 lines
Consistency99.7 %
Tests117 (97.4 % pass)

Meta Files

All files are located under orchestrator/meta/:

FileLinesDescription
endpoints.yaml2,787All API endpoints with auth, rate limit, permissions
frontend.yaml860Frontend target: 58 routes, 29 components, hooks
installation-wizard.yaml6066-phase installation wizard (13 UI screens)
kubernetes.yaml595K8s deployment, 16 init jobs, 4 namespaces
schema.yaml55250 request/response schemas
database.yaml533PostgreSQL schema, 30+ tables
one-click-deployment.yaml515Deployment modes & resource profiles
services.yaml45557 backend services with domain assignment
integrations.yaml29119 third-party connectors
threat-intel.yaml179CTI: IOCs, feeds, MITRE ATT&CK v15.1
permissions.yaml16597 RBAC permissions (registry)
infrastructure.yaml97OpenSearch, PostgreSQL, Redis, Keycloak
invariants.yaml45System-wide invariants (CRITICAL/ERROR)
contracts.yaml25API contract rules

Domains & Services

The 57 services are distributed across 22 domains:

DomainServicesExample functions
authBFF Auth, Session ManagementOAuth2 PKCE, session management
userUser Service, User ProfileCRUD, self-service profile
siemAlert ServiceSecurity alerts, status updates
casesCase, Task, Timeline, Communication, Evidence, Post-IncidentIncident response, forensics, lessons learned
vulnmgmtVulnerability, Workflow, Patch ManagementCVE enrichment, CVSS/EPSS, patches
secbaseAsset, Person, ApplicationIT assets, contacts, applications
detectionDetection Rule ServiceSIGMA rules, OpenSearch sync
automationPlaybook, Workflow, Action Catalog, ScheduleSOAR, drag-and-drop designer, cron jobs
orbitAgent Lifecycle, Management, Enrollment, EDR, FIM, Device ControlSatellite agents, zero-touch provisioning
ctiIOC, Feed, Threat Actor, MITRE ATT&CKThreat intelligence, STIX 2.1
monitoringMonitoring ServiceHealth, container logs, metrics
auditAudit ServiceAppend-only audit logs (7 years)
settingsSettings ServiceAPI tokens, connectors, security policy
terminalTerminal ServiceRemote terminal to agents
ubaUser Behavior AnalyticsBaselines, anomalies, risk scores
huntingThreat HuntingCampaigns, queries, execution
complianceCompliance & GRCFrameworks, controls, evidence, reports
collaborationComments, NotificationsTeam communication
ticketingTicket ServiceInternal ticketing, SLA tracking
aiAI AssistantAlert analysis, reports, action suggestions
reportingDashboards & KPIsDashboard builder, KPI views
integrationsConnector Manager19 connectors (Wazuh, Velociraptor, etc.)

Invariants

System-wide rules that must never be violated. CRITICAL = immediate abort.

IDRuleSeverity
no-hallucinated-routesNo routes not declared in endpoints.yamlCRITICAL
auth-is-never-optionalEvery endpoint needs an explicit auth fieldCRITICAL
no-undeclared-side-effectsNo code with unspecified DB ops, API calls or file writesCRITICAL
no-hardcoded-secretsNo passwords, tokens or secrets as literalsCRITICAL
no-dev-only-endpoints-in-prodenv: dev-only endpoints never in productionCRITICAL
no-direct-db-in-handlersHandler → only via repository layerERROR
error-handling-requiredEvery handler must explicitly handle errorsERROR
mfa-required-for-privileged-rolessuperadmin and admin require MFA in productionERROR
rate-limits-must-be-distributedRate limiting must be Redis-backed (not per-pod)ERROR
no-audit-log-bypassWrite operations (POST/PUT/PATCH/DELETE) require audit log entryERROR

Contracts

Communication contracts — how endpoints must be structured:

ContractRule
public-endpoints-require-rate-limitauth: none → rateLimit field mandatory (Redis-backed, format: N/min or N/s)
session-endpoints-require-auth-middlewareauth: session → AuthRequired middleware mandatory
no-undeclared-endpointsNo code endpoint without entry in endpoints.yaml
permission-required-for-sensitive-domainsDomains siem, cases, user → permission field mandatory
permission-registry-checkEvery 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:

DomainPermissions (excerpt)
Userusers.view, users.manage, users.self, profile.self
SIEMsiem.alerts.view, siem.alerts.manage
Casescases.view, cases.create, cases.edit, cases.delete, cases.timeline.*, cases.evidence.*
Vulnerabilityvulnmgmt.vulnerabilities.view, vulnmgmt.patches.deploy
Automationautomation.playbooks.view, automation.playbooks.execute, automation.workflows.*
Orbit (Agents)orbit.missions.*, orbit.agents.*, agents.enrollment.*
CTIcti.iocs.*, cti.feeds.*, cti.threat-actors.*, cti.mitre-attack.view
Huntinghunting.campaigns.*, hunting.queries.*, hunting.execute
Compliancecompliance.frameworks.view, compliance.controls.*, compliance.reports.*
AIai.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:

ArtefactFormatDescription
openapi.yamlOpenAPI 3.0Full API specification (426 KB)
openapi.jsonJSONJSON variant (643 KB)
postman.jsonPostman v2.1Importable collection (303 KB)
endpoints/*.mdMarkdown22 domain-specific docs
schemas/*.mdMarkdown50 schema documentations

Orchestrator Features

Validation

The Orchestrator automatically checks:

  1. Meta validation — Referential integrity of all YAML files
  2. Code analysis — Extracts endpoints from Go code, compares with target state
  3. Contract checks — SAT/UNSAT solver for contract verification
  4. 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

On this page