-
Notifications
You must be signed in to change notification settings - Fork 605
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
feat: enable v6 database #2439
base: main
Are you sure you want to change the base?
feat: enable v6 database #2439
Conversation
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
return nil, fmt.Errorf("unable to get vulnerability store metadata: %w", err) | ||
} | ||
|
||
_, err = c.validate(db.DescriptionFromMetadata(m), c.config.ValidateChecksum) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was causing the db to be hashed twice, since the .Status()
call is also hashing the db and validating age and is required (db status is required to be passed to the presenters), I've removed the validation from this call altogether.
Signed-off-by: Keith Zantow <[email protected]>
…tion Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
}, | ||
}, | ||
{ | ||
name: "db status: valid db fails with hash mismatch", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This case handles: #1648
Signed-off-by: Keith Zantow <[email protected]>
}, | ||
}, | ||
{ | ||
name: "db status: missing db returns error", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test case handles: #2077
Signed-off-by: Keith Zantow <[email protected]>
"github.com/anchore/clio" | ||
"github.com/anchore/grype/grype/db" | ||
) | ||
|
||
// Experimental options are opt-in features that are... | ||
// ...not stable | ||
// ...not yet fully supported | ||
// ...not necessarily tested | ||
// ...not ready for production use | ||
// these may go away at any moment, do not depend on them | ||
type Experimental struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we remove this struct altogether?
This PR removes v5 database support from Grype, moving support to v6 databases. The
db/v5
package needs to remain, however, as we will continue building v5 databases with functionality from that package ingrype-db
.Closes #2129
Closes #2126
Fixes #2459
Fixes #1648
Fixes #2077
Enables previously implemented functionality:
search
output #2130legacy
package #2124