mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-06-13 06:34:57 +03:00
1.2 KiB
1.2 KiB
Workflow - Image Provenance with Cosign
Phase 1: Setup
- Install cosign CLI
- Choose signing method: keyless (recommended) or key-based
- If key-based: generate keys, store private key in KMS
- Configure CI/CD OIDC token for keyless signing
Phase 2: Build Pipeline Integration
- Build container image
- Push to registry (by digest)
- Sign image with cosign (keyless or key-based)
- Generate SBOM with syft
- Attach SBOM as attestation
- Attach vulnerability scan as attestation
Phase 3: Admission Enforcement
- Deploy policy-controller or Kyverno
- Create ClusterImagePolicy requiring signatures
- Test with signed image (should pass)
- Test with unsigned image (should be denied)
- Enable enforcement in production namespaces
Phase 4: Verification
# Manual verification
cosign verify --certificate-identity=CI_IDENTITY \
--certificate-oidc-issuer=ISSUER \
IMAGE@DIGEST
# Verify SBOM attestation
cosign verify-attestation --type cyclonedx \
--certificate-identity=CI_IDENTITY \
--certificate-oidc-issuer=ISSUER \
IMAGE@DIGEST
Phase 5: Monitoring
- Check Rekor transparency log for audit trail
- Monitor admission controller deny events
- Alert on unsigned image deployment attempts