Faberby FaberOps

Container Image Cosign Signature Verification Rejected

Matches admission controller and registry verification errors where an unsigned or untrusted container image fails Cosign, Sigstore, or Binary Authorization checks.

Kind
Signature
Version
2.0.0
Tier
verified
Needs Faber
v2.0.0+
Digest prefix
sha256:34cad649

Contract facts

Sources
3
kubernetes, loki, victorialogs
Log patterns
3
RE2, replayed in CI
Kubernetes matchers
0
CEL on live objects
Samples
3 and 2
must match and must not

Inspect it

Inspect the contract and RBAC delta

$ faberctl catalog inspect signatures/image-pull-signature-rejected \ --source oci://ghcr.io/faberops/catalog:v2

How it works

Sources

kubernetes, loki, victorialogs

What it matches

Must match

  • admission error: image verification failed: ghcr.io/example-org/api:1.4.0 has no matching signatures
  • cosign verify: signature verification failed for digest sha256:abc123
  • ImagePolicyWebhook denied unsigned image docker.io/example-org/worker:latest

Must not match

  • Verified cosign keyless signature from GitHub Actions OIDC issuer
  • Pulled image ghcr.io/example-org/api@sha256:1111111111111111111111111111111111111111111111111111111111111111

Signature source

signature.yamlFailureSignature27 lines
apiVersion: catalog.faberops.dev/v2
kind: FailureSignature
metadata:
  name: image-pull-signature-rejected
spec:
  description: Matches admission controller and registry verification errors where an unsigned or untrusted container image
    fails Cosign, Sigstore, or Binary Authorization checks.
  sources:
  - kubernetes
  - loki
  - victorialogs
  logPatterns:
  - image verification failed:.*no matching signatures
  - cosign.*signature verification failed|invalid signature when validating ASN\.1
  - ImagePolicyWebhook.*denied.*unsigned image
  samples:
    match:
    - 'admission error: image verification failed: ghcr.io/example-org/api:1.4.0 has no matching signatures'
    - 'cosign verify: signature verification failed for digest sha256:abc123'
    - ImagePolicyWebhook denied unsigned image docker.io/example-org/worker:latest
    noMatch:
    - Verified cosign keyless signature from GitHub Actions OIDC issuer
    - Pulled image ghcr.io/example-org/api@sha256:1111111111111111111111111111111111111111111111111111111111111111
  queries:
    loki: '{namespace=~"kyverno|cosign-system|policy-controller"} |= "no matching signatures" or |= "signature verification
      failed"'
    victorialogs: ("no matching signatures" OR "signature verification failed")
pack.yamlcatalog metadata11 lines
# Catalog metadata for signatures/image-pull-signature-rejected. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
  name: image-pull-signature-rejected
  category: signatures
  version: 2.0.0
spec:
  tier: verified
  minFaberVersion: v2.0.0
  digest: sha256:34cad64920b7949e6b046976876f793f164efd35c775e3e3a3c96443f7b073f3

Signatures are catalog data. A Playbook references one by name in a connector trigger. It is never applied on its own.