apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
  name: verify-signed-images
spec:
  validationFailureAction: Enforce
  background: false
  rules:
    - name: verify-prod-images
      match:
        any:
          - resources:
              kinds: ["Pod"]
              namespaces: ["prod"]
      verifyImages:
        - imageReferences:
            - "ghcr.io/example/*"
          mutateDigest: true
          attestors:
            - entries:
                - keys:
                    publicKeys: |-
                      -----BEGIN PUBLIC KEY-----
                      REPLACE_ME
                      -----END PUBLIC KEY-----
