Lion Cipher Lab

Continuously scan a running Kubernetes cluster with Trivy Operator

Why it matters

Most people meet vulnerability scanning as a one-shot: point `trivy image nginx:1.20` at a container, get a list, move on. That is genuinely useful in a build pipeline, but it answers only one question at one moment -- 'was this image clean when I checked it?' It does not answer the question a running cluster actually poses, which is 'what is vulnerable in what I am running RIGHT NOW, and did it change when someone deployed something at 2am?' Clusters are not static: images get redeployed, tags drift, new CVEs are published against images that were clean yesterday, and no human is re-running…

What you'll learn

Steps in this lab

  1. First, the idea — an operator watches, it does not wait to be asked
  2. Set up: create a throwaway Kubernetes cluster with kind
  3. Install Trivy Operator from its official manifest
  4. BEFORE — deploy a deliberately old image and watch a report appear on its own
  5. BEFORE — read the ConfigAuditReport, a different kind of finding
  6. FIX + RE-MEASURE — patch the image, harden the spec, let the operator re-scan
  7. When continuous in-cluster scanning is the right tool — and how a pro reads the report
  8. Honest limits — what a report is not, and what it does not replace

Open the full interactive lab →