Zentrales Signieren für Pipelines auf gitlab.staging.odp.opendefense.cloud: kurzlebige Zertifikate von Fulcio auf das CI-OIDC-Token, Eintrag in Rekor v2, Zeitstempel der TSA. Keine eigenen Schlüssel nötig.
sign:
image: ghcr.io/sigstore/cosign/cosign:v3.1.4-dev
id_tokens:
SIGSTORE_ID_TOKEN:
aud: sigstore
script:
- wget -q https://sigstore.staging.odp.opendefense.cloud/signing_config.json https://sigstore.staging.odp.opendefense.cloud/trusted_root.json
- cosign sign-blob --yes --signing-config signing_config.json --trusted-root trusted_root.json --bundle artefakt.sigstore.json artefakt
cosign verify-blob --trusted-root trusted_root.json --bundle artefakt.sigstore.json \ --certificate-oidc-issuer https://gitlab.staging.odp.opendefense.cloud \ --certificate-identity 'https://gitlab.staging.odp.opendefense.cloud/<gruppe>/<projekt>//.gitlab-ci.yml@refs/heads/main' \ --use-signed-timestamps artefakt
cosign ≥ 3.0.1. Das Bundle gehört neben das Artefakt (Rekor v2 hat keine Suche). Images: Signatur als OCI-Referrer.
Fragen und Rückmeldung: #170