collector-image-scanner

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

README

collector-image-scanner

test

Scans container images and send vulnerability results to Rode. Currently, Trivy scans are supported.

Local Development

  1. Start a Trivy server with trivy server
  2. With Rode running, start the collector with go run:
    go run main.go \
        --rode-insecure-disable-transport-security \
        --rode-host=localhost:50051 \
        --debug
    
  3. Use the API to request a scan:
      curl http://localhost:1233/v1alpha1/scan \
         -d '{"imageUri": "curlimages/curl@sha256:6e0a786e3e5181df00eaf3a0a1749c18a6bb20b01c9bd192ea72176ce8a1c94b"}' 
    
  4. After making changes, run the unit tests with make test
  5. Use make license to add license headers to source code files

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
proto
v1alpha1
Package v1alpha1 is a reverse proxy.
Package v1alpha1 is a reverse proxy.
scannerfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
trivy/trivyfakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL