1.5 KiB
Security gate policy (defined before the assessed release)
Tools: Trivy (repository and image scanning, secret detection) and pip-audit
(Python dependency audit). Tool and vulnerability-database versions, scan time,
commands, reports and exit codes are recorded by security/scan.sh and archived
by Jenkins as security-reports/**.
Blocking (the pipeline fails):
- any detected secret;
- any known vulnerability reported by pip-audit for the locked dependencies;
- any HIGH or CRITICAL vulnerability in the repository or the built image that has a fix available;
- any scanner error, missing tool, or failure to obtain the vulnerability database. A failed scan is not a clean scan.
Not blocking, but recorded: HIGH or CRITICAL vulnerabilities with no fix yet
(typically operating-system packages in the base image). They are listed in the
full image report and counted in image-summary.txt on every run. The accepted
set is recorded in the manual as a time-limited exception with a review date.
Nothing is silently ignored.
Fixes: update the dependency lockfile or the pinned base-image digest, rebuild, and rescan. Dependency or base-image updates always trigger a rescan.
False positives and exceptions: a finding that has a fix but is accepted for
a stated reason goes in security/.trivyignore with an exp: date and a
comment naming the reason and the approver. Expired entries stop applying.
Test fixture: one blocked run uses a synthetic, scanner-supported fixture (never a live secret) on a branch; it is removed and the run repeated.