Code Monkey home page Code Monkey logo

Comments (3)

zhill avatar zhill commented on May 21, 2024 1

the version object, under the 'rich' member, it will populate a new cpeVersions array regardless of the package type that any package can be matched against CPEs if needed. I'm going to open a draft pr shortly with the updates so you can see

from grype.

zhill avatar zhill commented on May 21, 2024

I've been working on this a bit and think it warrants some discussion:

CPE matches require the vendor and product name as well as version to determine a match. That information is not present in the version itself per the current implemented structure so I think there are few options:
a. Add additional context to the Version struct itself to carry package name and other metadata necessary for guessing the vendor field. This would be ignored by other version constraint checks.
b. Generate package CPEs when populating the version fields for them (this would be the fuzzy part that is predictive). I've started work on this approach as it seems cleaner in the model as currently implemented.

Feedback appreciated.

from grype.

wagoodman avatar wagoodman commented on May 21, 2024

B seems semantically better and keep stricter concerns than A (that is, in option A we would be adding metadata to the version object that is not of a concern for versions, but really downstream users of the object). Are we saying to add these generated CPEs onto the package object? or somewhere else?

from grype.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.