You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today the v1-5 schemas have a fan-out-fan-in approach, where we fan out to build and upload the DB and fan in to update the listing file (since each DB schema is combined into a single listing).
With the changes proposed in anchore/grype#2125 , there will be a different listing file (latest.json), a new history.json file, and there is one schema per fileset. This means we no loner need to fan in for v6+ 🎉
However, grype-db/grype-db-manager is still responsible for assembling db v1-5 listing files -- we need the new and old paradigms to live side-by-side.
Grype DB changes
still output metadata.json and provider-metadata.json for v1-5 use cases (affects build step)
OLDESTDATADATE: RFC3338 formatted value of the oldest .compiled date found for all contained providers
BUILTEPOCH: linux epoch formatted value of the .database.built field
output metadata filevulnerability-db_VERSION_OLDESTDATADATE_BUILTEPOCH.json, which is the basis of the latest.json file downstream in the manager (same variable meanings as a the archive)
Grype DB Manager changes
when schema v6 is indicated:
use the relative URLs as provided directly by grype-db, no need to recreate the latest.json file
still smoke test validate the given latest.json with new assumptions (schema is in hosted path, use given latest file, etc)
when uploading the DB tar archive, also upload:
grype-db_VERSION_OLDESTDATADATE_BUILTEPOCH.json
when uploading the listing
the user indicates a remote grype-db_VERSION_OLDESTDATADATE_BUILTEPOCH.json name...
we check for the existence of the JSON file, the archive tar, and verify the JSON file checksum matches that of the archive
copy the grype-db_VERSION_OLDESTDATADATE_BUILTEPOCH.json as the new latest.json and upload
operationally we should start segmenting schema DBs into separate paths in S3 (...databases/v6/vulnerability-....tar.gz vs databases/vulnerability-....tar.gz). V1-5 should still be placed in "databases/vulnerability-....tar.gz"
the history.json file should be built based on : the last history.json file and the current s3 state, pruning beyond 90 days. Instead of using the tar files as state indications, use the newly uploaded json files.
The text was updated successfully, but these errors were encountered:
Today the v1-5 schemas have a fan-out-fan-in approach, where we fan out to build and upload the DB and fan in to update the listing file (since each DB schema is combined into a single listing).
With the changes proposed in anchore/grype#2125 , there will be a different listing file (latest.json), a new history.json file, and there is one schema per fileset. This means we no loner need to fan in for v6+ 🎉
However, grype-db/grype-db-manager is still responsible for assembling db v1-5 listing files -- we need the new and old paradigms to live side-by-side.
Grype DB changes
build
step)build
: output onlymetadata.json
and DBpackage
:vulnerability-db_VERSION_OLDESTDATADATE_BUILTEPOCH.tar.gz
vulnerability-db_VERSION_OLDESTDATADATE_BUILTEPOCH.json
, which is the basis of the latest.json file downstream in the manager (same variable meanings as a the archive)Grype DB Manager changes
latest.json
with new assumptions (schema is in hosted path, use given latest file, etc)grype-db_VERSION_OLDESTDATADATE_BUILTEPOCH.json
grype-db_VERSION_OLDESTDATADATE_BUILTEPOCH.json
name...grype-db_VERSION_OLDESTDATADATE_BUILTEPOCH.json
as the newlatest.json
and uploadhistory.json
file should be built based on : the last history.json file and the current s3 state, pruning beyond 90 days. Instead of using the tar files as state indications, use the newly uploaded json files.The text was updated successfully, but these errors were encountered: