1341 words
7 minutes

21 from Completed Is Not Restored: Kyverno Fail-Open, a Velero Restore and an HTTP 200 That Meant 500

The effect check: a control counts once a test has read its outcome, not its status

By Docker Captain · CNCF Ambassador · IBM Champion
Velero restore marked complete over an empty drive bay Blueprint 21

A status is a component's account of the task it was given, and each task here was narrower than the outcome. Kyverno shut down cleanly, Velero copied every volume it supports, and the demo answered. Admission was open, the disk was empty and the request had failed.

The procedure replaces three status reads with three reads of the outcome, run where a failure costs nothing: a cluster made for the test and gone after it.

  1. 1

    List what only a webhook enforces

    Compare the policies the API server enforces itself with every Kyverno ValidatingPolicy: kubectl get validatingadmissionpolicies against kubectl get validatingpolicies.policies.kyverno.io, both sorted, then comm -13. What is left stops the moment Kyverno's admission controller is scaled to zero, because Kyverno deletes the webhook configurations it registered on the way down. Owner: the platform engineer who owns admission policy.

  2. 2

    Move every rule the API server can run into the API server

    Set autogen.validatingAdmissionPolicy.enabled: true on each one, so Kyverno compiles it into a ValidatingAdmissionPolicy that the API server evaluates in-process. Kyverno's documentation makes that and pod controller auto-generation mutually exclusive, so one CEL variable reads the pod spec of a Pod, a CronJob and every controller that makes Pods. Set failurePolicy: Fail on purpose: since Kyverno 1.20 a policy that says Ignore also admits a request when its own evaluation fails. Write down why each rule that stays cannot move: mutation and generation still need Kyverno.

  3. 3

    Make the checker's absence a refusal

    Image verification cannot move: the API server has no way to check a signature. For a check like that, add a native policy whose parameter is Kyverno's own webhook configuration, with parameterNotFoundAction: Deny, so a pod that mounts a model is admitted only while Kyverno's webhook for that check exists and fails closed. With Kyverno gone, no new model starts and the one already served keeps answering. That is an outage, not a hole.

  4. 4

    Drill admission with the controller at zero, more than once

    In a cluster made for the test, turn off Argo CD's auto-sync for Kyverno, scale kyverno-admission-controller to zero, wait for its pods to go, and send every planted violation with kubectl apply --dry-run=server. Each must be refused by the rule its plant names, and a compliant pod in the same set must be admitted, so the refusals are not the cluster refusing everything. Then turn auto-sync back on and require Argo CD to bring the controller back. A drill that passed once proves nothing about the next: on 21 October one game day kept all seven of Kyverno's webhook configurations, and the next lost five.

  5. 5

    Give each backed-up volume a type the backup can copy

    Velero's file-system backup does not support hostPath volumes, and it skips them without failing the backup. The local-path provisioner behind kind's default class makes hostPath unless the class or the claim asks for local. For every StorageClass a backed-up namespace uses, read the type with kubectl get storageclass -o custom-columns=NAME:.metadata.name,PROVISIONER:.provisioner,TYPE:.metadata.annotations.defaultVolumeType, and give the class defaultVolumeType: local where it is missing. Owner: whoever owns the backup schedule, usually the SRE on the platform team.

  6. 6

    Count what each backup copied, and read the data back

    Velero writes one PodVolumeBackup for each volume it copied: kubectl -n velero get podvolumebackups -l velero.io/backup-name=<backup>. Zero means no volume was copied, whatever the backup's phase says. Then write a marker through the front door, delete the namespace, restore, and read the marker back. It is the restore proof one level down: a backup counts once its data has come back.

  7. 7

    Read the error where the application writes it

    A check on a status code reads what the application chose to send. podinfo, the platform's demo, writes every handler error with HTTP 200 and the code in the body, {"code": 500, "message": "reading file failed"}, and a file it can read comes back with 202, so a check that expected 500 could never pass. Read the body where the application puts its errors, and make a real service return the status it means: an objective that counts 5xx responses counts that failure as a success.

  8. 8

    Put the reads on a schedule, and name the step that broke

    A scheduled job creates a kind cluster on a runner that is thrown away after it, bootstraps Argo CD at the commit under test, waits for every Application to be Synced and Healthy, and runs every read above. The run's summary names the failing step, so the on-call engineer knows which promise broke without reading the log. Owner: the platform team.

Three statuses, and the read that replaced each

