8000 feat: add field to ignore-provider-date for long term broken providers by spiffcs · Pull Request #579 · anchore/grype-db · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: add field to ignore-provider-date for long term broken providers #579

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

spiffcs
Copy link
Contributor
@spiffcs spiffcs commented May 22, 2025

Description

This PR adds a new field to the grype-db config: build.ignore-provider-date

This field will be used when calculating the earliest timestamp when building the db.

grype-db will ignore user specified providers that may have been broken for extended periods of time. This allows the earliest date to be calculated for a more recent provider. This calculation would update the db date to be in compliance with checks like max-allowed-built-age when running https://github.com/anchore/grype.

Discussion

It looks like we have some overlap with v5/v6 on calculating this.

I added a placeholder in the v6 Archiver for where the config should be injected given this change.

I've marked this as draft for a team sync later today at standup to see what people think about decoupling this behavior since the code paths where this call exists are a little different.

spiffcs added 2 commits May 22, 2025 09:45
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
spiffcs added 2 commits May 22, 2025 10:38
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0