r/kubernetes • • 26d ago

Periodic Monthly: Who is hiring?

26 Upvotes

This monthly post can be used to share Kubernetes-related job openings within your company. Please include:

  • Name of the company
  • Location requirements (or lack thereof)
  • At least one of: a link to a job posting/application page or contact details

If you are interested in a job, please contact the poster directly.

Common reasons for comment removal:

  • Not meeting the above requirements
  • Recruiter post / recruiter listings
  • Negative, inflammatory, or abrasive tone

r/kubernetes • • 22h ago

Periodic Weekly: Share your victories thread

3 Upvotes

Got something working? Figure something out? Make progress that you are excited about? Share here!


r/kubernetes • • 11h ago

Your phone is a Kubernetes node

Thumbnail fzakaria.com
190 Upvotes

r/kubernetes • • 9h ago Bravo Mindblown

How we manage vulnerabilities across ~90 apps: base images, Trivy, Dependency-Track and VEX policies in git

77 Upvotes

Intro

πŸ‘‹ My name is Igor and I am a Senior SRE employed with MailerLite. Before this I ran my own hosting company, and these days I work hands-on with Kubernetes on GCP, email delivery infrastructure and platform engineering, with security as one of the hats I wear.

I've been a long time lurker of this (and many other) subs. Thanks to our dear LLM friends, security vulnerabilities have never been more in the focus of the media and of us on the frontlines, who have the job of making sure that everything is (mostly) up to date.

Recently I noticed that people often ask how to manage supply chain and dependencies at scale, and the answers given are usually just half of a proper story / solution. This question is something that kept me awake since 2026 started, so I've decided to do something about it and I want to share that something with you.

This is going to be a super long post and we will tackle the following questions:

  1. What is the issue that we are trying to solve?
  2. What are the actual results of this effort?
  3. How I approached this and how it works

If you want to learn about this go grab a coffee, or just pass this whole post to your LLM to summarize it for you :)

But be aware - this is a really really long and very dry reading about this topic and how we did it. My hope is that some of this will help you out in your mission to do something similar for your organization.

What is the issue that we are trying to solve?

Like many of you we have a huge number of apps that are used for different purposes (currently around 90). The main challenges for us were:

  1. 90 images mean 90 ideas of how something is packaged and built
  2. We had no idea what goes into those images from a components standpoint
  3. They used different base containers - some Debian, some Alpine, no standards
  4. When big nasty vulnerabilities hit, patching took forever for reasons 1, 2 and 3
  5. We were pretty blind - CVEs come out every day and all of that sounds scary, but we had no real idea of the impact
  6. The existing scanning solution that Google Cloud provides is just trash - it is overly noisy, it reports like 8000 vulnerabilities, it is super hard to navigate and to be honest, when you get a task to look into that, it is just not possible to deal with all of it
  7. And finally - some of the apps belong to the SRE team, others belong to various engineering teams in the company. With a lack of visibility it is hard to be proactive (and not reactive) when it comes to fixing things

So the goals that we set for ourselves were the following:

  1. Every single container image will start from the same base image
  2. We want the least amount of packages in those images
  3. We want one set of CI/CD workflows used by all of our apps, to reduce maintenance and have a predictable output
  4. Weekly rebuilds with weekly merges and releases to different environments
  5. We want to scan those images, generate an SBOM and keep it somewhere
  6. Not all vulnerabilities hit equal, so we want the ability to just plainly ignore some, reduce the noise and then show what actually is important
  7. We need to have others on board - handling 90 apps and patching them is not a small feat, so we need to put the numbers in front of everyone's face
  8. Instead of learning about important stuff from X and Reddit and whatnot, we should have a system in place that tells us every morning what is new, what needs attention and how to handle it

So, a very complex and challenging set of goals. And spoiler alert - we managed to achieve all of them.

What are the actual results of this effort?

I started working on all of this alone in April and finished about a month and a half ago (not working on it constantly). For those who do not want to read 20 A4 pages of how we solved it, here is the TLDR:

  1. I think that we managed to achieve all of the goals that we set for ourselves
  2. To do that we adopted new tools and standards - Trivy, Dependency-Track, VEX policies, Chainguard's Wolfi as the base for images etc
  3. We fully adopted VEX policies internally and all of our apps have one. This significantly reduced the noise and helped us see what actually is important
  4. Thanks to reusable workflows and the adoption of Trivy, we increased the visibility of components in each of our apps. As a result (and after some nudging) our developers started noticing this and acting on it themselves
  5. We do a weekly review of policies and patching. After some automation that I did last week, that process now takes roughly one work day

It was a long project for 1 person, but we are in much better shape with better visibility and, most importantly, everything is patched on a weekly basis. A new hot CVE (looking at you PHP and nginx) now takes maybe an hour to deal with by one person once the patch is available upstream, instead of a whole day and the effort of a whole team.

The approach and how it all works

Before the details, here is the whole loop in one picture. Everything below is an explanation of one of these boxes:

Terms

