Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add local cache mode for scanner #1574

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/docs/vulnerability-scanning/trivy.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Vulnerability Scanning Configuration

## LocalCache

LocalCache mode is almost the same as Standalone mode. It is useful for a completely isolated environment. Users must rebuild their custom Trivy image to include the latest Vulunerbility database

The differences are:
- It uses customer build Trivy image with the latest Vulunerbility database
- The init container will copy the Vulnerability database to scan runners

## Standalone

The default configuration settings enable Trivy `vulnerabilityReports.scanner` in [`Standalone`][trivy-standalone]
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugins/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (r *Resolver) WithObjectResolver(objectResolver *kube.ObjectResolver) *Reso

// GetVulnerabilityPlugin is a factory method that instantiates the vulnerabilityreport.Plugin.
//
// Trivy-Operator currently supports Trivy scanner in Standalone and ClientServer
// Trivy-Operator currently supports Trivy scanner in LocalCache, Standalone and ClientServer
// mode.
//
// You could add your own scanner by implementing the vulnerabilityreport.Plugin interface.
Expand Down
Loading
Loading