scout: base image policy

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2023-09-29 16:20:28 +02:00
parent 392ce76849
commit 1931cfbc8f
1 changed files with 26 additions and 0 deletions

View File

@ -61,6 +61,7 @@ Docker Scout ships the following three out-of-the-box policies:
- [Critical and high vulnerabilities with fixes](#critical-and-high-vulnerabilities-with-fixes) - [Critical and high vulnerabilities with fixes](#critical-and-high-vulnerabilities-with-fixes)
- [Critical vulnerabilities](#critical-vulnerabilities) - [Critical vulnerabilities](#critical-vulnerabilities)
- [Packages with AGPLv3, GPLv3 licenses](#packages-with-agplv3-gplv3-licenses) - [Packages with AGPLv3, GPLv3 licenses](#packages-with-agplv3-gplv3-licenses)
- [Base images not up-to-date](#base-images-not-up-to-date)
These policies are turned on by default for Scout-enabled repositories. There's These policies are turned on by default for Scout-enabled repositories. There's
currently no way to turn off or configure these policies. currently no way to turn off or configure these policies.
@ -99,3 +100,28 @@ use in your software because of the restrictions they enforce.
This policy is unfulfilled if your artifacts contain one or more packages with This policy is unfulfilled if your artifacts contain one or more packages with
a violating license. a violating license.
### Base images not up-to-date
This policy requires that the base images you use are up-to-date.
It's unfulfilled when the tag you used to build your image points to a
different digest than what you're using. If there's a mismatch in digests, that
means the base image you're using is out of date.
#### No base image data
There are cases when it's not possible to determine whether or not the base
image is up-to-date. In such cases, the **Base images not up-to-date** policy
gets flagged as having **No data**.
This occurs when:
- Docker Scout doesn't know what base image tag you used
- The base image version you used has multiple tags, but not all tags are out
of date
To make sure that Docker Scout always knows about your base image, you can
attach [provenance attestations](../../build/attestations/slsa-provenance.md)
at build-time. Docker Scout uses provenance attestations to find out the base
image version.