Skip to content
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

Configure and use DB distribution URLs #2126

Open
wagoodman opened this issue Sep 17, 2024 · 0 comments
Open

Configure and use DB distribution URLs #2126

wagoodman opened this issue Sep 17, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@wagoodman
Copy link
Contributor

Based on #2125 :

  • distribution configuration should point to the base URL, excluding the DB schema version and filenames. We want default configuration as well as user configuration to not need to change when bumping the schema versions.
  • we should point by default to the new latest.json path (in grype.anchore.io, not toolbox-data.anchore.io)
  • we should enable grype db list to reference both the latest.json and history.json files hosted without the user needing to know/configure them (these filenames should not be overridable for now out of simplicity)

Today we have this configuration (with defaults):

db:
  update-url: 'https://toolbox-data.anchore.io/grype/databases/listing.json'

I propose this changes to:

db:
  update-url: 'https://grype.anchore.io/databases'

Where the DB curator (distribution side) object is responsible for:

  • using the correct schema version
  • looking for the schema appropriate files (latest.json and history.json) when needed
@wagoodman wagoodman added the enhancement New feature or request label Sep 17, 2024
@wagoodman wagoodman added this to the DB v6 milestone Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Ready
Development

No branches or pull requests

1 participant