Let's first talk about terminology, because the rest of the post uses these words a lot:

  1. SBOM - the list of every package inside an image or a lockfile, with versions. Ours are CycloneDX JSON, produced by Trivy at build time
  2. Dependency-Track (DT) - the inventory. Every SBOM is uploaded there; DT keeps re-matching stored SBOMs against new advisories, so a CVE published tomorrow shows up on images built last month
  3. Finding - one (package, vulnerability) pair reported by Trivy or DT
  4. CVE / CGA / GO ids - different databases name the same bug differently. CGA-… is Chainguard's id for Wolfi packages, GO-… is the Go vulnerability database. DT names Wolfi findings by CGA-…, Trivy names them by CVE
  5. OSV - the open vulnerability database at osv.dev. It knows which ids are aliases of the same bug and in which version a bug was fixed. We use it for both
  6. EPSS - Exploit Prediction Scoring System: the probability that a CVE gets exploited in the next 30 days. Much more useful for sorting a morning list than severity alone
  7. Wolfi - Chainguard's Linux distribution (apk packages, free tier). Every base image of ours is wolfi-base plus packages
  8. Wolfi secdb - Wolfi's security database: which package version fixed which CVE. We use it to catch findings DT keeps reporting after the fix already shipped
  9. VEX - a statement about CVE X on package Y in product Z: it does not affect it, with a reason, or it does. OpenVEX is the JSON format Trivy reads
  10. Verdict - one entry in a policy.yaml: a decision about one package (or some CVEs on it) in one app, with evidence. Written by the triage skill, merged by a team member
  11. Statement - one OpenVEX record. The compiler turns one verdict into one statement per CVE
  12. Bump list - the application dependencies of an app that have a fixed version available. Those get upgraded, never suppressed
  13. Open risk - a finding that stays visible and is not on a bump list. It is on record when it has an affected verdict saying why it is reachable and what closes it; it is without a decision when it has no verdict at all
  14. App - one DT project name, one directory policies/<app>/, one image or one application repo. The base images are apps too
  15. Collection / leaf - the DT hierarchy. A collection aggregates its children; a leaf is one real SBOM upload, for example dns-exporter-amd64 at version 0.2.35
  16. mlvex - a Go CLI that I wrote, living in the policy repo. Everything that talks to DT or compiles policies goes through it
  17. Agent - Claude Code running our triage skill headless in GitHub Actions. It writes policy.yaml and the pull request text, nothing else
  18. Probe - one numbered command of a triage run with its output (P7). Every claim in a triage PR links to the probe that printed it

Base images

Our apps are built with a lot of different tools and languages, there is everything - Go, Rust, PHP, NodeJS, Python etc. So we had to decide what the base will be, and after some discussion we landed on Wolfi, which is managed by Chainguard.

Wolfi ships package updates within days (often hours) of upstream, apk packages are small, and Chainguard publishes a security database we can query mechanically. We did not go for the paid language images; wolfi-base plus apk add gives the same packages with full Dockerfile control.

Why do base images matter for this whole system? An app image inherits every OS package of its base. A libpng CVE lands on 60 apps at once, most of which never decode an image. That is where the noise comes from, and it is why the base images have their own policies and why app policies spend most of their verdicts on packages that are "present in the base layer only, nothing links it".

We have a base image with the absolute minimum of tools that we really need. Other images are built on top of it, so there is a dependency between them (for example a chain of base -> php -> php-fpm -> php-some-app). All versions live in one YAML file that every workflow reads, so adding a new Python version is a one line change. Each image has its own SemVer tag stream, which means a PHP patch does not force a Go release.

Here is a trimmed version of that file:

# Source of truth for all images in this repo.
# Read by the build and test workflows, the DT provisioning and the justfile.
#
#   <image_name>:
#     depends_on: <image_name>     # optional; omit to depend on base
#     build_arg_name: <ARG>        # the ARG used in the Dockerfile
#     versions: [...]              # first entry is treated as the latest

base: {}

go:
  build_arg_name: GO_VERSION
  versions:
    - "1.27"
    - "1.26"
    - "1.25"

python:
  build_arg_name: PYTHON_VERSION
  versions:
    - "3.14"
    - "3.13"
    - "3.12"

php:
  build_arg_name: PHP_VERSION
  versions:
    - "8.4"
    - "8.5"

php-fpm:
  depends_on: php
  build_arg_name: PHP_VERSION
  versions:
    - "8.4"
    - "8.5"

php-some-app:
  depends_on: php-fpm
  build_arg_name: PHP_VERSION
  versions:
    - "8.4"
    - "8.5"

The weekly cascade

That is where the weekly cascade build comes in. Every Monday night we patch-bump base, tag it, do a GitHub release, dispatch its build and wait for it. Then we walk depends_on from that YAML file and fire every direct child in parallel. Once that layer is done the next one is built, and so on until the end of the chain. Scheduled runs also run container-structure-test, so a Wolfi package that disappeared or changed behaviour fails the build instead of shipping.

Three hours later each app repo patch-bumps its own tag and rebuilds on the latest base. By Monday afternoon every image we run has last week's Wolfi fixes, with no human involved. That is the remediation path for every OS-package CVE. Nobody bumps openssl by hand anymore.

What a build produces

Per arch and per version, a build produces: the image pushed by digest, a multi-arch manifest, a Trivy scan, a CycloneDX SBOM attached to the image in the registry as an OCI artifact, and the same SBOM uploaded to DT and flagged as the latest version.

One small trick that paid off a lot: every base image carries two labels, com.<company>.base.name and com.<company>.base.version. Images built FROM it inherit them untouched, Trivy copies them into the SBOM, and the upload turns them into DT project tags. That is how DT knows which base image an app was built on, and how we can filter for everybody who is still sitting on an old one.

Trivy scanning

Trivy runs at a few points in the life of an app. Each one is a reusable workflow in the base images repo; app repos call them with a couple of inputs and never run Trivy themselves.

Where Trivy runs

The first point is the pull request. We run trivy fs over the lockfiles and it produces a sticky PR comment. If a repo has no lockfile, the workflow builds the Dockerfile locally and scans that instead. Nothing is uploaded anywhere from a PR.

