CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Security Specialist

Signing and Verifying Artifacts with Cosign

A digest proves bytes did not change. A signature proves who produced them, and that is the question a checksum served from the same host can never answer. This guide installs cosign, signs an artefact, verifies it, breaks it, and is precise about where the chain still has a gap.

Supply Chain Security Guide 29 of 40 Advanced

Written against the versions above. cosign v2.4.3, pinned deliberately: v3 requires a bundle and a signing config and defaults to publishing to the public transparency log, which is not what you want for a private artefact or for a lab.

The cka6001 cluster: one control plane and 2 schedulable workers, on Cilium.
Server NameIP AddressOSRolesCPURAMHDD
CKA6001192.168.0.46Ubuntu 26.04 LTSControl Plane Node (tainted NoSchedule)2 Core4 GB50 GB
CKA6001-NODE01192.168.0.47Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA6001-NODE02192.168.0.48Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. Install the tool, and verify it first

  2. A keypair, and an artefact

  3. Sign it, and verify the signature

  4. Change one character

  5. The gap this leaves

Official sources