Commit Graph
7 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5 924554f397 feat(security): bound memory on queries, archives and concurrent scans (#258)
CI / Deploy Agent (pull_request) Skipped
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Canceled after 5m43s
The first half of #258: everything that let a request, an upload or a burst of
work grow agent memory or disk without limit. Streamed uploads follow in a
separate PR.

Queries (#62 #63 #64 #66 #67):
- `limit` and `page` are clamped while deserializing (1..=200, page <= 100k), so
  no handler can forget; `?limit=10000000` used to be honoured.
- `sort_by` is an allowlist of indexed-ish finding fields; unknown values fall
  back to `created_at` instead of sorting on arbitrary or `$`-prefixed fields.
- Search terms are escaped to literals and capped at 128 chars: `(a+)+$` was a
  catastrophic-backtracking regex sent straight to Mongo.
- CVE monitor (#62) walks one repository at a time instead of loading every SBOM
  entry of the tenant, hourly.
- Graph (#63): the full-graph endpoint returns at most 10,000 edges plus the
  nodes they touch, with `truncated`, `total_edges` and `total_nodes` so the UI
  can say "showing N of M"; nodes are paginated as documented; communities are
  grouped in Mongo with capped member lists and exact counts.
- Attack chain (#66) is capped at 2,000 nodes, with the true total.
- SBOM (#67): license summary is one aggregation; the diff loads only the three
  fields it compares; the export stays complete — a repository over 100,000
  components gets 413 rather than a silently partial SBOM.

Archives: zip extraction enforces an entry count and a total-bytes budget on
bytes actually written, not on sizes the archive declares, and removes partial
output on failure, since callers fall back to treating the file as one blob.

Scans: `SCAN_CONCURRENCY` (default 2) bounds scans and PR reviews across all
tenants, and a target is never scanned twice in parallel — a request while one
runs becomes the single pending follow-up, further ones are dropped, and only
scans that actually ran emit usage. A drop guard releases a target whose scan
panics or is cancelled, so it cannot stay "running" until the next restart.

Design choices at the two forks (graph bounding, per-target policy) were
checked against a structured second opinion; both matched the call made here.

Part of #253 · MVP-0.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-09-21 12:39:11 +02:00
sharang 06d2f458e6 feat(security): stop executing code from scanned repositories (#257) (#296)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Agent (push) Successful in 4m54s
CI / Deploy MCP (push) Successful in 2m56s
CI / Deploy Docs (push) Successful in 1m7s
CI / Deploy Dashboard (push) Successful in 3m57s
2026-09-21 10:27:59 +00:00
sharang eef3ccdf43 feat(security): refuse scans aimed at our own network (#256) (#293)
CI / Detect Changes (push) Successful in 3s
CI / Check (push) Skipped
CI / Deploy MCP (push) Successful in 3m12s
CI / Deploy Docs (push) Successful in 1m23s
CI / Deploy Agent (push) Successful in 11m3s
CI / Deploy Dashboard (push) Successful in 11m34s
2026-09-20 21:59:50 +00:00
sharang 710fdcab6f docs: rebrand Certifai → Prüfwerk (user-facing name) (#243)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Agent (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Docs (push) Successful in 1m13s
2026-09-02 08:00:12 +00:00
sharang 53bd93c96e docs: align tool inventory with what actually runs (no Grype, no ZAP/nuclei) (#233)
CI / Check (push) Canceled after 0s
CI / Detect Changes (push) Canceled after 0s
CI / Deploy Agent (push) Canceled after 0s
CI / Deploy Dashboard (push) Canceled after 0s
CI / Deploy Docs (push) Canceled after 0s
CI / Deploy MCP (push) Canceled after 0s
2026-08-31 15:58:11 +00:00
sharang 3ec1456b0d docs: rewrite user-facing documentation with screenshots (#11)
CI / Clippy (push) Successful in 4m56s
CI / Security Audit (push) Successful in 1m48s
CI / Tests (push) Successful in 5m36s
CI / Deploy MCP (push) Has been skipped
CI / Format (push) Successful in 6s
CI / Detect Changes (push) Successful in 4s
CI / Deploy Agent (push) Successful in 2s
CI / Deploy Dashboard (push) Successful in 2s
CI / Deploy Docs (push) Successful in 3s
2026-03-11 15:26:00 +00:00
sharangandSharang Parnerkar 7e12d1433a docs: added vite-press docs (#4)
CI / Clippy (push) Successful in 3m17s
CI / Security Audit (push) Successful in 1m36s
CI / Format (push) Successful in 2s
CI / Tests (push) Successful in 4m38s
Co-authored-by: Sharang Parnerkar <parnerkarsharang@gmail.com>
Reviewed-on: https://gitea.meghsakha.com/sharang/compliance-scanner-agent/pulls/4
2026-03-08 13:59:50 +00:00