The second point is the release. A tag push builds the image, scans it, attaches the SBOM to the image and uploads it to DT. Repos that ship no container (libraries, plain applications) get a source scan on release, and their SBOM goes to DT the same way. Images that are built by our deploy tooling instead of a build workflow are scanned right after the deploy, so a scan never blocks a release.

Container repos get the lockfile scan on PRs too. The release pipeline scans the pushed image either way, so the PR scan is the early signal, not the inventory.

What the PR comment shows

The visibility in PRs is super important to us.

Every CVE row in the comment carries a Scope, so a developer knows whether it is theirs, and a Type with the Trivy analyzer (composer, npm, gobinary, …). Scope is either App or OS. App means a language dependency like a composer, npm, pip or Go module, and the fix is to bump it in the lockfile. OS means an apk package like openssl or zlib, and the fix is nothing in that repo - the Monday rebuild takes it. App rows sort first.

The classification comes from Trivy's own result class, not from guessing by package name.

This is what we see in PRs:

When the app has a VEX policy, the comment adds a line saying how many findings are suppressed by it, with a link to the policy file at the exact commit, and a collapsed table of the hidden CVEs with their justification. So a reviewer sees "libpng suppressed" right under a diff that adds image handling. That is the only mitigation we have for a policy on main that a PR silently invalidates, and I will come back to it when we talk about the challenges.

If there is no policy, or the scan could not authenticate to the policy repo, the footer says so and the scan runs unfiltered. That is on purpose. A scan that silently drops findings because a checkout failed is worse than a noisy one, so an auth or network failure fails the step, while a missing policy is a clean "nothing to apply".

The merge gate

There is also a merge gate. The PR workflow can fail the check on vulnerabilities that have a fix, with a configurable minimum severity (CRITICAL by default) and scope (App by default). It is off by default and every repo opts in, so we roll it out one repo at a time.

Findings without a fixed version are listed but never block, because there is nothing to upgrade to. And the report is already filtered by the VEX policy, so an accepted finding never counts. Release builds never block.

How the policy reaches Trivy

How does the policy reach Trivy? A small composite action runs in every scanner. It mints a short-lived read-only token as a GitHub App, checks out only the compiled policy of that one app from the policy repo, verifies that the document was really compiled for this app, drops every statement that is expired, and points Trivy at the result. Then it moves the checkout out of the workspace, because trivy fs . once happily scanned the policy repo's own go.mod as if it belonged to the app.

One more detail: the steps that generate the SBOM run without the policy. DT must see everything, and it gets the same decisions through another path that I explain below.

Dependency-Track

Trivy tells us what is wrong with the thing we are building right now. DT is where the long tail lives: an image built in March gets re-matched against an advisory published in November. Every SBOM we produce ends up there.

The hierarchy in DT mirrors the YAML file with our images. There is a root collection per product, under it a collection per app, and under that the leaves - one per architecture, each one a real SBOM upload:

Company                          (root collection)
β”œβ”€β”€ base                         (collection, aggregates latest)
β”‚   β”œβ”€β”€ base-amd64               (leaf, one SBOM per upload)
β”‚   └── base-arm64
β”œβ”€β”€ python
β”‚   β”œβ”€β”€ python-3.14              (collection)
β”‚   β”‚   β”œβ”€β”€ python-3.14-amd64
β”‚   β”‚   └── python-3.14-arm64
β”‚   └── python-3.13 …
└── dns-exporter
    β”œβ”€β”€ dns-exporter-amd64       (version 0.2.35, latest)
    └── dns-exporter-arm64

Every upload also leaves a few facts on the DT project: tags that say what it is (language, version, arch), tags that say which base image and base image version it was built on, and External References with the repository that built it and the registry path of the image. That last part sounds boring, but it is what lets the automation find the source and the image of an app later without anybody maintaining a mapping by hand.

Where Dependency-Track bites

DT is a great tool, but it took a while to learn where it bites. If you are about to build something on top of it, here is what I wish somebody had told me.

We only look at the latest version of every app. Old versions stay in DT forever and keep their findings, and nobody looks at them. Arch leaves are separate projects, so every CVE shows up twice and mlvex collapses them into one app.

DT names Wolfi findings by Chainguard's CGA id and Go findings by the GO id, while Trivy talks in CVEs, and DT does not import the aliases that connect them. Upstream closed that request as not planned. So mlvex looks every non-CVE id up at OSV and stores the aliases, and a verdict written for a CVE matches in both tools.

DT's findings endpoint never returns a fixed version. We fill that in from OSV as well. Without it, "fix available" would never fire anywhere.

A trailing slash on the DT URL routes your API calls to the frontend, which answers 200 with HTML. If you ever see HTML in an error from a DT client, that is why.

And my favourite: patching a project through the API treats a missing "is latest" field as false. A backfill of ours that sent only tags quietly cleared the "latest version" flag on most of the projects it touched. Now anything that patches a project sends back the flags it just read, and reads the project again after the write.

VEX policies

Now we need the machine that tells us what we can stop looking at, and that is what VEX is for. Vex policies are what people always talk about but realistically either never implement or, if they do, rarely update and manage.

The golden rule that makes all of this work: git is the source of truth, DT is a projection. We have one repo with one directory per app. A suppression reaches Trivy and DT only through a merged PR in that repo. Nobody clicks "suppress" in a UI, and nothing writes decisions to DT except one sync command that reads from a clean checkout of main.

Each app directory has three files that matter. policy.yaml holds the decisions and is the only file anybody edits. fixed.yaml is derived by a machine from the Wolfi secdb. And a generated folder holds a snapshot of what DT knows about the app plus the compiled OpenVEX document that Trivy reads. The snapshot is committed on purpose: compilation becomes a pure function, CI runs offline, and a PR shows the exact statements that change.

