-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No new DB published since 21-11-2024 #2282
Comments
Hi @tomersein - thanks for the issue. Yes, it looks like there were some failures in the github actions that publish the database. We'll get on that. https://github.com/anchore/grype-db/actions?query=is%3Afailure |
hi thanks! |
Yeah, we do get alerts, but like many places on the planet, it was the weekend :) |
@tomersein wanted to clarify the current state of things. We are building a new DB nightly with the latest data for all providers excluding NVD: their API does not appear to be functioning at the moment:
Today we mark the DB age based on the data in the DB, not when it was built. But something that is not obvious is that we use that same date (the data pull timestamp) in the DB archive and the
Note the suffixes are epoch formatted timestamps:
The notable thing is that the data sync has been failing https://github.com/anchore/grype-db/actions/workflows/daily-data-sync.yaml : ![]() This is the job that feeds the DB build job, persisting the latest vulnerability data as OCI images So we've been building a DB with all of the latest available vulnerability data, but the metadata we're providing could be a lot more clear here (again, will be adjusted in v6 soon). All that being said, we do have monitoring and alerts for these failures and we've been monitoring the failures since last week but took no action since upstream provider API outages tend restore within a day or two. However, we will be taking operational action today since the NVD API has been down long enough, the DB age is old enough where we'll soon be tripping the eldest allowable data age for the DB (thus automatically failing builds). We'll rebuild todays DB with different metadata shortly -- stay tuned. |
Thanks for the detailed walkthrough! I have a few lingering questions, and sorry in advance if I'm not grasping the obvious...
Since there are multiple data providers, how does the age of each provider's data factor into the final Like for this case specifically, are you saying that the
This makes sense, and I'm excited for v6. The metadata here also impacts whether Grype clients will update their local data, is that right? As in, when Grype goes to do a DB update, it won't grab new data currently (and hasn't since Nov 22). |
I'll answer the questions a couple different ways: For v5 (today)
We read through all vunnel provider workspaces to get basic information like when the data was compiled by vunnel, provider name, vunnel results expected digest, etc. This looks something like this:
In grype DB we loop through all of these metadata files, gathering the timestamp from each. The DB timestamp is the eldest from the whole collection of timestamps for all providers. Answer: there is no other provider information in the DB
correct 👍 For v6 We will have a providers table with the following information:
There will not be a metadata.json with this information, it will require either a grype command or sqlite query. edit: hit enter too early :) |
What happened:
hello! i've just noticed no new db was released since 21-11-2024
is it the expected behave?
What you expected to happen:
new db each day \ 2 days
How to reproduce it (as minimally and precisely as possible):
you can check it by running
grype db list
and see the last releasesAnything else we need to know?:
Environment:
grype version
: 0.85.0cat /etc/os-release
or similar): macThe text was updated successfully, but these errors were encountered: