{
  "name": "cosign-sign",
  "title": "Sign a container image",
  "description": "Sign a container image in its registry with a cosign key pair, so that anyone with the public key can check it came from you. The private key and its password come from a Kubernetes Secret.",
  "category": "CI/CD",
  "tags": [
    "ci-cd",
    "cosign"
  ],
  "latestVersion": "1.0.0",
  "versions": [
    "1.0.0"
  ],
  "parameters": [
    "image",
    "docker-config-secret-key",
    "docker-config-secret-name",
    "key-secret-name",
    "password-key",
    "private-key-key"
  ],
  "images": [
    "cgr.dev/chainguard/cosign@sha256:35b607c4eba6e914b3b8b80f5f8a63ce2eccd48617717d5edd572dd62f0cdf66"
  ],
  "url": "https://catalog.dagweave.com/api/v1/items/cosign-sign.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/cosign-sign/latest/template.yaml",
  "page": "https://catalog.dagweave.com/items/cosign-sign/",
  "entrypoint": "sign",
  "parameterDetails": [
    {
      "name": "image",
      "title": "Image",
      "description": "Image to sign, by digest so the signature covers exactly the bytes you built.",
      "type": "string",
      "required": true,
      "example": "registry.example.com/team/app@sha256:0123..."
    },
    {
      "name": "docker-config-secret-key",
      "title": "Docker config secret key",
      "description": "Key in that Secret that holds the config.json.",
      "type": "string",
      "required": false,
      "default": ".dockerconfigjson"
    },
    {
      "name": "docker-config-secret-name",
      "title": "Docker config secret name",
      "description": "Name of the Kubernetes Secret that holds a Docker config.json for the registry.",
      "type": "string",
      "required": false,
      "default": "docker-config"
    },
    {
      "name": "key-secret-name",
      "title": "Key secret name",
      "description": "Name of the Kubernetes Secret that holds the cosign private key and its password.",
      "type": "string",
      "required": false,
      "default": "cosign-key"
    },
    {
      "name": "password-key",
      "title": "Password key",
      "description": "Key in that Secret that holds the key's password. Leave the key out of the Secret if the key has no password.",
      "type": "string",
      "required": false,
      "default": "cosign.password"
    },
    {
      "name": "private-key-key",
      "title": "Private key key",
      "description": "Key in that Secret that holds the private key.",
      "type": "string",
      "required": false,
      "default": "cosign.key"
    }
  ],
  "imageDetails": [
    {
      "ref": "cgr.dev/chainguard/cosign@sha256:35b607c4eba6e914b3b8b80f5f8a63ce2eccd48617717d5edd572dd62f0cdf66",
      "repository": "cgr.dev/chainguard/cosign",
      "tag": "latest",
      "digest": "sha256:35b607c4eba6e914b3b8b80f5f8a63ce2eccd48617717d5edd572dd62f0cdf66"
    }
  ],
  "versionDetails": [
    {
      "version": "1.0.0",
      "date": "2026-10-18",
      "notes": "Initial release.",
      "latest": true,
      "installable": true,
      "url": "https://catalog.dagweave.com/api/v1/items/cosign-sign/1.0.0.json",
      "templateUrl": "https://catalog.dagweave.com/api/v1/items/cosign-sign/1.0.0/template.yaml"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/cosign-sign",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
