Skip to content

Sign SBOM/provenance attestations with cosign attest #236

Description

@andrew

Follow-up to #227.

#227 attaches provenance (mode=max) and SBOM attestations via buildkit and signs the image manifest digest with cosign sign. The buildkit-attached attestations themselves are not cosign-signed, so policy engines that verify attestation signatures before trusting the predicate (e.g. Kyverno extractPayload) cannot use them.

Per @acidghost in #227 (review): extract the SBOM per platform and run cosign attest --type spdxjson --predicate <file> "${IMAGE}@${DIGEST}" (and similarly for provenance) so the predicate carries a verifiable signature.

Reference implementations:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions