-
Notifications
You must be signed in to change notification settings - Fork 202
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
Report only those fixed versions that are greater than the affected version #1228
Comments
good idea |
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
…ge matching #1228 Reference: #1228 Note that my updated code is still in testing/dev stage and has not yet been completed or cleaned. Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
My push is still a work-in-progress and retains many print statements for ongoing exploration of the data and functions. The terminal displays some relevant high-level data about the affected package, the vulns and the fixing packages. Working on the We also have the very beginnings of a function All of this is conveyed to the Jinja2 template ( I'm using some red and green colors in the Package details template to highlight the test data and have included a short explanation in the template for the time being. These 4 example searches (all pkg:maven/net.minidev/[email protected] |
Here are some suggestion for your consideration:
In general I feel avoiding the visual repetition of the purl everywhere when only the version changed would simplify the display. Also what happens when:
|
I think this is something we need to decide and apply across all projects and docs uniformly. @adaaaam @DennisClark @mjherzog ... what's your take?
|
i thought we previously agreed on Package-URL or PURL... we need to pick one and be consistent going forward. |
I agree with Adam on this one: although, I am open to strong arguments in favor of purl for the short-form. |
+1 for PURL and Package-URL; "purl" gets lost anytime you see it in a sentence. This is not like Package vs package where the core term is generic out in the world |
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
I've just committed and pushed my latest code to the open PR (#1249), with more work to do, starting with trying to replace my helper functions and related code with built-in All 7 checks passed, but I see an alert of a conflict in
That looks fine and I suppose I could just OK it using the GH editor, then do a pull from my branch to update the local version. BUT: what is this and where did it come from? I did not add it, and I see no record in the issue or the PR of some outside addition -- or maybe I'm missing that? 🤔 |
… tests #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Just committed and pushed my latest. More to do including merging |
Reference: #1228 Signed-off-by: John M. Horan [email protected]
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
@pombredanne I just did another push of my latest, this time addressing your UI comments from last week:
|
@johnmhoran Thanks!
Here for 9.3.0:
And for 10.4.1:
The idea is to treat the "major" version ranges (e.g., 9 and 10) almost as if they were different packages. |
… tests #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
…ated tests #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
…ng tests #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
…1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
…#1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
Reference: #1228 Signed-off-by: John M. Horan [email protected]
Reference: #1228 Signed-off-by: John M. Horan <[email protected]>
* Add initial fixed-affected-matching work #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Add Prefetch and univers-based version comparison #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Update affected-fixed package matching #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Improve matching and reporting code and UI #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Add univers version, revise sort and related code, update and add new tests #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Move weakness test #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Modify UI, update dictionary and tests #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Begin replacing strings with objects in package details dictionary #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Clean current package details template and related model code #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Begin work on major-version issue #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Complete first round of major-version vetting #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Remove major-version code, clean comments etc. #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Begin test refactoring #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Finish package details code and template, refactor/create package-related tests #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Refactor package details-related code #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Update Package details UI and Package API #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Fix 1 of 4 failing API tests #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Add initial fixed-affected-matching work #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Explore context and Package class approaches for affected-fixed package matching #1228 Reference: #1228 Note that my updated code is still in testing/dev stage and has not yet been completed or cleaned. Signed-off-by: John M. Horan <[email protected]> * Add Prefetch and univers-based version comparison #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Update affected-fixed package matching #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Improve matching and reporting code and UI #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Add univers version, revise sort and related code, update and add new tests #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Begin work on major-version issue #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Complete first round of major-version vetting #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Remove major-version code, clean comments etc. #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Begin test refactoring #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Finish package details code and template, refactor/create package-related tests #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Commit the initial refactoring changes from last week #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Refactor package details-related code #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Update Package details UI and Package API #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Save test experiments including commented-out variations #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Fix 1 of 4 failing API tests #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Update API including "lesser" fixed by versions, fix and update failing tests #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Update APITestCasePackage() class #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Test lack of "vulnerability" property #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Update get_affected_vulnerabilities() and test #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Update MinimalPackageSerializer() and missing-vulnerability-key test #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Append inside the if condition #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Update get_vulnerability() method #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Enable test_models.py and fix failing tests #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Update per PR comments #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Convert Package method to PackageQuerySet method, clean code and tests #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> * Fix failing tests Signed-off-by: Tushar Goel <[email protected]> * Add property on functions in models Signed-off-by: Tushar Goel <[email protected]> * Add and fix tests, address other comments #1228 Reference: #1228 Signed-off-by: John M. Horan <[email protected]> --------- Signed-off-by: John M. Horan <[email protected]> Signed-off-by: John M. Horan [email protected] Signed-off-by: Tushar Goel <[email protected]> Co-authored-by: Tushar Goel <[email protected]>
@johnmhoran thanks! done in #1249 |
The VulnerableCode UI and API currently report a full set of all fixed versions of a package that are related directly or indirectly to a particular affected version, including fixed versions whose version number is less than the affected version number. This seems potentially confusing to users and inaccurately identifies package versions that a user should consider to address an identified vulnerability.
It would be more useful (and accurate) if the VulnerableCode UI and API reported only those fixed versions that are greater than the particular affected version at issue. I've attached a
.xlsx
file containing examples of fixed-version mismatches.See also
examples-of-affected-vs-fixed-version-mismatches-v0.01.xlsx
The text was updated successfully, but these errors were encountered: