advisory discover: cache NVD API query results #404
Labels
enhancement
New feature or request
needs-triage
applied to all new customer/user issues. Removed after triage occurs.
Querying NVD's API is expensive. Even in the best case, where the user has an API key, we can only make requests at ~1.7 reqs/sec. And today Wolfi has ~1400 package definitions according to
wolfictl ls
.NVD's response data for a given request (CPE) is unlikely to change frequently. We should consider caching API responses locally for some duration of time (e.g. 24 hours). This would greatly speed up the total runtime of the
wolfictl advisory discover
command.And meanwhile, even with cached data, we would still be able to:
The text was updated successfully, but these errors were encountered: