The CVE scanner (compliance-agent/src/pipeline/cve.rs) calls api.osv.dev (querybatch, vulns/{id}) and NVD with the plain agent HTTP client. Other outbound calls (since #468 also the nuget.org license lookup) go through guarded_net::guarded_client_builder with NetGuard::check_url per request.
Tasks
Build the CVE scanner's client from guarded_client_builder; check_url before each request
Per-request and connect timeouts, body size cap (as in sbom/nuget_license.rs)
Same for any other outbound call still on the plain client (audit reqwest::Client construction in compliance-agent)
Document the egress list in docs/reference/tools.md in one place
Test: a redirect or URL to a private/internal address is refused
The CVE scanner (`compliance-agent/src/pipeline/cve.rs`) calls api.osv.dev (querybatch, vulns/{id}) and NVD with the plain agent HTTP client. Other outbound calls (since #468 also the nuget.org license lookup) go through `guarded_net::guarded_client_builder` with `NetGuard::check_url` per request.
## Tasks
- Build the CVE scanner's client from `guarded_client_builder`; `check_url` before each request
- Per-request and connect timeouts, body size cap (as in `sbom/nuget_license.rs`)
- Same for any other outbound call still on the plain client (audit `reqwest::Client` construction in compliance-agent)
- Document the egress list in `docs/reference/tools.md` in one place
- Test: a redirect or URL to a private/internal address is refused
_Found while reviewing #468._
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The CVE scanner (
compliance-agent/src/pipeline/cve.rs) calls api.osv.dev (querybatch, vulns/{id}) and NVD with the plain agent HTTP client. Other outbound calls (since #468 also the nuget.org license lookup) go throughguarded_net::guarded_client_builderwithNetGuard::check_urlper request.Tasks
guarded_client_builder;check_urlbefore each requestsbom/nuget_license.rs)reqwest::Clientconstruction in compliance-agent)docs/reference/tools.mdin one placeFound while reviewing #468.