A policy looks like this (app renamed and trimmed a bit):

app: dns-exporter
kind: image
context: |
  **What it does** β€” Prometheus exporter, Go, static binary. (Dockerfile:5, Dockerfile:20)

  **Exposure** β€” Internal only: scraped by the metrics agent, no route from outside.

  **Runtime** β€” Static Go binary (CGO_ENABLED=0) on our base image, never spawns a process.
verdicts:
  - component: pkg:apk/wolfi/bind-tools   # a PURL (package URL), always without a version
    scope: component                 # every CVE on this package, now and in the future
    status: not_affected
    justification: vulnerable_code_not_in_execute_path
    impact: "bind-tools ships dig/host/nslookup from the base image. The exporter is a static Go binary that never executes another process, so no BIND code path can run."
    evidence:
      - "go list -deps ./... β†’ os/exec absent from the compiled dependency graph at acbf6e6"
      - "image v0.2.29: file /app/dns_exporter β†’ statically linked"
    reviewed: 2026-10-09
    review_after: 2027-10-09         # hard expiry

  - component: pkg:apk/wolfi/busybox
    scope: vulnerability             # the listed CVEs only
    vulnerabilities: [CVE-2023-42363, CVE-2023-42364]
    status: not_affected
    justification: vulnerable_code_not_in_execute_path
    impact: "Both CVEs are in the awk applet. The entrypoint is the Go binary and nothing execs a shell."
    evidence:
      - "rg 'os/exec|syscall.Exec' β†’ no matches at acbf6e6"
      - "Dockerfile:20 β€” ENTRYPOINT is the Go binary at acbf6e6"
    reviewed: 2026-10-09
    review_after: 2027-10-09

The context block says what the app does, how it is reached and what it never does. It is re-read on every review, so it is worth keeping honest.

Statuses

A verdict has one of three statuses.

not_affected means the package or the code path cannot matter here, with evidence. It hides the finding in Trivy and in DT and has to be reviewed within a year.

under_investigation means it is plausible that we are fine but the evidence is too thin. It hides nothing and expires in 30 days.

And affected is an open risk on record: the code is reachable, or loaded and not ruled out, and the verdict says why and what closes it. It hides nothing either and expires in 90 days. It exists so the next review renews a decision instead of meeting the same finding as if nobody had ever looked.

An open risk on record looks like in example below. The package and the CVE are made up, the shape is the real one. The impact has to start with either "Reached:" or "Not ruled out:", and the action says what closes it:

  - component: pkg:apk/wolfi/libexample
    scope: vulnerability             # affected is never component-wide
    vulnerabilities: [CVE-2026-00000]
    status: affected                 # hides nothing
    impact: "Not ruled out: the library is loaded by the main process, which parses files uploaded by users. The advisory names the parser, and we could not show that the vulnerable function is unreachable."
    action: "Take the fixed package with the weekly base image rebuild. Until then nothing to do."
    evidence:
      - "image v1.4.2: the entrypoint loads the library at start"
      - "the upload handler passes user files to the parser at 3f9c2d1"
    reviewed: 2026-11-25
    review_after: 2027-02-23         # 90 days

There is a fourth state that no human writes. Chainguard keeps some detection records open after a fix ships, so DT keeps reporting CVEs that the installed package already fixed. We read the Wolfi secdb, and when it says the installed version has the fix, the finding goes into fixed.yaml and gets marked as a false positive in DT. That file is regenerated every week and never edited.

Scopes

Then there are two scopes, and the choice between them matters more than anything else in the file.

A component verdict covers every CVE on a package, including the ones published after the verdict was written. It fits when the package cannot be loaded at all: a static binary cannot link a C library, a PHP extension is not installed, nothing in the image executes that binary.

A vulnerability verdict covers only the listed CVEs, and it fits when the argument is about one code path.

A component verdict on busybox because "we do not use awk" is wrong. The next busybox CVE might be in sh, and the verdict would hide it. Our weekly report lists every new CVE that a component verdict absorbed, so this gets caught, but it is better to write the right scope the first time. For the same reason affected is never component-wide: a new CVE on a reachable package has to show up as new.

Rules and expiry

The rules are enforced by a validator that runs on every commit and every PR. No not_affected without a justification, an impact statement and evidence. Evidence is two lines or more by convention, at least one from the shipped artifact, each pinned to a commit or an image tag. And "no fix available", "internal only", "behind a WAF" or "we will upgrade soon" are not evidence.

The design decision I like the most: expiry is a hard stop, not a reminder. An expired statement is dropped by the scan action immediately and cleared from DT by the next sync. A reminder that is ignored leaves a suppression active forever. An expiry that is ignored makes the finding visible again, which is the safe direction to fail in.

The compiler

The compiler is a pure function: policy, fixed list and snapshot in, OpenVEX out. Same inputs give byte-identical output, so CI recompiles every app and diffs against what is committed, and a hand edit of a generated file simply cannot merge. Each statement carries the impact text, the evidence lines and a link to the policy, so somebody reading the DT UI or the Trivy JSON sees the reasoning without opening the repo.

The automated part

You are still with me? Good, now the best part comes in :)

A policy repo that nobody feeds goes stale fast and it becomes pretty useless pretty fast. So there are six workflows around it. Only one of them writes to DT. Two of them write verdicts, into a draft PR, and none of them merges anything.

The week has a rhythm:

  • Monday night - the base images cascade
  • Three hours later - every app rebuilds on the new base
  • Tuesday morning - the weekly refresh, when all of that has landed in DT. It fetches every app from DT, regenerates the fixed lists, recompiles everything and opens one PR, with a summary posted to Slack
  • When that PR is merged - the fan-out: one triage run per flagged app
  • Every morning - the reconcile of DT with main, and half an hour later the daily digest
  • On every merge to the policy repo - a reconcile for the apps that changed

