Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Sigstore Cosign Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-sigstore-cosign-knowledge-patch-nevaberry-plugins)
---
name: sigstore-cosign-knowledge-patch
description: Sigstore Cosign
version: "3.1.6"
license: MIT
metadata:
author: Nevaberry
---
# Sigstore Cosign
Use this skill when migrating Cosign commands or working with signing,
verification, bundles, OCI storage, or signing service configuration.
## Reference index
| Reference | Topics |
| --- | --- |
| [CLI and module migration](references/cli-and-module-migration.md) | Deprecated flags and commands, initialization, annotation syntax, slot completion |
| [Bundles and OCI storage](references/bundles-and-storage.md) | Bundle defaults, inspection and creation, downloads, referrers, local images, save/load, attached signatures |
| [Signing and service configuration](references/signing-and-configuration.md) | Service configuration, overrides, timestamps, mutual TLS, certificates, bundle operation scope, Rekor prompt |
| [Verification and security](references/verification-and-security.md) | Legacy bundle fixes, verification keys, digests, predicates, timestamps, offline verification, Dockerfiles |
## Deprecations and migration
### Custom payloads
The `--payload` flag is deprecated on `cosign sign` and `cosign verify`.
Migrate scripts that pass a custom payload before upgrading to v4, where
deprecated functionality is slated for removal.
### Attestation output
The `--output-attestation` flag is deprecated. Use `--bundle` when migrating
an attestation workflow to write a Sigstore bundle.
### Other deprecated options and commands
The `--use-signing-config` flag is deprecated in v3.1.4.
The `--offline` flag was deprecated in v3.0.3.
The `--tlog-upload` and `--rekor-entry-type` flags and the `cosign copy` and
`cosign triangulate` commands were deprecated in the v3.0 series. Check
scripts for these options and commands before a v4 migration.
### Initialization
Use `cosign initialize --staging` to initialize with staging TUF metadata.
The `--out` option on `cosign initialize` was removed in v3.0.3.
## Verification requirements and fixes
### Legacy bundle upgrades
Use v3.0.4 or newer in the v3 series when verifying legacy bundles:
v3.0.4 fixes the verification path affected by GHSA-whqx-f9j3-ch6m.
For GHSA-fx35-mq7g-6g98, use v2.6.5 or later on the v2.6 line and v3.1.3
or later on the v3.1 line when verifying legacy bundles. Verification
commands in v3.1.x try to detect the bundle format automatically.
### Signing predicate and local manifests
In v3.1.6, a signing attestation checked by `cosign verify` must use
`https://sigstore.dev/cosign/sign/v1` as its `predicateType`.
Cosign v3.1.6 checks that each local manifest it reads matches its claimed
digest. A digest mismatch causes verification to fail.
### Legacy JSON and attestation timestamps
The legacy verifier in v3.1.6 matches JSON field names case-sensitively.
Use the exact field names when supplying JSON to that verifier.
In v3.1.6, Cosign gets the bytes for timestamp verification from the
attestation payload.
### Verification keys
Choose either a supplied verification key or a hardware security key.
Verification rejects commands that specify both. Verification with a
hardware security key skips certificate identity validation.
Since v3.0.4, an explicit verification key makes the trusted root file
optional for offline verification.
### Digests and checksums
Cosign v3.1.3 auto-detects the default digest algorithm for public keys when
the algorithm is left unspecified. `cosign verify-blob` honors a key's
non-default hash algorithm when verifying a blob.
Blob checksum comparisons in v3.1.3 treat checksum strings that differ only
in letter case as equal.
### Offline annotations and Dockerfiles
Offline verification includes annotations when reconstructing the implied
signature payload.
Dockerfile verification skips `FROM` references to earlier build stages,
such as `FROM build AS final` when `build` is a stage in the same Dockerfile.
## Bundles and OCI storage
### Defaults and command support
Cosign v3 defaults to the standardized protobuf bundle and stores container
signatures as OCI 1.1 referring artifacts. Workflows that need the legacy
bundle format can set `--new-bundle-format=false`.
The `attach`, `clean`, `download`, `load`, `save`, and `tree` commands gained
protobuf bundle support in v3.0.3. The `sign` command can write the new
bundle with `--bundle` and uses `--upload` to control publishing it.
### Inspect, create, and download
Use `cosign bundle inspect` to examine a Sigstore bundle.
Cosign v3.1.4 adds `cosign bundle create-from-container` to create a Sigstore
bundle from a container image.
`cosign download attestation` handles both legacy and new bundle formats.
It validates the predicate type when downloading an attestation in the
new bundle format.
### Local images and image indexes
Since v3.0.5, `--local-image --new-bundle-format` works with both v2 and v3
signatures. Local bundle discovery during verification supports OCI image
indexes.
Cosign writes OCI referrers for attestations attached to an image index so
registry clients can discover them. OCI 1.1 signature referrer manifests
include `artifactType`, so registry clients can filter them by artifact type.
### Saving, loading, and attaching
`cosign save` preserves the manifest's `artifactType` in the saved layout's
`index.json`. `cosign load` uploads bundle layer blobs before publishing the
manifest, letting registries that require referenced blobs to exist accept
the bundle.
Cosign trims trailing whitespace from signatures supplied to attach
operations through a file or standard input. OCI attestation layers carry
the `org.opencontainers.image.title` annotation.
## Signing and service configuration
### Default services and overrides
Cosign v3 gets signing service URLs from the signing configuration
distributed via TUF by default. Supply `--signing-config` for custom signing
services and `--trusted-root` for custom verification roots.
When creating a signing configuration, pass `--base-config base.json` to
start from an existing configuration and override selected services.
Services you leave unspecified are inherited from the base.
### Timestamps and mutual TLS
Verification automatically requires a signed timestamp for Rekor v2 entries.
Configure a timestamp authority when signing with Fulcio and Rekor v2.
Signing with a signing configuration supports mutual TLS connections to
the timestamp authority.
### Certificates and key selection
`cosign sign-blob` can use a supplied signing certificate as of v3.0.3.
Cosign v3.1.3 supports supplying an X.509 certificate chain when signing
OCI artifacts.
In v3.1.3, selecting a PKCS#11 key with no matching key pair returns an
error that callers can handle.
### Bundle operation scope and privacy prompt
Pass one artifact per invocation when signing or attesting in bundle mode.
Run a separate invocation for each artifact.
Cosign limits the public-instance privacy prompt to default public Rekor
endpoints.
## CLI details
Annotation values may contain `=`. For example, `-a 'query=mode=release'`
sets `query` to `mode=release`.
Shell completion offers values for the `--slot` option.