Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
Exempt the graph-UI server from the raw-network-call audit
Martin Vogel4fa71d9235b0
diff --git a/scripts/security-audit.sh b/scripts/security-audit.shindex b23cd0db2..f46d512f2 100755--- a/scripts/security-audit.sh+++ b/scripts/security-audit.sh@@ -59,16 +59,21 @@ while IFS= read -r file; dodone < <(find "$ROOT/src" -name '*.c' -type f | sort)# ── 1b. Raw network calls (must not exist) ──────────────────────+#+# The graph-UI HTTP server (src/ui/httpd.c) is the one component that owns a+# listening socket. It is first-party, binds 127.0.0.1 only, and is audited+# separately by scripts/security-ui.sh (binding + CORS checks), so it is+# exempt from this scan. No other source file may make raw network calls.echo ""echo "--- Scanning for raw network calls (must not exist) ---"NETWORK_FUNCS='[^a-z_]connect\(|[^a-z_]socket\(|[^a-z_]sendto\('-if grep -rn -E "$NETWORK_FUNCS" "$ROOT/src/" --include='*.c' 2>/dev/null | grep -v '^\s*//' | grep -v '^\s*\*' | grep -v 'test'; then+if grep -rn -E "$NETWORK_FUNCS" "$ROOT/src/" --include='*.c' 2>/dev/null | grep -v '^\s*//' | grep -v '^\s*\*' | grep -v 'test' | grep -v 'src/ui/httpd.c'; thenecho "BLOCKED: Raw network calls found in src/."failelse- echo "OK: No raw network calls found."+ echo "OK: No raw network calls outside the graph-UI server."fi# ── 2. Hardcoded URLs in string literals ─────────────────────────