The weekly refresh

The body of that PR is readable because it groups the changes by cause. The groups are: apps that need a decision, meaning new findings with no verdict; new findings shared by three or more apps, which are said once instead of once per app - a base image CVE reaches every app in the same week, and in one refresh that was 410 lines of which 38 were distinct; new CVEs that existing component verdicts absorbed; dead verdicts, where the package left the image; verdicts that expire within 30 days; suppressed dependencies that now have a fix, which moves them from "suppressed" to "bump it"; and new entries that the secdb says are already fixed, where there is nothing to do.

New CVEs reach neither Trivy nor DT before this PR is merged. So merging it, even with no verdict changes, is still a decision: it publishes the new snapshot, and component verdicts extend over the new CVEs listed as absorbed. That section is the one a human has to read before pressing the button.

The gate on the policy repo

The PR gate on the policy repo itself is boring and strict: validate every policy, recompile every app and diff against the committed output, lint, run the tests. It is offline and needs no secrets. It is a required check with no bypass, for bots and for me.

The reconcile

Then there is the reconcile, the only thing that writes to DT. It runs on every merge that touches a policy and once every morning for everything. For each app it works out the desired set of analyses from the compiled statements and makes DT match. Every analysis it writes starts with a marker that says "this one belongs to the policy of app X". An analysis without the marker was set by a person in the DT UI, and the reconcile never overwrites it. It reports the pair as a conflict, fails and pings Slack. Either the decision moves into the policy where it has evidence and an expiry, or it gets cleared in DT. What it cannot do is live in both places quietly.

The reconcile also cleans up after itself. A verdict that was removed, expired or downgraded gets its analysis cleared in DT on the next run. Removal and expiry run unattended; only adding a suppression needs a human.

The daily digest

And finally the daily digest, which was goal number 8. DT's own notifications are terrible and fire once per finding per leaf before any policy applies, and nobody reads them. We replaced them with one Slack thread a day, or none on a quiet day. The digest takes everything visible today - no verdict, not fixed according to the secdb, latest versions only, architectures collapsed - and compares it with yesterday. Only new and resolved (package, CVE) pairs make it into the message.

The parent message has the counts by severity and by scope. Each severity gets a reply with a table: CVE, EPSS score, scope, package, installed and fixed version, the apps it hits and an action. The action is one of three. "bump" for an application dependency with a fix. "rebuild" for a Wolfi package the secdb has a fix for, which means do nothing, Monday takes it. And "triage" for everything else. Rows are sorted by EPSS, so the thing most likely to be exploited is the first thing I read with my morning coffee.

This is the parent message from this week, a morning with 1 new finding and 73 resolved. UNAS stands for unassigned: Chainguard advisories carry no CVSS score, so those findings are always shown, with EPSS as their only signal:

One detail I am happy about: the message is posted before the state is saved. If the post fails, tomorrow's thread contains today's news as well, instead of losing it.

The triage: where the LLM comes in

Now the part some of you scrolled down for. Who writes all those verdicts?

Writing a good verdict is real but also a very hard work. It means reading the advisory, looking at the image, looking at the source, finding out how the app is exposed and writing down evidence that somebody else can check. Multiply that by 90 apps and a few thousand findings and it is a full time job that nobody really wants. But it is also work with a very clear structure, and that makes it a good fit for an agent - but training one takes a lot of work (even if you pass "make no mistakes" πŸ˜‚ ).

So the triage is a Claude Code skill. Before I trusted it I ran the process a few dozen times, tweaked it a lot and compared its output with what really is inside the applications, to make sure the verdicts are correct.

And it is important that it never looks at a CVE in isolation. It takes the application as context first - what it does, how critical it is to us, whether it is visible to customers and how it is reached - and only then asks what is vulnerable and how that affects all of the above.

It started on my laptop: I would run it for one app, it would do the investigation and open a draft PR on the policy repo, and I would review it. Until last week that meant running it by hand for every flagged app, about 70 a week. Now the same skill runs headless in GitHub Actions.

When the weekly refresh PR is merged, a fan-out starts one triage run per flagged app, ten at a time, and each one ends in a draft PR. Nothing of the review work is skipped, it just runs on runners instead of on my laptop.

The rules it cannot break

The skill has rules it cannot break, and they are the reason I trust the output enough to review it instead of redoing it:

  1. It writes only to the policy repo, on a branch for that app. App repos and cluster repos are read-only. It never merges
  2. No not_affected without evidence. Two lines minimum, one from the shipped artifact, each with the commit or image tag
  3. A fix available means bump, never VEX. Dependencies with a fixed version go into a bump table, not into a suppression
  4. Scope follows the evidence. Whole-package argument means component, one code path means vulnerability
  5. Low confidence never becomes not_affected. Thin evidence becomes under_investigation for 30 days. Reachable, or loaded and not ruled out, becomes affected and stays visible
  6. It never drops an existing verdict silently. Every change is a line in the PR

What happens to each finding

Each finding goes through the same funnel. Already fixed according to the secdb? Skip. Go stdlib? That is a toolchain bump. Application dependency with a fix? Bump table. Everything else goes through a reachability check of three questions, and it stops at the first "no". Is the component loaded at runtime at all? Is the vulnerable function or feature reachable from our code? Can an attacker control the input to that path? Three times "yes" means an affected verdict and a row under Open risks in the PR.

Probes

