-
Notifications
You must be signed in to change notification settings - Fork 143
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
Added NVD CPE details #114
base: main
Are you sure you want to change the base?
Conversation
pkg/types/types.go
Outdated
@@ -95,6 +95,7 @@ type VulnerabilityDetail struct { | |||
Description string `json:",omitempty"` | |||
PublishedDate *time.Time `json:",omitempty"` | |||
LastModifiedDate *time.Time `json:",omitempty"` | |||
CPEDetails string `json:",omitempty"` |
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.
We should have a struct for CPEDetails, not string.
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.
noted, I thought we want to optimize the storage here, so I tried storing as JSON string
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.
In any cases, we marshal VulnerabilityDetail to JSON in BoltDB, so the disk size would be almost the same. If we store CPEDetails
as string, we need to unmarshal twice.
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.
Ok, pushing the change
Issue