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: two dead declarations CodeQL flagged on main (#1126)

Beenu Arora641f1b0f029c
diff --git a/apps/web/src/components/soc-insights/SOCInsightsView.tsx b/apps/web/src/components/soc-insights/SOCInsightsView.tsx
index 2b40fbd88..745d08884 100644
--- a/apps/web/src/components/soc-insights/SOCInsightsView.tsx
+++ b/apps/web/src/components/soc-insights/SOCInsightsView.tsx
@@ -8,7 +8,7 @@
*/
'use client';
-import { useEffect, useMemo, useState } from 'react';
+import { useEffect, useMemo } from 'react';
import { useTimeWindow } from '@/components/layout/TimeWindowProvider';
import useSWR from 'swr';
diff --git a/services/api/app/api/v1/endpoints/connectors.py b/services/api/app/api/v1/endpoints/connectors.py
index 3acb5500b..6bac08c6b 100644
--- a/services/api/app/api/v1/endpoints/connectors.py
+++ b/services/api/app/api/v1/endpoints/connectors.py
@@ -321,12 +321,6 @@ def _connectors_service_url(path: str) -> str:
return f"{base}/api/v1{suffix}"
-# Header the connectors service reads to learn which tenant a trusted service
-# is acting for. Must match ``TENANT_HEADER`` in
-# services/connectors/app/security/tenant_scope.py.
-_TENANT_HEADER = "X-AiSOC-Tenant-ID"
-
-
def _service_token() -> str:
"""The shared secret this service presents to the connectors service."""
return connectors_auth.service_token()