The piece that makes the output reviewable is what we call probes. Every command whose output becomes evidence runs through a small wrapper that gives it a number and a plain sentence about what it shows. The PR cites it as [P7], and a collapsed comment on the PR has the command and its output behind that reference. A fact that nobody saw printed has no reference and has to be written as an inference. A normal run has twenty to forty probes.

The first four probes are the same for every app and are not run by the model at all. A script runs them before the agent's first turn: what the image starts and as which user, where the image is deployed and at which version, how it is exposed, and for every OS package with findings - who requires it, which programs load its libraries and what the entrypoint loads at start. That last one answers the first reachability question for every package at once, and it does so by reading files from the exported image without running anything from it. Image evidence outranks source greps, because the image is what runs.

The numbers in the PR (how many findings before, how many hidden, how many still visible) are never written by the model. mlvex counts them from the policy files.

The roll-up

When all runs are done, a roll-up lands as a comment on the refresh PR and as one line in Slack. It sorts the apps by what a person has to look at: needs judgment (new, changed or downgraded verdicts, undecided open risks), failed, blocked by somebody's open work on that branch, routine (every verdict kept its answer), and nothing to change. The groups are counted from the policy files too. Nothing in the roll-up is the agent's own words.

The first full fan-out flagged 74 apps and ran 67 of them. 53 needed judgment, 2 had nothing to change and 12 failed at the image pull, because the workflow guessed the wrong image path. 11 of those 12 passed the next day once the paths came from DT instead of from a guess.

What my week looks like now

All of that machinery exists so that the human part stays small and focused on important things. Here is what I usually do.

Every morning

Every morning there is the digest thread, or there is none and it is a quiet day. "bump" rows mean open or nudge the bump PR in the app repo; the fixed version is right there in the row. "rebuild" rows mean nothing to do, just check next week that they are gone. "triage" rows mean start a triage run for that app, today if it is HIGH or CRITICAL. A HIGH or CRITICAL on a public-facing app with a high EPSS is not something that waits for Tuesday. That gets triaged the same day, and if it is reachable it becomes an incident ticket, not a verdict.

Tuesday

Tuesday is the big day. I open the weekly refresh PR and read the section about new CVEs absorbed by component verdicts. For each one I open the advisory and compare it with the impact statement of the verdict. If it still holds, fine. If it does not, that app needs a review even if nothing else flagged it. Then I merge, which publishes the snapshot and starts the fan-out.

When the roll-up arrives I work it from top to bottom. For the "needs judgment" group I open each draft PR. The description is built so that I can decide from it alone: a "Needs your eye" section with at most five items, what the app is and how it is exposed, a before / after table by severity, the bump table with install commands ready to paste, and the open risks. I only open the comments when I doubt a verdict, and then I follow its probe reference to the command and the output. Routine ones I skim and merge. Failed ones I rerun or do by hand.

Bumps

Bumps deserve their own paragraph. A bump table in a merged PR is nobody's task. So before merging, one more command turns every bump list into an issue in our tracker, one per app, under that week's parent issue. A policy PR with a bump list is merged once the bump has an owner. And the bump is done when the app's bump list is empty, not when the policy merges.

When a verdict is wrong

If a verdict turns out to be wrong and it hides something reachable, the fix is the same as everything else: remove or change the verdict, merge, and the finding is back in DT within minutes and in the next PR scan immediately. There is no way to unsuppress something without a merge to main, and no way to suppress something either. That is deliberate.

Onboarding a new app

Onboarding a new app is three steps. Its PR workflow gets access to the policy repo, its build uploads SBOMs to DT (which every repo created from our templates already does), and somebody runs the first triage by hand. From then on the weekly refresh picks it up and the fan-out reviews it.

The challenges of running all of this

I managed to automate and plan a lot of this and make it work, but I do not want it to sound like it runs itself. There is a lot of complexity underneath. Base images, reusable workflows, DT, the policy repo, the CLI and the agent all have to agree with each other every single week, and keeping it that way takes time and a lot of effort.

Not everything is automated either. Base images have no single runtime behaviour to probe, apps that are scanned from source have no image to inspect, and the first triage of a new app is always done by a person.

Two agent runs on the same input can come to different verdicts for the same package. I have seen it happen. The human review of the draft is what catches it, and recording open risks as affected verdicts took away the largest source of it, because the next run now starts from a written decision instead of from zero. Through trial and error I've managed to significantly reduce a difference in output based on the same input but the output still needs checking.

A policy is a statement about the app as it was when the verdict was written, and apps change. If a PR adds image handling to an app whose libpng verdict says "nothing decodes images", the scan still hides libpng until the next review. The suppressed table in the PR comment is there for exactly this, but it only works when reviewers actually read it.

Getting everybody on board is its own kind of work. The PR merge gate is opt-in per repo for a reason: it makes sense to switch it on only when the visible count for an app is near zero, otherwise the gate blocks on noise and people learn to hate it. So it goes one repo at a time.

And then there is the long tail of small operational things. A new image version shows unsuppressed findings in DT for up to a day, until the next reconcile touches it. A burst of merges needs a full reconcile by hand afterwards. When an external database the fetch depends on has a bad hour, the weekly refresh has to be run again later. None of it is dramatic, but all of it needs somebody who knows how the pieces fit together.

Closing words

If I had to compress all of this into a few sentences: put everything on one base and rebuild it every week, so OS-level CVEs fix themselves. Keep an inventory, so you know what you ship. Put every "we can ignore this" into git with evidence and an expiry date, so ignoring something is a reviewed decision and not a click. And let the machine do the boring investigation, but make it show its work and never let it merge.

