talira

Code signing and transparency for containers and binaries

open sourceApache-2.0self-hostablefree

Cosign is the Sigstore project's command-line tool for signing and verifying container images and other artifacts, storing the signatures in the OCI registry next to the image. By default it signs keylessly: Fulcio, Sigstore's certificate authority, issues a short-lived certificate tied to an OpenID Connect identity (Google, GitHub or Microsoft sign-in, or a CI workload's token), and the signing event is recorded in the Rekor transparency log. It also signs with its own encrypted key pairs, cloud KMS keys (AWS, Google Cloud, Azure Key Vault, HashiCorp Vault, OpenBao), Kubernetes secrets, hardware tokens or your own PKI, signs arbitrary files as blobs, and attaches and verifies in-toto attestations such as SBOMs and provenance. Sigstore is an OpenSSF project under the Linux Foundation, and its public Fulcio and Rekor services are free to use.

Ways to install

Problems it solves

  • sign our container images in CI without managing a long-lived private signing key
  • prove a container image in our registry was built by our GitHub Actions pipeline and not tampered with
  • verify an image's signature before deploying it to production
  • sign release binaries and tarballs so users can check they came from us
  • attach an SBOM and build provenance to a container image and verify them later
  • sign images with a key that lives in AWS KMS, Google Cloud KMS or Azure Key Vault
  • sign container images with a YubiKey or another hardware token
  • store image signatures in the same registry as the images instead of a separate signing server
  • check that a base image we pull from Docker Hub is really signed by its publisher
  • verify signed images in an air-gapped environment with no internet access
  • a public transparency log of every signature so a stolen identity can be spotted
  • sign in-toto attestations for SLSA provenance on our images
  • free open source alternative to Docker Content Trust for signing images
  • verify the signature of a binary someone else published, by their GitHub workflow identity
  • run our own private signing certificate authority and transparency log for internal artifacts

Features

  • keyless signing with short-lived Fulcio certificates bound to an OIDC identity
  • signing events recorded in the Rekor transparency log
  • signatures stored in the OCI registry alongside the image
  • encrypted key pairs generated by cosign, in PEM-encoded PKCS8
  • KMS keys: AWS KMS, GCP KMS, Azure Key Vault, HashiCorp Vault, OpenBao, Kubernetes secrets; OVHcloud KMS through a plugin
  • hardware token signing (PIV and PKCS11 builds)
  • bring-your-own PKI
  • sign-blob and verify-blob for arbitrary files, with Sigstore bundles
  • in-toto attestations with attest and verify-attestation
  • verification against an expected certificate identity and OIDC issuer
View 5 more
  • air-gapped verification with a downloaded trusted root
  • custom Fulcio, Rekor and timestamp authority services through a signing config
  • tested with ECR, Artifact Registry, Docker Hub, ACR, Artifactory, GitLab, GHCR, Harbor, Quay, Nexus, zot and others
  • stores Tekton bundles, WebAssembly modules and eBPF modules in OCI registries
  • GitHub Action installer (sigstore/cosign-installer)

Limitations

  • Only generates ECDSA-P256 keys with SHA-256: it can store and fetch signatures made with other algorithms, but not create them4
  • Signatures aren't deleted with the image: they're separate objects in the registry with only a weak reference, so deleting or garbage-collecting the image leaves them4
  • Keyless signing records the signer's identity, such as an email address, permanently in the public Rekor transparency log, unless you run your own Sigstore services45

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what Cosign does.

  1. Notation A CLI tool to sign and verify artifacts
  2. SignPath Software integrity and code governance: code signing with policies and verified builds
  3. packslip A signed release manifest for vendor binaries: what shipped, and how to verify it
  4. Azure Artifact Signing Microsoft's fully managed code signing service, formerly Trusted Signing

Compare Cosign with the top 3