Sigstore
A software signing and verification project
A software signing and verification project
Sigstore is a Linux Foundation project, a public infrastructure that provides software signing and verification free of charge. It is drawing attention as the need for software supply chain security has grown since the SolarWinds and Log4j incidents.
Sigstore consists of three core components: Fulcio (certificate issuance), Rekor (transparency log), and Cosign (signing tool). Fulcio issues short-lived certificates through OIDC authentication, and Rekor publicly records every signature.
Keyless Signing is its most significant feature. Signing is done with OIDC tokens from GitHub Actions or GitLab CI, without long-term stored keys. The burden of key management disappears, and the signer's identity is bound to the certificate.
It is used together with the SLSA framework and is utilized to generate and verify build provenance attestations. Adoption of Sigstore is also spreading across package registries such as npm, PyPI, and Maven.
# Sigstore ๊ตฌ์ฑ์์ ์ค๋ช
# Fulcio: OIDC ๊ธฐ๋ฐ ์ธ์ฆ์ ๋ฐ๊ธ ์๋น์ค
# Rekor: ๋ณ์กฐ ๋ถ๊ฐ ํฌ๋ช
์ฑ ๋ก๊ทธ (Merkle Tree)
# Cosign: ์ปจํ
์ด๋ ์ด๋ฏธ์ง ์๋ช
CLI
# Keyless ์๋ช
(GitHub Actions์์)
# .github/workflows/sign.yml
jobs:
sign:
runs-on: ubuntu-latest
permissions:
id-token: write # OIDC ํ ํฐ ๋ฐ๊ธ
packages: write
steps:
- uses: sigstore/cosign-installer@v3
- name: Sign container image
run: cosign sign --yes ${{ env.IMAGE }}
# OIDC ํ ํฐ์ผ๋ก Fulcio์์ ์ธ์ฆ์ ๋ฐ๊ธ
# Rekor์ ์๋ช
๊ธฐ๋ก
# ์๋ช
๊ฒ์ฆ (์๋น์ ์ธก)
cosign verify ghcr.io/myorg/myapp:v1.0 \
--certificate-identity="https://github.com/myorg/myapp/.github/workflows/build.yml@refs/tags/v1.0" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com"
# Rekor์์ ์๋ช
๊ธฐ๋ก ์กฐํ
rekor-cli search --email=user@example.com
# SLSA Provenance ์์ฑ ๋ฐ ๊ฒ์ฆ
# slsa-verifier๋ก ๋น๋ ์ถ์ฒ ์ฆ๋ช
slsa-verifier verify-artifact myapp.tar.gz \
--provenance-path myapp.tar.gz.sigstore \
--source-uri github.com/myorg/myapp
# ํ๋ผ์ด๋น Sigstore ๊ตฌ์ถ (๊ธฐ์
ํ๊ฒฝ)
# Helm์ผ๋ก Fulcio, Rekor, CTFE ๋ฐฐํฌ
helm install sigstore sigstore/scaffold -n sigstore
Security: "We want to strengthen the supply chain security of our open-source libraries. Let's add Sigstore signature verification for npm and PyPI to CI."
Developer: "Do we need to sign our packages too?"
Security: "For internal distribution, signing containers with Cosign is enough, and for externally published packages, use npm provenance."
Interviewer: "How would you implement software supply chain security?"
Candidate: "I would use Sigstore. In CI, I keyless-sign container images with Cosign and generate SLSA L3 provenance with slsa-github-generator. In Kubernetes, I enforce that only signed images are deployed using Kyverno verifyImages."
Take a mock interview on this topic โ WIA SOOM AI Interview ยท Start for free
Reviewer: "Without --certificate-identity, cosign verify lets any signature pass. Please add it so that only our workflow is allowed."
Author: "You're right. I'll add --certificate-identity and --certificate-oidc-issuer."