None of the pieces is new. Trivy, Dependency-Track, OpenVEX and Wolfi are all out there and free. The work was in wiring them together so the whole thing runs every week without somebody pushing it. I designed and built it end to end, from the base images and the reusable workflows to the CLI and the agent pipeline, and it was the most fun I have had at work in a long time.

That's it. If you made it this far, thank you for reading. I am happy to answer questions in the comments, and I am curious how others solved the same problem. If you are building something similar and want to compare notes, you can find me here: https://www.linkedin.com/in/igorhrcek/


r/kubernetes • • 1d ago

Is Linux Foundation Training Portal down? Getting Cloudflare Error 521

Post image
27 Upvotes

Hi everyone,

Is anyone else having trouble accessing the Linux Foundation Training Portal?

I'm trying to access the portal:

https://trainingportal.linuxfoundation.org/

However, I keep getting a Cloudflare Error 521 – Web server is down.

What's confusing is that the official Linux Foundation status page reports all systems as operational, including MyPortal:

https://trainingstatus.linuxfoundation.org/

I've encountered this error multiple times, even though the official status page shows no reported incidents.

Is anyone else experiencing this issue, especially from other regions?

Could this be an issue with the Linux Foundation's origin server or its hosting provider?

Thanks!


r/kubernetes • • 22h ago

how do you handle cluster version upgrades, and how many versions behind are you right now

12 Upvotes

every few months a new k8s version drops and the older ones go end of life pretty fast. upgrading means checking deprecated apis, addons, node pools, helm charts and so on, and it always seems to take longer than planned.

curious how others do it. do you upgrade in place or spin up a new cluster and move things over? any tools that catch deprecated apis before they bite you? and be honest, how far behind are you right now


r/kubernetes • • 1d ago

Open source plugin that shows the cost of each Argo CD application, from OpenCost

Post image
10 Upvotes

Hi all, I work at Octopus Deploy, and I'm one of the Argo CD maintainers. If you deploy with Argo CD and run OpenCost, this might be useful.

OpenCost shows cost per namespace, pod, or label, but application teams think in Argo CD applications and syncs. After a release, they kept asking me whether the sync made their application more expensive, and neither tool had a direct answer. So we built Cost Intelligence for Argo CD, an open source plugin (Apache 2.0) that adds a cost tab to each application in the Argo CD UI.

A few things that make devs' lives easier:

  • It splits the cost by application even when several applications share a namespace, using the resources Argo CD lists for each one instead of pod labels.
  • It measures each application after every successful sync, so the tab shows the change since the last sync.
  • It keeps a daily history in its own database, so the trend remains even after Prometheus no longer has those days.

It is compatible with Argo CD 3.4, 3.5, or 3.6 and OpenCost on the same cluster, and it measures only that cluster. It's an early release, so Helm values may still change between minor versions. We already have pull requests open from outside Octopus for Kubecost support and multi-cluster costs, so contributions are very welcome.

Repo: https://github.com/OctopusDeploy/cost-intelligence-argocd
Docs: https://cost-intelligence-argocd.readthedocs.io/en/stable/

I'd like to hear how you track cost per team or per application today, and what you'd want a tool like this to show.


r/kubernetes • • 1d ago

Kubernetes 1.38: Deep dive into new alpha features

Thumbnail
palark.com
91 Upvotes

The next K8s release will be released onΒ December 16th. Here's an overview of the 27 net-new alpha features currently planned for it. They include EvictionRequest API, DRA-aware preemption, workload-controlled swap, conditional authorization, security profile distribution via OCI artifacts, dynamic node-local ephemeral volumes, dynamic containers, per-container ulimits, and per-pod PID limits.


r/kubernetes • • 1d ago

List of Kubernetes CTF challenges

52 Upvotes

r/kubernetes • • 22h ago

Kubernetes dnsPolicy: Default is not the default

0 Upvotes

Kubernetes has four DNS policies. The one named Default is not the default: when dnsPolicy is omitted, Kubernetes uses ClusterFirst.

Default inherits the node's DNS configuration. If that resolver doesn't know your cluster domain, fully qualified Service names can fail while public DNS still works. This depends on your node resolver and DNS setup.

There is another way to get Default behavior: a hostNetwork pod with ClusterFirst falls back to it. Set ClusterFirstWithHostNet if that pod needs cluster DNS. The upstream CoreDNS manifest uses Default so the DNS server can use the node resolver.

To debug, inspect /etc/resolv.conf inside the pod and test a fully qualified Service name. A missing cluster search suffix can explain failures for short names, but it doesn't prove which resolver is in use or whether a fully qualified name will work. Cluster domains and custom DNS settings vary.

If an application pod doesn't intentionally need the node resolver, removing dnsPolicy: Default selects ClusterFirst. For hostNetwork pods, use ClusterFirstWithHostNet instead.

I wrote a longer guide with examples: https://www.catchkill9.dev/posts/dnspolicy-default-is-not-the-default.html


r/kubernetes • • 2d ago

how do you back up persistent volumes in k8s, and have you ever actually tested a restore

36 Upvotes

curious what people use for pv backups. velero, cloud snapshots, app level dumps, something else? and do you ever run a real restore drill or just trust it works.

also how do you handle stateful stuff like databases vs plain file volumes


r/kubernetes • • 2d ago

Consistent point-in-time backup across multiple DB

11 Upvotes

We run several k3s clusters (1 or 3 nodes, on VMs) in our factories, hosting an in-house production management app. It uses CNPG, MongoDB and RabbitMQ as an event bus.

Kasten K10 works fine for single-DB failures. But after a total failure we can't restore everything to the same point in time, because each backup is taken at a different moment, so the system comes back inconsistent.

