Trivy
Scraper
Mission Control integrates with Trivy to scan your Kubernetes clusters for security issues.
Scraper
Use cases:
- Scan Kubernetes resources for known vulnerabilities (CVEs)
- Detect misconfigurations in deployments, services, and other manifests
- Identify exposed secrets and sensitive data in configurations
- Track RBAC issues and excessive permissions
- Monitor license compliance across container images
Scan your Kubernetes cluster using Trivy and import the results into the catalog.
Basic Kubernetes Scan
trivy-scraper.yamlapiVersion: configs.flanksource.com/v1
kind: ScrapeConfig
metadata:
name: trivy-scan
spec:
schedule: "@every 24h"
trivy:
- version: "0.50.0"
kubernetes: {}
timeout: "20m"
Vulnerability Scanning with Severity Filter
trivy-vuln-scan.yamlapiVersion: configs.flanksource.com/v1
kind: ScrapeConfig
metadata:
name: trivy-vulnerabilities
spec:
schedule: "@every 12h"
trivy:
- version: "0.50.0"
ignoreUnfixed: true
severity:
- critical
- high
scanners:
- vuln
kubernetes: {}
timeout: "30m"
Comprehensive Security Scan
trivy-full-scan.yamlapiVersion: configs.flanksource.com/v1
kind: ScrapeConfig
metadata:
name: trivy-comprehensive
spec:
schedule: "@every 6h"
trivy:
- version: "0.50.0"
severity:
- critical
- high
- medium
scanners:
- vuln # Vulnerability scanning
- config # Misconfiguration detection
- secret # Secret detection
- rbac # RBAC analysis
- license # License compliance
kubernetes: {}
timeout: "45m"
Configuration Options
| Field | Description | Default |
|---|---|---|
version | Trivy version to install and use | Required |
ignoreUnfixed | Skip vulnerabilities without available fixes | false |
severity | Filter by severity levels (critical, high, medium, low) | All |
scanners | Scanners to enable (vuln, config, secret, rbac, license) | All |
kubernetes | Enable Kubernetes cluster scanning | Required (empty object {}) |
timeout | Maximum scan duration | 5m |
What Gets Scanned
Trivy scans your Kubernetes cluster and reports:
- Vulnerabilities: CVEs in container images with severity, fix versions, and affected packages
- Misconfigurations: Security issues in Kubernetes manifests (privileged containers, missing resource limits, etc.)
- Secrets: Exposed credentials, API keys, and sensitive data
- RBAC: Overly permissive roles and service accounts
- Licenses: Software license compliance issues