Skip to content

Update vulnerabilities query to be agent-specific

What does this MR do and why?

Update vulnerabilities query to be agent-specific

  • before the agent details page security tab would show all cluster image vulnerabilities now it will only show vulnerabilites found in that particular agent
  • add clusterAgentID field to filter out vulnerabilities by agent

Screenshots or screen recordings

Project Vulnerability Report Agent Vulnerability Report
Screen_Shot_2022-01-10_at_12.11.59 Screen_Shot_2022-01-10_at_12.12.15

How to set up and validate locally

  1. Ensure your GDK has a GitLab Ultimate license
  2. Ensure your GDK is connected to the GitLab Runner
  3. Follow these docs to set up the kubernetes agent
  4. Navigate to a project
  5. Link the agent to a project
  6. Enable the :cluster_vulnerabilities feature flag
  7. Navigate to the agent
  8. View the vulnerabilities

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #343912 (closed)

Edited by Alexander Turinske

Merge request reports