Prizma
ShippingStatic analysis you can prove: one commit, one rule set, one answer.
What it does
A scanner that reports “no findings” when it never really ran is worse than no scanner at all. Prizma is built the other way around: every answer carries its own provenance — the commit that was scanned, the rule set that was used, and whether the run actually finished.
- Accepts a scan for a repository at a full commit id, runs the engine as a separate sandboxed process against the given rule set, and returns the findings.
- Records the identity of the rules in three fields —
rulesSource,rulesRefas the caller declares it andrulesDigestas computed here — so which rule set produced a finding is never a matter of memory. - Never reports a failed scan as a clean one:
coverage.completegoes false and a reason names what happened —TIMEOUT,REPO_TOO_LARGE,ENGINE_CRASH,SECRET_UNRESOLVEDand the rest. - Separates two boundaries: the tenant is the resource and fairness boundary, the project is the access boundary. A key's scope and a per-project repository allowlist both have to agree before a repository is cloned.
- Returns the existing scan instead of starting a second one when the same input digest or the same
Idempotency-Keyarrives again —202means fresh work,200means a row that already existed.
How it works
- 01
Admit
The key, the project, the repository allowlist and the commit id are checked. A branch name or a shortened sha is refused before anything is queued.
- 02
Queue
The scan is ordered by tenant quota and priority — interactive work ahead of batch.
- 03
Scan
A worker fetches that one commit, writes the rule set to an ephemeral disk and runs the engine under cgroup limits. The worker is not an HTTP client, so there is no outbound path to open.
- 04
Return
Findings and the coverage of the run are stored, and the caller is told over its registered callback host, signed with that tenant's secret.
What it does not do
- It does not write the rules. The rule set arrives from a repository at a sha, or inline in the request — never both, and never fetched from a URL of its own accord.
- It does not decide what a finding means. It returns findings; Tessera turns them into a decision.
- It does not run tests — that is Probix's job — and it does not review pull requests, which is Tessera's.
- It does not accept a branch name or a shortened commit id: a scan has to name an exact revision, or the result would be tied to an uncertain one.
At a glance
| Form | Service — one image, three roles: api, worker, callback |
|---|---|
| Engine | Semgrep, as a subprocess under cgroup limits |
| Isolation | Tenant for quota, project for access — key scope plus repository allowlist |
| Store | PostgreSQL, its own schema |
| Deployment | On-prem; the admin API stays closed unless a key is configured |
Talk to us
Tell us which environment you have to defend, or which delivery chain you have to prove. We answer with specifics.