Repository navigation
Open
Labels
Description
Currently, ImageBuilder pulls external base images during the build without verifying their signatures:
docker-tools/src/ImageBuilder/Commands/BuildCommand.cs
Lines 638 to 666 in 9b94eda
| { | |
| _logger.LogInformation("No external base images to pull"); | |
| return; | |
| } | |
| HashSet<string> pulledTags = []; | |
| HashSet<string> externalFromImages = []; | |
| foreach (PlatformInfo platform in Manifest.GetFilteredPlatforms()) | |
| { | |
| IEnumerable<string> platformExternalFromImages = platform.ExternalFromImages.Distinct(); | |
| externalFromImages.UnionWith(platformExternalFromImages); | |
| IEnumerable<string> tagsToPull = | |
| platformExternalFromImages.Select(_imageNameResolver.Value.GetFromImagePullTag); | |
| foreach (string pullTag in tagsToPull) | |
| { | |
| if (pulledTags.Add(pullTag)) | |
| { | |
| // Pull the image, specifying its platform to ensure we get the necessary image in the case of | |
| // a multi-arch tag. | |
| _dockerService.PullImage(pullTag, platform.PlatformLabel, Options.IsDryRun); | |
| } | |
| } | |
| } | |
| if (pulledTags.Count <= 0) | |
| { | |
| _logger.LogInformation("No external base images to pull"); | |
| return; |
We should add a signature verification step after pulling base images, using notation verify to validate that each image was signed before it is used in a build. Not all upstream images have Notary v2 signatures, so verification should be opt-in and enabled wherever signatures are available.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsCurrent Release
Activity
lbussell commentedon Apr 20, 2026
[Triage] Related to #2081, #2082