Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

fix(seed): cast aisoc_cases id/tenant_id to UUID in mirror insert

Beenu Arora661d03369e6b
diff --git a/services/api/app/scripts/seed_demo.py b/services/api/app/scripts/seed_demo.py
index 7d485594d..4afee9986 100644
--- a/services/api/app/scripts/seed_demo.py
+++ b/services/api/app/scripts/seed_demo.py
@@ -605,10 +605,13 @@ async def _mirror_cases_to_aisoc(session, tenant: Tenant) -> int:
opened_at, resolved_at, closed_at,
created_at, updated_at, created_by, tags
) VALUES (
- :id, :tenant_id, :title, :description, :severity, :status,
- :assignee, CAST(:mitre_techniques AS JSONB), CAST(:alert_ids AS UUID[]),
+ CAST(:id AS UUID), CAST(:tenant_id AS UUID),
+ :title, :description, :severity, :status,
+ :assignee, CAST(:mitre_techniques AS JSONB),
+ CAST(:alert_ids AS UUID[]),
:opened_at, :resolved_at, :closed_at,
- :created_at, :updated_at, :created_by, CAST(:tags AS JSONB)
+ :created_at, :updated_at, :created_by,
+ CAST(:tags AS JSONB)
)
ON CONFLICT (id) DO NOTHING
"""