We thought about VM snapshots, but everything online says that's a bad idea for DBs.

How do you handle this? Is it the classic "would be nice, but impossible"?


r/kubernetes • • 2d ago

Best practice for handling readiness probe while pods are shutting down

4 Upvotes

Hi, I'm curious about the best practice for handling readiness probing failures while a pod is shutting down, as those failures just add to the noise for telemetry.


r/kubernetes • • 1d ago

Periodic Weekly: This Week I Learned (TWIL?) thread

1 Upvotes

Did you learn something new this week? Share here!


r/kubernetes • • 2d ago

LibreChat in k8s prod

Post image
16 Upvotes

Hey everyone,

Has anyone tried getting all 5 tools up and running for a production environment? I have a requirement to support around 300 users, and everything needs to run on Kubernetes (k8s). From what I can see, only LibreChat itself can be installed via Helm as a proper componentβ€”getting the rest to work properly on k8s feels like a real headache.

How should I approach this? Should I just spin up a separate VM and install the remaining components via npm or Docker? Has anyone done this or seen a working setup/example?


r/kubernetes • • 2d ago

Small teams (under 10 engineers), do you guys use any oncall software? if yes then what ? or have you guys tried anything similar ??

0 Upvotes

i am just curious about small teams getting an on call software which would alert them of production incidents, but this can be sometimes pricey and not necessary. Still i would like to know if anybody uses them and looks specifically for what in that software.


r/kubernetes • • 2d ago

Periodic Weekly: Show off your new tools and projects thread

15 Upvotes

Share any new Kubernetes tools, UIs, or related projects!


r/kubernetes • • 3d ago

Hosted control planes: how do you handle customer PDBs and weird setups for patching?

22 Upvotes

Hey!

We host 100+ clusters for customers and internal departments on our own infrastructure, and we're currently working on improving the patching and maintenance experience the team.

Our biggest issue while patching is people creating deployments, CNPG clusters and more where they have PDBs that block drain. People have full admin to their clusters and can create whatever they want, and they usually do not think about how their deployments affect our maintenance tasks.

We just had a patching day and I have gathered a list of "trouble" clusters where I would reach out and ask them to adjust their changes, but ideally we'd either not allow PDBs of with 0 allowed disruptions (with exceptions such as CNPG primaries) or at least send a warning to them when something like that is created so we dont need to constantly monitor

Do any of you have any experience dealing with this?


r/kubernetes • • 1d ago

The devil made kubernetes

0 Upvotes

Gonna drop a realisation I had as a junior DevOps engineer.

Kubernetes is evil. Whoever made this has pure spite in their heart.

We need to go back to monoliths. Containers are an affront to God.

Yeah bro, everything needs certificates even though because what if somebody wants to pretend to be the istio sidecar. Oh yeah, everything needs to be logged btw. Also, make sure that NFS path works. Oh, your pod is restarting? Have you checked the logs? Oh, there are no logs?

These are not problems God intended man to have.

We used to put applications on servers and go home.


r/kubernetes • • 3d ago

Hardened container images or trimming our own, comparing RapidFort, Chainguard and Sysdig for twenty services

18 Upvotes

We maintain our own Debian base images for about twenty services in the cluster and the upkeep has crept to a few days a month. Security wants one vendor and the shortlist does three different jobs. Chainguard hands us prebuilt minimal images, RapidFort trims what we already ship based on what actually runs, and Sysdig watches workloads at runtime. Im not convinced one of them covers all three. If you run two of these together, was the overlap worth paying for?


r/kubernetes • • 2d ago

What's the best way to upgrade my Longhorn Helm install? How do I minimize risk to data, and do I need downtime?

4 Upvotes

Currently I run k3s with Longhorn 11.2.1 or something, and I see that there's an update to v12.x.x available that has several major bugfixes. My current setup only has Longhorn Engine V1 volumes so I don't think I'd need to stop any of them like the instructions say I'd need to for V2. Would there still be downtime?


r/kubernetes • • 3d ago

Piraeus vs Longhorn for Block Storage

46 Upvotes

Just recently I heard of Piraeus which provides block storage for Kubernetes.

https://piraeus.io/

The underlying tech is drdb which is proven for years.

We plan to use kube-virt, and I guess the performance of it is better than Longhorn, because it uses DRBD (Distributed Replicated Block Device).

I am curious, has someone tried Piraeus yet?

I know Longhorn has more features like RWX, but for my use case fast block storage for kube virt is all I need.

Please share your experience.


r/kubernetes • • 2d ago

Looking for n8n automation ideas for Kubernetes platform operations

0 Upvotes

Title: Looking for n8n automation ideas for Kubernetes platform operations

Hi everyone,

I'm working in a Kubernetes platform operations team and we're currently exploring ways to automate repetitive tasks using n8n.

We use Git for managing our Kubernetes configurations, YAML files and Helm charts. We also use Grafana for monitoring and ServiceNow for alerts and incident management.

I'm looking for practical ideas and real-world use cases where n8n could help reduce manual work in Kubernetes platform operations.

Some areas we're considering:

  • Automating Helm chart version checks and release note summaries
  • Reviewing GitLab merge requests and checking YAML configurations
  • Automatically generating change documentation based on Git commits and merge requests
  • Creating Kubernetes namespace and resource overviews
  • Automating recurring maintenance and administrative tasks

My questions:

  1. Are you using n8n in combination with Kubernetes?
  2. What tasks have you successfully automated?
  3. Are there any workflows that have saved your team significant time?
  4. Are there any interesting use cases that might not be immediately obvious?

I'd especially appreciate practical examples from people working in DevOps, Platform Engineering or Kubernetes operations.

Thanks in advance!