ComponentWhat its status saidWhat the check reads instead
Kyverno, admission controller scaled to zeroNo error; its webhook configurations deletedEvery planted violation refused, and a compliant pod admitted, while the controller is at zero
Velero, backup and restore on kind's default classCompleted, then CompletedOne PodVolumeBackup per volume, and a marker read back after the restore
podinfo, a file it cannot readHTTP 200The body: code 500, reading file failed

What shows it works

The runs and releases behind each step.

  • The scheduled kind run of 23 November 2026, on Kyverno 1.20.0: four policies compiled into ValidatingAdmissionPolicies, Kyverno removes its resource webhook when it stops, five planted violations are refused anyway (four by the generated policies, one by Pod Security), the compliant pod is admitted, and Argo CD brings the controller back from zero. In the same job a backup holds one pod volume, the namespace and its volume are deleted, and the marker is served again after the restore.
  • The hands-on guide run of 12 October 2026: the backup that copies no volume finishes Completed, the PodVolumeBackups read 1 against 0, the restore from it says Completed, and the check that expected HTTP 500 got 200. The run after the fix, the same day: the check reads the body, and the backend says 500, reading file failed.
  • Two game days of 21 October 2026 on the air-gapped agent, on Kyverno 1.19.1: in the first the webhook configurations stay at seven after the controller stops; in the second seven become two, and a model nobody signed and one under a licence the site does not allow are admitted.
  • The game day with the guard, the same day, and release v1.6.0, which ships it: with Kyverno at zero all three models are refused, the signed one included, the model already served keeps answering, and the signed model is admitted again 31 seconds after Kyverno is scaled up.
  • aws-eks-reference-platform v1.2.0: the release the post quotes, with the policy, the kind-local StorageClass, the drill and the scheduled workflow.

A status reports the component's work; only a read of the outcome reports the control.

The long version is the post Completed Is Not Restored. Kyverno, issue 6554, the webhook server at 1.20.0 and ValidatingPolicy; Kubernetes, Validating Admission Policy; Velero, File System Backup; Rancher, local-path-provisioner; podinfo, the HTTP error response at 6.15.0; all checked November 2026.


Vladimir Mikhalev

Docker CaptainCNCF AmbassadorIBM Champion

The Verdict — production-tested analysis on YouTube.

The Verdict

Inconvenient truths about shipping in the AI era

Container security, platform engineering, and the agentic shift — tested in production, argued without the hype. The verdict reaches your inbox the moment there's one worth sending.

Related Posts

Same category
  1. 1
    Completed Is Not Restored: Kyverno Fail-Open, a Velero Restore and an HTTP 200 That Meant 500
    DevOps & Cloud · Scale Kyverno to zero and its webhooks vanish. A Velero restore said Completed over an empty disk. A 200 carried a 500. Three statuses that reported success.
  2. 2
    Docker Hub Immutable Tags: The Image That Shipped Before It Was Signed
    DevOps & Cloud · Docker Hub immutable tags refused a per-commit tag after the version tags were already out. The image shipped, the run died, and nothing ever signed it.
  3. 3
    Docker Hardened Images Migration: A Healthy Database That Kept Nothing
    DevOps & Cloud · Moving a Compose stack to Docker Hardened Images changes user IDs, paths and tools. On the old mount path, PostgreSQL stayed healthy and kept nothing.
  4. 4
    EKS Validation on a Real AWS Account: Seven Failures No Mock Saw
    DevOps & Cloud · Proving an EKS platform on a real AWS account: twenty cents a run by estimate, about fifty on the bill, and seven failures no mocked test or kind saw.

More Blueprints

All 17
  1. 01
    The blast radius assessment
    Signal, 23 February 2026 · Map what an AI agent can break, and how fast a person can undo it, before it gets a single key: six steps, a worksheet and the repositories that measure the same rules.
  2. 02
    The AI intake gate
    Signal, 12 March 2026 · Find every AI tool in use, ask for its backend's access rules instead of a questionnaire, and block what cannot use SSO and central logging, before the first prompt.
  3. 03
    Build or buy a no-code AI platform
    Signal, 20 January 2026 · When a no-code computer vision subscription is the right buy, when it is a slow trap, three questions before the pilot and four clauses before you sign.
  4. 04
    The AI-BOM admission gate
    Signal, 18 October 2026 · Write a signed AI-BOM for every model from its lock line, read it at admission, and refuse any model unless every licence it declares is on the site's list.
The effect check: a control counts once a test has read its outcome, not its status
https://heyvaldemar.com/blueprints/effect-check/
Author
Vladimir Mikhalev
Published
2026-11-25
License
CC BY-NC-SA 4.0