Skip to content

Helm chart to scan all images in the Control Plane image repository with trivy and store reports in S3

License

Notifications You must be signed in to change notification settings

controlplane-com/cpln-trivy-helm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

cpln-trivy-scan

Purpose

Scan images in the org's image repository and store trivy reports in S3. The URL to the scanned image report is stored as a tag on each image, accessible from the Control Plane UI.

Prerequisites

  • An org in cpln.
  • An AWS account registered in cpln.
  • A Control Plane Service Account named "cpln-trivy-service-account" with a key called key1. Make sure to note the key's value as you will not be able to access it later from the UI.
  • Store the key you received in the above step in an opaque secret called "trivy-password".
  • Create a S3 bucket in your account and make sure the S3Region value in values.yaml corresponds to your bucket's region and S3BucketName corresponds exactly to the name of your bucket.

Installation

Make sure your cpln profile is pointing to the correct org and that you're signed in as superuser. You can achieve this by doing:

cpln profile update default --org <your org>

IMPORTANT!

Make sure the GVC name that you use is NOT an existing GVC. Use a name that is not taken by any existing GVC.

To Install:

>>> Edit the file cpln-trivy/values.yaml file to set all the values.

cpln helm install cpln-trivy

To Uninstall:

cpln helm uninstall cpln-trivy

Misc.

To clear all the tags from the images, perform the following:

cpln image query --tag cpln/trivy-scan -o json | jq ".items[].name" | xargs cpln image tag --remove cpln/trivy-scan

cpln image query --tag cpln/trivy-scan-time -o json | jq ".items[].name" | xargs cpln image tag --remove cpln/trivy-scan-time

About

Helm chart to scan all images in the Control Plane image repository with trivy and store reports in S3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages