sigstore-cosign
БесплатноБез исполняемых скриптовНе проверенSigstore — keyless signing for software artifacts using OIDC identities and short-lived certificates from Fulcio CA, with Rekor transparency log. Cosign is…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
Sigstore + Cosign — Keyless Artifact Signing
Deep Knowledge: Use
mcp__documentation__fetch_docswith technology:sigstoreorcosign.
Why Sigstore
Traditional signing requires long-lived private keys: distribute, secure, rotate, audit. Sigstore replaces the model with keyless signing:
- CI proves identity via OIDC (e.g., GitHub Actions has built-in OIDC token)
- Fulcio issues short-lived (10 min) X.509 cert bound to that identity
- Sign artifact, attach signature + cert to artifact
- Rekor transparency log records the signing event (Merkle tree)
- Verifier checks: cert chain is valid, identity matches expected, log entry exists
No keys to manage. Identity-based trust. Public auditability via Rekor.
Sigstore project includes:
- Cosign — CLI for sign/verify (most-used component)
- Fulcio — Code-signing CA
- Rekor — Transparency log (https://search.sigstore.dev/)
- Gitsign — Sign git commits with sigstore (replaces GPG)
Adopted by Kubernetes, npm (since 2023), GitHub container registry, JFrog, Wolfi/Chainguard images.
Install Cosign
# macOS
brew install cosign
# Linux
curl -LO https://github.com/sigstore/cosign/releases/latest/download/cosign-linux-amd64
chmod +x cosign-linux-amd64 && sudo mv cosign-linux-amd64 /usr/local/bin/cosign
# Verify
cosign version
Sign a Container Image (Keyless)
# Push image first
docker push ghcr.io/bhodl/api:1.0.0
# Sign with keyless OIDC (browser opens for OAuth)
cosign sign ghcr.io/bhodl/api:1.0.0
# In CI (no interactive auth — uses ambient OIDC):
COSIGN_EXPERIMENTAL=1 cosign sign --yes ghcr.io/bhodl/api:1.0.0
The signature is stored as a separate OCI artifact next to the image (<image>:<digest>.sig).
Verify
cosign verify ghcr.io/bhodl/api:1.0.0 \
--certificate-identity-regexp="^https://github\.com/bhodl/api/" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com"
--certificate-identity-regexp constrains who could have signed (the workflow URL). --certificate-oidc-issuer constrains the OIDC provider.
For a specific workflow:
cosign verify ghcr.io/bhodl/api:1.0.0 \
--certificate-identity="https://github.com/bhodl/api/.github/workflows/release.yml@refs/heads/main" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com"
Sign with a Key (Traditional)
If you must use a key (e.g., air-gapped CI):
# Generate keypair (encrypted private key)
cosign generate-key-pair
# → cosign.key, cosign.pub
# Sign
cosign sign --key cosign.key ghcr.io/bhodl/api:1.0.0
# Verify
cosign verify --key cosign.pub ghcr.io/bhodl/api:1.0.0
For HSM/KMS-backed keys:
cosign sign --key azurekms://my-vault.vault.azure.net/my-key ghcr.io/bhodl/api:1.0.0
cosign sign --key gcpkms://projects/PROJ/locations/LOC/keyRings/RING/cryptoKeys/KEY ...
cosign sign --key awskms://us-east-1/KEY-UUID ...
cosign sign --key hashivault://my-key ...
Sign Blobs (Files, Not Containers)
# Sign a binary
cosign sign-blob --yes my-app.tar.gz \
--output-signature my-app.tar.gz.sig \
--output-certificate my-app.tar.gz.pem
# Verify
cosign verify-blob my-app.tar.gz \
--signature my-app.tar.gz.sig \
--certificate my-app.tar.gz.pem \
--certificate-identity-regexp="^https://github\.com/bhodl/" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com"
For a release: sign the SHA-256 of the artifact:
cosign sign-blob --yes <(sha256sum my-app.tar.gz | cut -d' ' -f1)
Attestations (Verifiable Metadata)
Attach SBOM, provenance, or custom predicates to an artifact:
# Generate SBOM (e.g., with syft)
syft ghcr.io/bhodl/api:1.0.0 -o spdx-json > sbom.spdx.json
# Attach as attestation
cosign attest --yes \
--predicate sbom.spdx.json \
--type spdxjson \
ghcr.io/bhodl/api:1.0.0
# Verify attestation
cosign verify-attestation \
--type spdxjson \
--certificate-identity-regexp="^https://github\.com/bhodl/" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/bhodl/api:1.0.0
Predicate types:
slsaprovenance— build provenance (SLSA spec)spdxjson,cyclonedx— SBOM formatsvuln— vulnerability scancustom— your own JSON schema
SLSA Provenance
SLSA (Supply-chain Levels for Software Artifacts) — framework for build attestation. Generate provenance via SLSA GitHub action:
# .github/workflows/release.yml
permissions:
id-token: write
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
outputs:
digest: ${{ steps.build.outputs.digest }}
steps:
- uses: actions/checkout@v4
- id: build
run: |
docker buildx build --push --tag ghcr.io/bhodl/api:${{ github.sha }} . > digest.txt
echo "digest=$(cat digest.txt)" >> $GITHUB_OUTPUT
provenance:
needs: build
permissions:
actions: read
id-
Установить sigstore-cosign в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobWriteEditFAQ
Что делает скилл sigstore-cosign?
Sigstore — keyless signing for software artifacts using OIDC identities and short-lived certificates from Fulcio CA, with Rekor transparency log. Cosign is the CLI for signing/verifying containers, OCI artifacts, blobs, and attestations (SBOMs, provenance). Covers GitHub Actions OIDC integration, policy enforcement (cosign-policy-controller, Kyverno), Notary v2 vs Cosign, and supply-chain attestation patterns (SLSA). USE WHEN: user mentions "Sigstore", "Cosign", "Fulcio", "Rekor", "keyless signing", "OIDC signing", "cosign sign", "cosign verify", "SLSA provenance", "OCI artifact signing", "attestation cosign" DO NOT USE FOR: GPG-style signing - use GPG-specific docs DO NOT USE FOR: Code signing certificates (Apple Developer ID, Authenticode) - platform-specific DO NOT USE FOR: Reproducible builds spec - use `infrastructure/reproducible-builds`
Как установить скилл sigstore-cosign?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sigstore-cosign запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic