Dagweave catalog

Verify a container image signature

cosign-verifyv1.0.0updated 2026-10-181 version

Check that a container image carries a valid cosign signature from your public key, and fail the step if it does not. Use it before deploying an image you did not just build.

Install v1.0.0

Installs the template into your Argo namespace. The URL is pinned to this version.

kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/cosign-verify/1.0.0/template.yaml

Or with the Argo CLI:

argo template create -n argo https://catalog.dagweave.com/api/v1/items/cosign-verify/1.0.0/template.yaml

Facts

Category
CI/CD
Tags
ci-cd cosign
Entrypoint
verify
Template SHA-256
6a13e2b86b98f3236f21d2b15dc5bcddbf012af50d770fae9ee4db671be1e3a5
Source
cosign-verify at catalog commit 67458f7
API
item document, latest template.yaml

Images and provenance

Every image is pinned by digest, so a rebuilt tag can never change what this version runs.

RepositoryTagDigest
cgr.dev/chainguard/cosignlatestsha256:35b607c4eba6e914b3b8b80f5f8a63ce2eccd48617717d5edd572dd62f0cdf66

Parameters

NameDescriptionDefault
image required Image to check, by digest or tag.
Example registry.example.com/team/app@sha256:0123...
none
docker-config-secret-key Key in that Secret that holds the config.json. .dockerconfigjson
docker-config-secret-name Name of the Kubernetes Secret that holds a Docker config.json for the registry. docker-config
public-key-key Key in that Secret that holds the public key. cosign.pub
public-key-secret-name Name of the Kubernetes Secret that holds the cosign public key. cosign-public-key

WorkflowTemplate

Download template.yaml

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: cosign-verify
  labels:
    dagweave.io/catalog-item: cosign-verify
  annotations:
    dagweave.io/catalog-version: "1.0.0"
    dagweave.io/catalog-category: "CI/CD"
spec:
  entrypoint: verify
  volumes:
    - name: docker-config
      secret:
        secretName: "{{inputs.parameters.docker-config-secret-name}}"
        optional: true
        items:
          - key: "{{inputs.parameters.docker-config-secret-key}}"
            path: config.json
  templates:
    - name: verify
      inputs:
        parameters:
          - name: image
          - name: public-key-secret-name
            default: "cosign-public-key"
          - name: public-key-key
            default: "cosign.pub"
          - name: docker-config-secret-name
            default: "docker-config"
          - name: docker-config-secret-key
            default: ".dockerconfigjson"
      retryStrategy:
        limit: "2"
        retryPolicy: OnError
        backoff:
          duration: 10s
          factor: "2"
          maxDuration: 2m
      container:
        # cgr.dev/chainguard/cosign:latest
        image: cgr.dev/chainguard/cosign@sha256:35b607c4eba6e914b3b8b80f5f8a63ce2eccd48617717d5edd572dd62f0cdf66
        command: [cosign]
        args:
          - verify
          - --key
          - env://COSIGN_PUBLIC_KEY
          - "{{inputs.parameters.image}}"
        env:
          - name: COSIGN_PUBLIC_KEY
            valueFrom:
              secretKeyRef:
                name: "{{inputs.parameters.public-key-secret-name}}"
                key: "{{inputs.parameters.public-key-key}}"
          - name: DOCKER_CONFIG
            value: /docker-config
        resources:
          requests:
            cpu: 50m
            memory: 64Mi
          limits:
            memory: 256Mi
        volumeMounts:
          - name: docker-config
            mountPath: /docker-config
            readOnly: true

Version history

Read from the item's changelog. Each version has its own JSON document; the pinned catalogue vendors the manifest of the latest one, so that is the version that installs.

  1. 1.0.0 latest 2026-10-18

    Initial release.

    kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/cosign-verify/1.0.0/template.yaml
    argo template create -n argo https://catalog.dagweave.com/api/v1/items/cosign-verify/1.0.0/template.yaml

    version document, template.yaml

Run it once

After installing, from the command line.

argo submit -n argo --from workflowtemplate/cosign-verify \
  -p image=registry.example.com/team/app@sha256:0123...

Workflow that references it

A Workflow with the required parameters filled from the examples.

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: cosign-verify-
spec:
  workflowTemplateRef:
    name: cosign-verify
  arguments:
    parameters:
      - name: image
        value: "registry.example.com/team/app@sha256:0123..."

As a step of a larger workflow

steps:
  - - name: cosign-verify
      templateRef:
        name: cosign-verify
        template: verify