Skip to content

[Feature Request]: support signing container images with cosign #269

@developer-guy

Description

@developer-guy

Abstract

Cosign is a tool that supports container Signing, Verification, and Storage in an OCI registry. Cosign is created and maintained by the Sigstore community. Cosign aims to make signatures invisible infrastructure.

Motivation

To secure software supply chain is a very hot topic these days, and signing&verifying container images are the most important part of this IMHO. We have several options to use while signing&verifying container images but cosign is the most stable and popular in this area. So, if we bring this functionality to the Docker Buildx tool, we can sign container images right after we built because there's a slight time window in which it could have tampered.

Design

Again IMHO, the perfect fit with cosign and Docker Buildx is the bake command, and we thought that we can add another section for getting the details of signing such as private key, password, etc like the following:

target "sign" {
  privateKey = "./cosign.key"
  password = "$COSIGN_PASSWORD"
}

References

cc: @Dentrax @erkanzileli

Metadata

Metadata

Assignees

Labels

buildImprovements to developers build experience with DockercliImprovements to the Docker CLI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions