devtron icon indicating copy to clipboard operation
devtron copied to clipboard

Bug: Vulnerability Scan Execution Result in Build History in security tab gets modified for all the previous builds

Open tayalrishabh96 opened this issue 2 years ago • 0 comments

📜 Description

Vulnerability Scan Execution Result in Build History in security tab gets modified for all the previous builds. If older build had 100 Critical vulnerabilities and latest build has 5 vulnerabilities then devtron modifies the older image scan execution result and we would see just 5 vulnerabilities in older build as well.

Criticality

P1 - High

Impact on Enterprise

  • Devtron is changing the source of truth with respect to Vulnerability Scan Execution Result.
  • Devs / DevOps will not be able to evaluate how many vulnerabilities actually got fixed.

👟 Steps to replicate the Issue

  1. Build an image with some OS level vulnerabilities (Make sure to enable the scanning). Note the timestamp of the image scan.
  2. Enable vulnerability scanning plugin in post CI and build the image again. Again Note the timestamp of the image scan.
  3. Check back the image scanning timestamp for older build again, it will get modified with the new one.
  4. This means we are modifying Vulnerability Scan Execution Result

👍 Expected behavior

Vulnerability Scan Execution Result should not be modified.

👎 Actual Behavior

Vulnerability Scan Execution Result get modified to latest scan.

☸ Kubernetes version

NA

Cloud provider

NA

🌍 Browser

Chrome

🧱 Your Environment

NA

✅ Proposed Solution

NA

👀 Have you spent some time to check if this issue has been raised before?

  • [X] I checked and didn't find any similar issue

🏢 Have you read the Code of Conduct?

AB#7749

tayalrishabh96 avatar Dec 28 '23 11:12 tayalrishabh96