liveBook · Manning

Cosign

As explained in Effective Platform Engineering

Cosign is an open-source tool for signing and verifying container images and other software artifacts.

Cosign is an open-source tool for signing and verifying container images and other software artifacts. In a delivery pipeline, signatures provide a verification point before deployment. section 4.3.1

A practical Cosign workflow includes:

  • Generate a signing key with Cosign. section 4.3.1
  • Sign a Docker image stored in a Docker Trusted Registry-compatible image store. section 4.3.1
  • Verify the image signature before deployment, alongside trusted-registry and SBOM checks where required. section 4.3.1

Pipeline verification exercise

Create a Bash script that signs a Docker image with Cosign and validates the resulting signature. Pair that check with an admission policy restricting deployments to images from an approved organization such as ghcr.io/epetech. section 4.3.1

Figure 4.7 Steps along the way, from code creation to deployment, can automatically create the necessary provenance.
A diagram of a computer

AI-generated content may be incorrect.

Trace how pipeline steps can automatically create provenance before an executable reaches its target environment. section 4.3.1

How Effective Platform Engineering covers it

How deep it goes
Provides an implementation exercise for key generation, image signing, and signature validation, while deferring broader Sigstore and OpenSSF detail.
Examples
Uses a Bash signing script, a Docker image, a trusted image store, and a registry-restriction admission policy.
What it assumes
Assumes familiarity with Docker images, deployment pipelines, registries, and admission policies.
What you can do after
Apply Cosign to sign pipeline images and verify signatures before deployment.
How it connects
Connects container images with pipelines, trusted registries, SBOMs, admission controllers, provenance, Sigstore, and OpenSSF.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Effective Platform Engineering. The section links point to the parts of the book it draws on.