Consumers
A consumer is a program that parses the Dracon compatible outputs and pushes them into arbitrary destinations. The Dracon compatible outputs from from producers and enrichers.
Consumers can be written in any language that supports protobufs. We currently have examples in Golang and Python. They are all structured in the same way:
- Parse program arguments:
in
: the dracon compatible outputs location.raw
: whether or not to use enriched results.
- Parse all dracon compatible output files the
in
location. - Do arbitrary logic with issues.
- Create a Tekton Task
task.yaml
with.metadata.labels["v1.dracon.ocurity.com/component"] = consumer
.
Consumer API
For convenience, there are helper functions in the ./consumers
pkg/module for
Golang/Python.
See the godoc for more information.