Documentation
¶
Overview ¶
Package explain says what each finding means to someone who is not reading code, and what to do about it. Every view of a scan uses the same words, so a finding reads the same everywhere. Only words: what is a finding is decided by the rules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyLabel ¶
KeyLabel is the label of the stack stack:<tool>:<name>, with the tool added when another tool's stack has the same name: "chart (helm)".
func SharedNames ¶
SharedNames are the stack names that stacks of more than one tool use (a helm and a kubernetes stack both called chart): only the tool tells them apart.
func StackLabels ¶
StackLabels gives each stack of a scan a label a reader can place, by the stack's name. Display only: the stack's name stays in fact keys, stored scans and drift; only the words on screen and in the report change. In order:
- the name declared in .cernly.yml (stacks.<name>.name);
- the stack's own name, unless compose made it up (default, default-2);
- the folder of its first compose file (docker/development);
- the workflow that starts it (started by deploy.yml);
- its first compose file (docker-compose.yml).
Two stacks that would read the same get their compose file instead, and still the same, their name added. Deterministic: scan and map only.
Types ¶
type Level ¶
type Level string
Level orders findings for a reader: act first, then confirm, then info.