Security

What is Trivy, and How to Deploy It in an Enterprise Data Stack?

Last updated on
May 12, 2026

What is Trivy?

Trivy is a popular open-source container vulnerability scanner that detects vulnerabilities in OS packages and application dependencies for various Linux distributions and package managers. Organizations and enterprises appreciate Trivy for its simplicity, comprehensive scanning capabilities, and ease of integration into CI/CD pipelines. Before using Trivy, teams may have struggled with less effective or more complex security scanners, but after implementation, they find it to be one of the most useful and least cumbersome tools in the space. Trivy's ability to scan running workloads, store vulnerability reports as Custom Resource Definitions (CRDs) in Kubernetes, and provide detailed results has made it a preferred choice for many DevOps professionals seeking to enhance their container security practices.

Watch Trivy in action

No items found.

Why is Trivy better on Shakudo?

While it's an excellent tool on its own, deploying and managing Trivy within your organization can be complex and time-consuming. That's where Shakudo comes in.

Our platform seamlessly integrates Trivy, allowing you to leverage its robust scanning capabilities without the hassle of manual setup and maintenance. By using Trivy on Shakudo, you get the best of both worlds: the flexibility and transparency of open-source software combined with the ease of use and reliability of a managed platform. Unlike proprietary solutions that may lock you into their ecosystem, Shakudo gives you full control over your data and infrastructure while automating the deployment, updates, and integration of Trivy into your workflows. This means you can focus on addressing vulnerabilities rather than managing the tool itself, ultimately leading to improved security posture and efficiency for your organization.

Why is better on Shakudo?

Core Shakudo Features

Own Your AI

Keep data sovereign, protect IP, and avoid vendor lock-in with infra-agnostic deployments.

Faster Time-to-Value

Pre-built templates and automated DevOps accelerate time-to-value.
integrate

Flexible with Experts

Operating system and dedicated support ensure seamless adoption of the latest and greatest tools.
See Shakudo in Action
Neal Gilmore
Get Started >

Getting Started & Usage

This page walks through the first practical workflow after Trivy Server is live. The goal is to help a customer team run useful scans quickly without needing deep Trivy internals.

Basic Workflow

Step 1 — Set the Server Address

TRIVY_SERVER="http://trivy.<namespace>.svc.cluster.local:4954"

If you are testing locally through port-forward, replace the value with http://127.0.0.1:4954.

Step 2 — Run Your First Image Scan

trivy image           --server "$TRIVY_SERVER"           --severity HIGH,CRITICAL           ghcr.io/<org>/<image>:<tag>

Start with a narrow severity filter so teams focus on the most actionable issues first.

How to Read the Result

Step 3 — Scan a Local Repository or Filesystem

trivy fs           --server "$TRIVY_SERVER"           --scanners vuln,secret,misconfig           --severity HIGH,CRITICAL           .

Step 4 — Review Deployment Manifests Before Release

trivy config ./helm ./k8s

Use trivy config for Kubernetes YAML, Helm templates, and Terraform-style files. This is a local/client-side workflow, not a server-side one.

Step 5 — Add Trivy to CI/CD

trivy image           --server "$TRIVY_SERVER"           --severity HIGH,CRITICAL           --exit-code 1           ghcr.io/<org>/<image>:<git-sha>

A common rollout pattern is to fail the pipeline only on HIGH or CRITICAL findings, then review lower-severity findings separately.

Simple Real-World Example

A team builds ghcr.io/acme/inference-service:1.4.2 and scans it before rollout. Trivy reports several HIGH issues in the base image and one CRITICAL package with a fixed version available. The team updates the base image, rebuilds, rescans, and promotes the new image only after the blocking issues are removed.

Adoption Tips

Shakudo SaaS-first quick start

This section is for customers using Trivy as a managed component inside Shakudo. Start from the Shakudo platform instead of installing or exposing Trivy manually.

1. Access the component in Shakudo

2. Open the component UI

3. Complete a first safe use case

Open the Trivy service or job interface exposed in Shakudo and run a first scan against an approved image, repository, or artifact. Review the vulnerability summary before acting on findings.

4. Monitor and validate the result

5. Next steps