/
DirectorySecurity AdvisoriesPricing
Sign in
Directory
kyverno-policy-reporter-plugin-trivy logo

kyverno-policy-reporter-plugin-trivy

Last changed

Request a free trial

Contact our team to test out this image for free. Please also indicate any other images you would like to evaluate.

Tags
Overview
Comparison
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Chainguard Container for kyverno-policy-reporter-plugin-trivy

Chainguard Containers are regularly-updated, secure-by-default container images.

Download this Container Image

For those with access, this container image is available on cgr.dev:

docker pull cgr.dev/ORGANIZATION/kyverno-policy-reporter-plugin-trivy:latest

Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.

Compatibility Notes

Chainguard's kyverno-policy-reporter-plugin-trivy image is compatible with the upstream Trivy Policy Reporter plugin. It provides vulnerability scanning and security reporting capabilities integrated with Policy Reporter.

Prerequisites

  • Kubernetes cluster
  • Kyverno installed and running
  • Trivy Operator for vulnerability scanning
  • Policy Reporter with UI enabled

Getting Started

Installing with Helm

First, install Kyverno if not already installed:

helm repo add kyverno https://kyverno.github.io/kyverno/
helm repo update
kubectl create namespace kyverno
helm install kyverno kyverno/kyverno --namespace kyverno

Next, install the Trivy Operator for vulnerability scanning:

helm repo add aqua https://aquasecurity.github.io/helm-charts
helm repo update
helm install trivy-operator aqua/trivy-operator \
  --namespace trivy-system \
  --create-namespace

Install the Trivy Operator Policy Reporter Adapter to convert VulnerabilityReports to PolicyReports:

helm repo add fjogeleit https://fjogeleit.github.io/trivy-operator-polr-adapter
helm repo update
helm install trivy-operator-polr-adapter fjogeleit/trivy-operator-polr-adapter \
  --namespace trivy-system

Then, install Policy Reporter with the Trivy plugin enabled:

helm repo add policy-reporter https://kyverno.github.io/policy-reporter
helm repo update

helm install policy-reporter policy-reporter/policy-reporter \
  --namespace kyverno \
  --set ui.enabled=true \
  --set plugin.trivy.enabled=true \
  --set plugin.trivy.image.registry=cgr.dev \
  --set plugin.trivy.image.repository=ORGANIZATION/kyverno-policy-reporter-plugin-trivy \
  --set plugin.trivy.image.tag=latest

Verifying the Installation

Check that all components are running:

kubectl get pods -n kyverno
kubectl get pods -n trivy-system

You should see pods for:

  • Kyverno namespace: Kyverno controllers (admission, background, cleanup, reports), Policy Reporter, Policy Reporter Trivy Plugin
  • Trivy-system namespace: Trivy Operator, Trivy Operator Policy Reporter Adapter

Testing the Plugin

The Trivy plugin processes vulnerability data from the Trivy Operator and sends it to Policy Reporter. To test the complete workflow:

# Create a test pod for Trivy Operator to scan
kubectl run nginx-test --image=nginx:1.24 --namespace=default

# Wait for the pod to be ready and Trivy to scan it
kubectl wait --for=condition=ready pod nginx-test --namespace=default --timeout=60s

# Wait for Trivy Operator to scan and adapter to create PolicyReport
# This may take a few minutes for vulnerability database download and scanning
timeout 300 bash -c 'until kubectl get policyreport trivy-vuln-polr-pod-nginx-test --namespace=default >/dev/null 2>&1; do sleep 10; done' || \
  echo "PolicyReport not created yet, continuing anyway..."

# Port-forward to the Policy Reporter UI
kubectl port-forward -n kyverno svc/policy-reporter-ui 8080:8080 &

# Check for Trivy vulnerability results
curl -s "http://127.0.0.1:8080/proxy/default/core/v1/namespaced-resources/results?sources=trivy&categories=Vulnerability+Scan&namespaces=default&page=1&offset=10"

# Check for pod-specific vulnerability data
curl -s "http://127.0.0.1:8080/proxy/default/core/v2/namespace-scoped/resource-results?kinds=Pod&namespaces=default&search&page=1" | \
  jq '.items[] | select(.name=="nginx-test")'

You should see vulnerability reports for the nginx:1.24 image. The plugin automatically:

  1. Monitors VulnerabilityReports created by Trivy Operator
  2. Processes vulnerability data from scanned container images
  3. Forwards enriched vulnerability information to Policy Reporter
  4. Provides data through Policy Reporter's API and UI

Configuration

The plugin supports various configuration options through the Policy Reporter Helm chart values. Key configuration options include:

  • Image configuration: Set custom registry, repository, and tag
  • Resource limits: Configure CPU and memory limits
  • Service configuration: Customize service ports and types
  • Security settings: Configure security contexts and policies

Documentation and Resources

  • Policy Reporter Documentation
  • Trivy Documentation
  • Trivy Operator Documentation
  • Policy Reporter Helm Chart
  • Trivy Operator Helm Chart

What are Chainguard Containers?

Chainguard's free tier of Starter container images are built with Wolfi, our minimal Linux undistro.

All other Chainguard Containers are built with Chainguard OS, Chainguard's minimal Linux operating system designed to produce container images that meet the requirements of a more secure software supply chain.

The main features of Chainguard Containers include:

For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a development, or -dev, variant.

In all other cases, including Chainguard Containers tagged as :latest or with a specific version number, the container images include only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager.

Although the -dev container image variants have similar security features as their more minimal versions, they include additional software that is typically not necessary in production environments. We recommend using multi-stage builds to copy artifacts from the -dev variant into a more minimal production image.

Need additional packages?

To improve security, Chainguard Containers include only essential dependencies. Need more packages? Chainguard customers can use Custom Assembly to add packages, either through the Console, chainctl, or API.

To use Custom Assembly in the Chainguard Console: navigate to the image you'd like to customize in your Organization's list of images, and click on the Customize image button at the top of the page.

Learn More

Refer to our Chainguard Containers documentation on Chainguard Academy. Chainguard also offers VMs and Librariescontact us for access.

Trademarks

This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.

Licenses

Chainguard container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:

  • Apache-2.0

  • LGPL-2.1-or-later

  • MIT

  • MPL-2.0

For a complete list of licenses, please refer to this Image's SBOM.

Software license agreement

Category
application

Safe Source for Open Source™
Contact us
© 2025 Chainguard. All Rights Reserved.
Private PolicyTerms of Use

Product

Chainguard ContainersChainguard LibrariesChainguard VMsIntegrationsPricing