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)
---
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 CLI workflows, working with Sigstore
bundles and OCI storage, configuring signing services, or checking verification
behavior. Load the relevant reference for the workflow being changed.
| Reference | Topics |
| --- | --- |
| [CLI and module migration](references/cli-and-module-migration.md) | Deprecated flags and commands, staging initialization, annotation syntax, slot completion |
| [Bundles and OCI storage](references/bundles-and-storage.md) | Bundle defaults and commands, downloads, local images, OCI referrers, save/load, attached signatures |
| [Signing and service configuration](references/signing-and-configuration.md) | TUF configuration, service overrides, timestamping, certificates, PKCS#11, Rekor privacy prompt |
| [Verification and security](references/verification-and-security.md) | Legacy-bundle fixes, verification keys, hashes, local manifests, signing predicates, timestamps, JSON fields, Dockerfiles |
## Migration and deprecations
### Custom payloads
`--payload` 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
`--output-attestation` is deprecated.
Use `--bundle` when migrating an attestation workflow to write a Sigstore bundle.
### Other deprecated options and commands
`--tlog-upload`, `--rekor-entry-type`, `cosign copy`, and `cosign triangulate`
were deprecated in the v3.0 series. Check scripts for these before a v4 migration.
`--offline` was deprecated in v3.0.3.
`--use-signing-config` is deprecated in v3.1.4.
### 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 security fixes
### Legacy bundles
Use v3.0.4 or newer in the v3 series when verifying legacy bundles:
v3.0.4 fixes the legacy bundle 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 attestation predicate
In v3.1.6, a signing attestation checked by `cosign verify` must use
`https://sigstore.dev/cosign/sign/v1` as its `predicateType`.
### Local manifest integrity
Cosign v3.1.6 checks that each local manifest it reads matches its claimed digest.
A digest mismatch causes verification to fail.
### Legacy JSON field names
The legacy verifier in v3.1.6 matches JSON field names case-sensitively.
Use the exact field names when supplying JSON to that verifier.
### 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.
### Offline verification
Since v3.0.4, an explicit verification key makes the trusted root file optional
for offline verification.
Offline verification includes annotations when reconstructing the implied
signature payload.
## Bundle operations
### Default formats and publication
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 `sign` command can write the new bundle with `--bundle` and uses `--upload`
to control publishing it.
### One artifact per invocation
Pass one artifact per invocation when signing or attesting in bundle mode.
Run a separate invocation for each artifact.
### Inspect or create a bundle
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.
### Download attestations
`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.
### OCI storage operations
The `attach`, `clean`, `download`, `load`, `save`, and `tree` commands gained
protobuf bundle support in v3.0.3.
`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.
## Signing and service configuration
### Service URLs and custom roots
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.
### Base configuration overrides
When creating a signing configuration, pass `--base-config base.json` to start
from an existing configuration and override selected services.
Services left unspecified are inherited from the base.
### Timestamp authorities
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.
In v3.1.6, Cosign gets the bytes for timestamp verification from the attestation
payload.
### Signing certificates
`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.
## Hashes and annotations
### Key digest selection and blob 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.
### Annotation values
Annotation values may contain `=`.
For example, `-a 'query=mode=release'` sets `query` to `mode=release`.