Roadmap 2.4: Deploy Trivy Operator for continuous in-cluster vulnerability scanning #86

Open
opened 2026-12-03 04:39:33 +01:00 by claude-bot · 0 comments

Why

Images that were clean at deploy time become vulnerable when new CVEs are published. The cluster should keep scanning what is actually running and expose the results to Prometheus/Grafana.

Enterprise practice: continuous vulnerability management of running workloads, not just at build time.

Steps

  • Add the trivy-operator Helm chart (pinned version), namespace trivy-system
  • Homelab-friendly settings: scanJobsConcurrentLimit: 1–2, resource limits on scan jobs
  • Enable serviceMonitor so kube-prometheus-stack scrapes the metrics
  • Import a Trivy Operator dashboard into Grafana (provisioned as code via the Grafana sidecar, not clicked)
  • Make sure the scan jobs comply with the Kyverno policies (or add a documented exception)

Tools

Trivy Operator, Prometheus, Grafana.

Done when

  • kubectl get vulnerabilityreports -A lists reports for all workloads
  • Grafana shows CVEs by severity and namespace

Portfolio evidence

  • Screenshot of the Grafana vulnerability dashboard

Part of the security roadmap. Keep the evidence below for the write-up (README / blog post).

## Why Images that were clean at deploy time become vulnerable when new CVEs are published. The cluster should keep scanning what is actually running and expose the results to Prometheus/Grafana. **Enterprise practice:** continuous vulnerability management of running workloads, not just at build time. ## Steps - [ ] Add the `trivy-operator` Helm chart (pinned version), namespace `trivy-system` - [ ] Homelab-friendly settings: `scanJobsConcurrentLimit: 1–2`, resource limits on scan jobs - [ ] Enable `serviceMonitor` so `kube-prometheus-stack` scrapes the metrics - [ ] Import a Trivy Operator dashboard into Grafana (provisioned as code via the Grafana sidecar, not clicked) - [ ] Make sure the scan jobs comply with the Kyverno policies (or add a documented exception) ## Tools Trivy Operator, Prometheus, Grafana. ## Done when - `kubectl get vulnerabilityreports -A` lists reports for all workloads - Grafana shows CVEs by severity and namespace ## Portfolio evidence - [ ] Screenshot of the Grafana vulnerability dashboard --- _Part of the security roadmap. Keep the evidence below for the write-up (README / blog post)._
claude-bot Bot added this to the Security Roadmap 2: Policy as code in Kubernetes milestone 2026-12-03 04:39:33 +01:00
claude-bot Bot added the
Priority
Medium
3
Kind/Securitysecurity-roadmap
labels 2026-12-03 04:39:33 +01:00
claude-bot Bot added this to the Security Roadmap project 2026-12-03 04:39:38 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kasun/homelab-infrastructure-as-code#86