feat(security): bound memory on queries, archives and concurrent scans (#258) (#297)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m11s
CI / Deploy MCP (push) Successful in 3m52s
CI / Deploy Dashboard (push) Successful in 5m33s
CI / Deploy Agent (push) Successful in 6m57s

This commit was merged in pull request #297.
This commit is contained in:
sharang committed 2026-09-21 11:01:54 +00:00
1 parent 06d2f458e6
commit 55da128a3c
19 files changed
+893 -176

No files matched your search

+11
View File
@@ -32,6 +32,16 @@ Repositories are scanned automatically on a recurring schedule. By default, scan
When you configure a webhook in your Git hosting provider, scans are triggered automatically on push events. You can also get automated PR reviews. See [Webhooks & PR Reviews](/guide/webhooks) for setup instructions.
### When scans overlap
A deployment runs a limited number of scans at once (`SCAN_CONCURRENCY`, two by
default); further scans wait for a free slot. A target is never scanned twice in
parallel: if a scan is requested while one is already running for that target,
it is queued as a single follow-up, and any further requests while that
follow-up is waiting are dropped — the follow-up will scan the latest code
anyway. Ten pushes during one long scan therefore cost two scans, and only scans
that actually run are counted towards your plan.
## Scan Phases and Statuses
Each scan progresses through these statuses:
@@ -81,6 +91,7 @@ address is refused.
aimed at `10.x` PLCs on purpose, so it sets `PW_ALLOW_PRIVATE_TARGETS=1`. A
hardened cloud deployment ignores that variable — it shares a network with the
platform's own services.
## What the scanner runs on your code
Nearly every stage only *reads* your code: Semgrep, gitleaks, Syft, Ruff and the