Skip to content

Add a cacheable task that has the NVD database as output #514

Description

@Vampire

Updating the NVD API is a slow task, especially if there are many updates.

Currently it does not even work properly most often, as the backend server does not answer the Cloudflare proxy in time which then results in 524 error responses for the API download calls.

One of our build agents was able to successfully download the updates, but the others still don't have the current data and thus fail analysis as update fails with server-side error.

It would be nice if there were a cacheable task that cares about getting the updated NVD data with the "last updated timestamp" as input and the NVD database files as output.

That way not only all build agents can reuse these cached results as soon as one build agent did the update successfully, but also local builds can reuse the result if a remote build cache is in use.
This can then even reuse the NVD database without having an NVD API key available, having the current data fast from the cache instead of querying it from the NVD API.

This would solve problems with slow NVD downloads, missing API keys, and currently even the server-side errors preventing the analysis to run properly.

Maybe it even needs to be multiple tasks, so that on a cache miss you don't need to download the complete database but can update it. Not sure how to best solve it, but thought I give a food for thought here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions