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.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
fix(web): customer-journey bugs — ledger routing, demo copy, /signup 404
Beenu Arora960382ed06ad
diff --git a/apps/web/next.config.js b/apps/web/next.config.jsindex 1e04397af..5417660ad 100644--- a/apps/web/next.config.js+++ b/apps/web/next.config.js@@ -84,9 +84,20 @@ const nextConfig = {source: '/api/v1/realtime/healthz',destination: `${REALTIME_HOST}/healthz`,},- // Agents service owns contextual actions, playbooks, investigations,- // hunt search, and copilot chat. These must come before the- // `/api/v1/:path*` catch-all so they don't get sent to the core API.+ // Agents service owns contextual actions, playbooks, hunt search,+ // and copilot chat. These must come before the `/api/v1/:path*`+ // catch-all so they don't get sent to the core API.+ //+ // NOTE: `/api/v1/investigations*` is intentionally NOT routed here.+ // The agents service only exposes the *write* side (POST to start a+ // run, GET /{run_id} for the in-memory orchestrator state). The+ // browser-facing *read* side — list runs, replay events, explain+ // step, fetch artifacts, cost aggregates — is owned by the core API+ // (see services/api/app/api/v1/endpoints/investigations.py, backed+ // by the persistent ledger in Postgres). Routing those reads to+ // agents returns 405/404 and breaks the case workspace ledger pane.+ // We let `/api/v1/investigations*` fall through to the core API+ // catch-all at the bottom of this list.{source: '/api/v1/contextual/:path*',destination: `${AGENTS_HOST}/api/v1/contextual/:path*`,@@ -99,14 +110,6 @@ const nextConfig = {source: '/api/v1/playbooks',destination: `${AGENTS_HOST}/api/v1/playbooks`,},- {- source: '/api/v1/investigations/:path*',- destination: `${AGENTS_HOST}/api/v1/investigations/:path*`,- },- {- source: '/api/v1/investigations',- destination: `${AGENTS_HOST}/api/v1/investigations`,- },// Hunt search + saved searches (singular /hunt, distinct from /hunts corpus){source: '/api/v1/hunt/:path*',diff --git a/apps/web/src/app/sitemap.ts b/apps/web/src/app/sitemap.tsindex d3fe3d198..29a96c2db 100644--- a/apps/web/src/app/sitemap.ts+++ b/apps/web/src/app/sitemap.ts@@ -17,7 +17,10 @@ export default function sitemap(): MetadataRoute.Sitemap {"/copilot","/graph",];- const lowPriority = ["/login", "/signup", "/detection", "/threat-intel", "/sla"];+ // Note: AiSOC is open source and self-hosted — there is no `/signup` route.+ // Anonymous demo lands directly via `/` and the in-app demo button. The+ // hosted login at `/login` is the only auth entry point we ship.+ const lowPriority = ["/login", "/detection", "/threat-intel", "/sla"];return [...highPriority.map((path) => ({diff --git a/apps/web/src/components/cases/CaseWorkspace.test.tsx b/apps/web/src/components/cases/CaseWorkspace.test.tsxindex 7cca1e7c8..69b63bbf5 100644--- a/apps/web/src/components/cases/CaseWorkspace.test.tsx+++ b/apps/web/src/components/cases/CaseWorkspace.test.tsx@@ -122,6 +122,6 @@ describe('CaseWorkspace', () => {).toBeInTheDocument();// …and the demo-mode banner is visible so the analyst knows it's not live data.- expect(screen.getByText(/demo data — backend offline/i)).toBeInTheDocument();+ expect(screen.getByText(/demo data — writes disabled/i)).toBeInTheDocument();});});diff --git a/apps/web/src/components/cases/CaseWorkspace.tsx b/apps/web/src/components/cases/CaseWorkspace.tsxindex 9e2f96b29..dca8372fb 100644--- a/apps/web/src/components/cases/CaseWorkspace.tsx+++ b/apps/web/src/components/cases/CaseWorkspace.tsx@@ -485,7 +485,7 @@ export function CaseWorkspace({ caseId }: { caseId: string }) {await casesApi.update(caseRecord.id, { status });toast.success(`Status set to ${STATUS_LABEL[status]}`);} catch {- toast(`Demo: status set to ${STATUS_LABEL[status]} locally (backend offline)`);+ toast(`Demo: status set to ${STATUS_LABEL[status]} locally (writes disabled)`);} finally {setStatusUpdating(false);}@@ -511,7 +511,7 @@ export function CaseWorkspace({ caseId }: { caseId: string }) {await casesApi.addComment(caseRecord.id, trimmed);toast.success('Comment added');} catch {- toast('Saved locally (backend offline)');+ toast('Saved locally (writes disabled in demo)');}};@@ -533,7 +533,7 @@ export function CaseWorkspace({ caseId }: { caseId: string }) {await casesApi.addTask(caseRecord.id, optimistic);toast.success('Task added');} catch {- toast('Saved locally (backend offline)');+ toast('Saved locally (writes disabled in demo)');}};@@ -609,7 +609,7 @@ export function CaseWorkspace({ caseId }: { caseId: string }) {{demoMode && (<span className="inline-flex items-center gap-1.5 rounded-full bg-amber-500/10 px-2 py-0.5 text-[11px] text-amber-300 ring-1 ring-amber-500/30"><span className="h-1.5 w-1.5 rounded-full bg-amber-400" />- Demo data — backend offline+ Demo data — writes disabled</span>)}</div>diff --git a/apps/web/src/components/hunt/HuntView.tsx b/apps/web/src/components/hunt/HuntView.tsxindex 1c1456767..f084955ec 100644--- a/apps/web/src/components/hunt/HuntView.tsx+++ b/apps/web/src/components/hunt/HuntView.tsx@@ -461,7 +461,7 @@ export function HuntView() {void savedState.mutate();} catch (err) {console.error(err);- toast.error('Could not save (backend offline)');+ toast.error('Could not save search');}};@@ -473,7 +473,7 @@ export function HuntView() {toast.success('Deleted');void savedState.mutate();} catch {- toast.error('Could not delete (backend offline)');+ toast.error('Could not delete saved search');}};