|
1 | 1 | # Network Behavior and Privacy |
2 | 2 |
|
3 | | -CVE Lite CLI is a local-first dependency vulnerability scanner for JavaScript and TypeScript projects. This document explains what it does locally, when it makes external calls, and how support for stricter environments is planned. |
| 3 | +CVE Lite CLI is a local-first dependency vulnerability scanner for JavaScript and TypeScript projects. This document explains what it does locally, when it makes external calls, and how it supports stricter environments today. |
4 | 4 |
|
5 | 5 | ## Overview |
6 | 6 |
|
@@ -56,38 +56,45 @@ Some teams, especially in enterprise, regulated, or restricted CI environments, |
56 | 56 |
|
57 | 57 | This document exists to make that behavior explicit and reviewable. |
58 | 58 |
|
59 | | -## Planned support for stricter environments |
| 59 | +## Support for stricter environments |
60 | 60 |
|
61 | | -CVE Lite CLI is being extended to better support environments with stricter network controls. |
62 | | - |
63 | | -Planned capabilities include: |
| 61 | +CVE Lite CLI already supports multiple patterns for teams with stricter network controls. |
64 | 62 |
|
65 | 63 | ### Offline mode |
66 | 64 |
|
67 | | -A future offline mode is intended to allow scans with zero outbound network calls, using only locally available advisory data or cache content. |
| 65 | +Offline scans can run with zero outbound advisory API calls by using a local advisory database. |
| 66 | + |
| 67 | +Example workflow: |
| 68 | + |
| 69 | + cve-lite advisories sync |
| 70 | + cve-lite . --offline |
68 | 71 |
|
69 | | -Example target workflow: |
| 72 | +Or with an explicit DB path: |
70 | 73 |
|
71 | | - cve-lite scan --offline |
| 74 | + cve-lite advisories sync --output /path/to/advisories.db |
| 75 | + cve-lite . --offline-db /path/to/advisories.db |
72 | 76 |
|
73 | 77 | ### Custom advisory endpoint support |
74 | 78 |
|
75 | | -A future custom endpoint option is intended to allow organizations to route advisory lookups through an internal proxy or mirrored service. |
| 79 | +Organizations can route standard online advisory lookups through an internal proxy or mirrored service with `--osv-url`. |
76 | 80 |
|
77 | | -Example target workflow: |
| 81 | +Example workflow: |
78 | 82 |
|
79 | | - cve-lite scan --osv-url https://security.company.internal/osv |
| 83 | + cve-lite . --osv-url https://security.company.internal/osv |
80 | 84 |
|
81 | | -### Local advisory database input |
| 85 | +### Advisory DB freshness |
82 | 86 |
|
83 | | -A future local advisory database option is intended to support controlled environments where advisory data is supplied from an approved internal source. |
| 87 | +Offline scans report advisory DB freshness and warn when the local DB appears stale or is missing sync metadata. |
84 | 88 |
|
85 | | -Example target workflow: |
| 89 | +This makes the tradeoff explicit: |
86 | 90 |
|
87 | | - cve-lite scan --advisory-db ./internal-advisories.json |
| 91 | +- offline scans avoid runtime advisory API calls |
| 92 | +- advisory data is only as current as the last successful sync |
88 | 93 |
|
89 | | -## Roadmap note |
| 94 | +### Operational model |
90 | 95 |
|
91 | | -These stricter execution modes are planned so teams can adopt CVE Lite CLI even when direct outbound access to public services is limited or disallowed. |
| 96 | +For many teams, the recommended model is: |
92 | 97 |
|
93 | | -The goal is to preserve the same local-first developer experience while giving security-conscious organizations clearer deployment options. |
| 98 | +- sync advisory data on a schedule from a connected environment |
| 99 | +- distribute the local advisory DB where needed |
| 100 | +- run offline scans in controlled developer, CI, or restricted-network environments |
0 commit comments