Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 27 additions & 22 deletions website/docs/security-assurance-case.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,28 +55,33 @@ The scope of these claims is the CLI itself. They do not extend to the security

## Trust boundaries

```
┌────────────────────────────────────────────────────────────┐
│ Developer machine │
│ │
│ ┌──────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Lockfile + │───>│ │<───│ Local │ │
│ │ package.json │ │ CVE Lite │ │ advisory DB │ │
│ └──────────────┘ │ CLI │ │ (offline) │ │
│ │ │ └─────────────┘ │
│ ┌──────────────┐ │ │ ┌─────────────┐ │
│ │ CLI args │───>│ │<───│ OSV cache │ │
│ └──────────────┘ │ │ │ (online) │ │
│ └──────┬──────┘ └─────────────┘ │
│ │ │
│ ▼ │
│ Stdout / report │
└─────────────────────────┬────────────────────────────────-─┘
│ (only outbound: hardcoded endpoints)
┌──────────────┼──────────────┐
▼ ▼ ▼
api.osv.dev storage.googleapis registry.npmjs.org
/osv-vulnerabilities
```mermaid
flowchart TB
subgraph dev["Developer machine"]
lockfile["Lockfile + package.json"]
args["CLI args"]
localdb["Local advisory DB (offline)"]
osvcache["OSV cache (online)"]
cli["CVE Lite CLI"]
output["Stdout / report"]

lockfile --> cli
args --> cli
localdb --> cli
osvcache --> cli
cli --> output
end

subgraph ext["External endpoints — outbound only, hardcoded"]
direction LR
osv["api.osv.dev"]
gcs["storage.googleapis.com/osv-vulnerabilities"]
npm["registry.npmjs.org"]
end

cli --> osv
cli --> gcs
cli --> npm
```

**Boundaries and what crosses them:**
Expand Down