Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    [ProGet] Understanding Assessments

    Scheduled Pinned Locked Moved Support
    6 Posts 2 Posters 13 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      caterina
      last edited by

      Hi all,

      I noticed that auto-assessed vulnerabilities are not stored in the Assessments table of ProGet.
      Further it also shows them as (unassessed) when i want to override the assessment:
      1a841ab3-a493-487b-aecc-412a98163e31-image.jpeg
      Only if I manually assess them they are stored in the database.
      Is this intended behavior? Just wanted to check in if that affects the compliance analyzer or if anything is still working as planed.

      Thanks
      Caterina

      1 Reply Last reply Reply Quote 0
      • stevedennisS Offline
        stevedennis inedo-engineer
        last edited by

        Hi @caterina ,

        The dotted border indicates what we call a provisional assessment; we don't have a great description for what that means, but that's what you'll see when a package is not local or cached in ProGet.

        Without getting into too many technical details, that's the expected behavior (i.e. not in the database, not on the SCA > Vulnerabilities page). Once the Vulnerability Download job (or Admin > Vuln Types > Reassess) runs, it should become a normal assessment (i.e. show in the database, etc).

        In any case, whether an assessment is provisional or not shouldn't have any impact on compliance analysis. The most notable impact is that it won't show up on the SCA > Vulnerabilities page until another job identifies the package as being "in" ProGet.

        Thanks,
        Steve

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          caterina @stevedennis
          last edited by

          Hi @stevedennis,

          so the package is coming from a connector but it has been retrieved via ProGet and is used in projects. I can also see it if I search for "Local and Cached" packages.
          Is that enough to be seen as "in" ProGet? Or what is the exact definition of being "in" ProGet? Maybe I have a different understanding of that.

          Because I ran the job again via Admin -> Vuln Types -> Reassess and it is still dotted.

          Thanks
          Caterina

          stevedennisS 1 Reply Last reply Reply Quote 0
          • stevedennisS Offline
            stevedennis inedo-engineer @caterina
            last edited by

            Hi @caterina,

            It's quite complicated and there are a lot of technical details that I'm not immediately familiar with. To properly answer, I'd need to set up a reproduction case and then attach a debugger to give you a more technically precise answer on why it's displaying that way.

            We may even need to do a whole database backup, since it might be specific to your configuration. I really don't know how much of an investigation it would require.

            We added the dotted line as primarily a way for us to identify the system state when there are issues reported. Previous version of ProGet also had provisional assessments, but it was never visually indicated.

            Anyway, if you're seeing any problems jut let us know -- this shouldn't have any impact outside of the dotted-line display on some pages.

            Thanks,
            Steve

            C 1 Reply Last reply Reply Quote 0
            • C Offline
              caterina @stevedennis
              last edited by

              Hi @stevedennis,

              no need to do such a deep dive 😄
              I was just curious about the new data structure and I noticed that the "old" table "PgvdAssessments" contained all assessments, also the auto-assessed ones. And the table "PgvdAssessments26" is empty.
              I just wanted to make sure that this is somehow intended and does not cause any further issues.
              As long as we still get all vulnerabilities for a project everything is ok 👍
              I will let you know if we encounter any problems.

              Thanks
              Caterina

              stevedennisS 1 Reply Last reply Reply Quote 0
              • stevedennisS Offline
                stevedennis inedo-engineer @caterina
                last edited by

                Thanks @caterina!

                Just to give you some more technical context, which you probably already figured out...

                The "old" vulnerability model worked by downloading a datafile from security.inedo.com, unpacking it, and inserting rows in the PgvdVulnerabilities and PgvdPackageNames tables. Those tables contained every vulnerability in our database and it was a bit tricky to know which of those vulnerabilities related to package versions "in" ProGet. The PgvdAssessments table helped somewhat.

                The "new" model works by downloading an indexed database file. The "Assess Vulnerabilities" function (which rurns on that download job as well) will iterate over all vulnerabilities in that database and adds/removes rows to the PgvdVulnerabilities26 tables as needed (including PgvdPackageVersions), which makes it much easier to know if a vulnerability impacts a version "in" ProGet by looking at the database.

                There are most certainly edge cases and glitches in this, so don't hesitate to let us know if you spot any odd behavior.

                Thanks,
                Steve

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 1 / 1
                • First post
                  Last post
                Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation