Skip to content

Kyverno verify images: "failed to update digest" – registry unreachable

Securitytested on kind, Kyverno ImageValidatingPolicy, cosign

An image check needs the registry: Kyverno fetches digest, signature and attestation from it. If it is gone there is no check – and without a check no pod.

Symptom

docker stop kind-registry
kind-registry
error: failed to update digest
i/o timeout

The local registry kind-registry is stopped, then a pod with a signed image should start.

Diagnosis

The admission controller log shows the real reason; the client only gets the policy's message.

kubectl -n shop run down -l app=down --image=kind-registry:5000/shop/web:1.31 \
  --dry-run=server -o name 2>&1 | sed 's/.*denied the request: //' \
  | grep -o 'error: failed to update digest\|i/o timeout'

Causes

i/o timeoutRegistry gone

Kyverno cannot reach the registry, so it can neither resolve the tag into a digest nor read the signature.

fail-closedIntended behavior

No check, no pod: that protects against unsigned images but makes the registry a critical dependency of every deployment.

Fix

Start the registry again; afterwards the check passes.
docker start kind-registry
kind-registry

Don't: Setting failurePolicy to Ignore across the board just so deployments go through – then unsigned images also run during an outage.

▶
Break it yourself and find it – free
Kyverno & NetworkPolicies hands-on, Day 10: registry with TLS, cosign offline, SBOM attestation, ImageValidatingPolicy and failure cases.
Go to day 10 →

FAQ

How long does Kyverno cache verification results?

Via imageVerifyCacheTTLDuration, default 1 h. Images already verified can still start shortly after a registry outage.

Where do I see reasons such as no signatures found?

In the admission controller log: kubectl -n kyverno logs deploy/kyverno-admission-controller | grep ERR. The message to the client is only the policy's message.

Related error patterns

More