Skip to content

Vulnerability Scanning

Enterprise

This feature requires an Enterprise license.

Vulnerability scanning integrates Trivy to scan container images for known CVEs and security issues. Scan results are displayed with severity levels so you can identify and remediate vulnerabilities before they reach production.

Prerequisites

Trivy must be installed on the backend host or be accessible via PATH. Install Trivy using your preferred method:

bash
# Debian/Ubuntu
sudo apt-get install trivy

# macOS
brew install trivy

# Docker (alternative — ensure the backend container can invoke it)
docker pull aquasec/trivy

Configuration

Vulnerability scanning is configured via environment variables on the backend service:

VariableDefaultDescription
TRIVY_PATHtrivyPath to the Trivy binary
TRIVY_TIMEOUT300Scan timeout in seconds

Example in docker-compose.yml:

yaml
backend:
  environment:
    TRIVY_PATH: /usr/local/bin/trivy
    TRIVY_TIMEOUT: 600

Usage

  1. Navigate to Security (/security) from the sidebar.
  2. Select an environment and container image to scan.
  3. Click Scan to start the vulnerability analysis.
  4. Results are displayed in a table grouped by severity:
SeverityMeaning
CriticalExploitable vulnerabilities that should be fixed immediately
HighSerious vulnerabilities that need attention
MediumModerate risk — plan for remediation
LowMinor issues with limited impact

Each result includes the CVE ID, package name, installed version, fixed version (if available), and a description.

TIP

Schedule regular scans for production images. Trivy updates its vulnerability database automatically, so new CVEs are detected on subsequent scans.

API Endpoints

MethodEndpointDescription
POST/api/security/scanTrigger a scan for a given image
GET/api/security/resultsList scan results
GET/api/security/results/:idGet details for a specific scan

Frontend Route

RouteDescription
/securitySecurity scanning dashboard and results viewer

Released under the MIT License.