Giter VIP home page Giter VIP logo

trivy-vulnerability-exporter's Introduction

trivy-vulnerability-exporter

A Prometheus Exporter that collects all vulnerabilities detected by aquasecurity/trivy in kubernetes clusters.

Inspirated by kube-trivy-expoter.

This exporter is written on top of cobra library and trivy cli.

Grafana dashboards

Dashboard 1: Vulnerabilities overview

  • Download directly from grafana here

  • Or check the repo here

Dashboard 2: Image vulnerabilities

  • Download directly from grafana here

  • Or check the repo here

Dashboard 3: Vulnerabilities by CVE

  • Download directly from grafana here

  • Or check the repo here

Requirements

  • Kubernetes cluster
  • Install the exporter using helm to setup the RBAC
  • Prometheus
  • Grafana

Install the exporter

  • Access the helm repository here for more details abount installation process.

Add trivy vulnerability exporter repository

helm repo add helm-trivy-vulnerability-exporter https://lucasafonsokremer.github.io/helm-trivy-vulnerability-exporter

Install trivy vulnerability exporter chart

helm upgrade -i trivyvulnerabilityexporter helm-trivy-vulnerability-exporter/trivyvulnerabilityexporter

Install trivy vulnerability exporter chart with custom values

helm upgrade -i trivyvulnerabilityexporter helm-trivy-vulnerability-exporter/trivyvulnerabilityexporter -f values-custom.yaml

Image Scan

Image Scan scans for vulnerabilities in container images of workloads deployed in kubernetes.

trivy_image_vulnerabilities

Node Scan

Image Scan scans vulnerabilities of the nodes of kuberntes cluster.

trivy_node_vulnerabilities

Development Environment

  • You could upgrade trivy version on the Dockerfile:
ENV TRIVYVERSION=v0.22.0
  • After that, import the new trivy library:
go get github.com/aquasecurity/[email protected]
go mod tidy

ToDo

  • Create liveness and readiness probes
  • Support different namespace
  • Add tolerations
  • Bump golang version
  • Bump trivy version
  • Create a makefile for development environment
  • Improve the unit tests

trivy-vulnerability-exporter's People

Contributors

lucasafonsokremer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.