dotnet / dotnet/docker-tools

Validate Notary v2 signatures of upstream base images during build

Open
#2,083 1 comment 0 reactions 0 assignees View on GitHub
area-infrastructure
Dominant language
C#
Stars
181
Forks
67
Avg merge
2d 15h
Merged PRs (30d)
10

Description

Currently, ImageBuilder pulls external base images during the build without verifying their signatures:

https://github.com/dotnet/docker-tools/blob/9b94edafb9caedd3967fd5efe88a5ca270430353/src/ImageBuilder/Commands/BuildCommand.cs#L638-L666

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.