Before There Was SLSA

The most dangerous machine in your software isn’t the code you wrote — it’s the build that assembles it. Compromise the build and it signs your malware with your own name and ships it to everyone who trusts you, as a routine update. That is not a thought experiment: it’s SolarWinds, it’s xz, it’s LiteLLM. The industry finally has a framework for defending that machine — SLSA — and I’m glad it does. But I started building the defense in 2017, four years before the framework existed, because I had the problem before anyone had the word.

Two tools, both still around, both listed in awesome-go. gomason built, tested, signed, and published Go binaries from a clean workspace, signing each with a self-hosted key — a tiny on-prem CI that could tell you not just that an artifact was signed but who signed it. dbt, the Dynamic Binary Toolkit (no relation to dbt Labs’ SQL tool of the same name — theirs predates mine by a year, but I’d never heard of it; a binary toolkit and a data-transformation tool don’t collide much in the wild), did the other half: it fetched a tool, checked its checksum and signature against a truststore I controlled, and ran it only if everything verified — otherwise nothing ran at all. There was no specification to follow. Go modules didn’t exist yet (they shipped with Go 1.11 in September 2018); SLSA wouldn’t appear until 2021. I built them because I needed the guarantee — that what ran in production came from the source I believed, built by me, unmodified, and that the machine on the far end would refuse anything it couldn’t prove.

So this is a ground-up tour of software supply-chain security — what the attack really is, what SLSA grades, and the one property it deliberately left off its own ladder — and the self-hosted system I run in production today to reach that property, shown leg by leg with the real manifests. I am not going to claim I invented SLSA; I didn’t. The useful point is the opposite: the guarantee was never the framework. You can build its substance out of commodity parts the day you decide you need it — which is exactly what the need forces on you when the vocabulary hasn’t caught up.

You Do Not Write Most of Your Software

Start here, because everything rests on it. A typical program is maybe 1% code your team wrote and 99% code you assembled — open-source libraries, a compiler, a base image, a package manager, the CI system that glues it together. Every one of those was made by someone else, fetched from somewhere else, and run by machinery you mostly don’t control. That whole chain of people, parts, and machines that turns your source into the thing you ship is your software supply chain.

It is a supply chain in the literal sense — like the one that assembles a car from parts made by hundreds of suppliers — and it has the same weakness: you can inspect the finished car all day and never notice that one supplier swapped in a counterfeit brake line. The defect didn’t come from your factory. It arrived pre-installed, from a link upstream, with your name already on it.

That is why the attack follows the weakness. An attacker who can’t break your product directly goes after a link in your chain instead, because a poisoned link ships signed, packaged, and trusted to everyone who trusts you:

  • SolarWinds (2020): the attackers didn’t breach 18,000 organizations. They breached one build server and slipped malware in as the software was being built. Every customer installed a signed, official update. The source the developers wrote was fine; the build was compromised, and the signature vouched for the malware.
  • xz-utils (2024): a volunteer maintainer spent years earning trust on a tiny, nearly-universal compression library, then hid a backdoor in the release tarball — not even the public source — that would have handed much of the internet a remote-login bypass. Caught by luck, days from shipping broadly.
  • LiteLLM (2026): a hugely popular Python wrapper for talking to language models — the SolarWinds pattern again, now in the AI stack. The attackers didn’t go at it head-on. They poisoned Trivy — the open-source security scanner the project trusted inside its own build pipeline — rode that trusted tool into the build, and published backdoored releases signed with the project’s own legitimate credentials. By one tally, 2,500-plus organizations and more than 430,000 CI/CD pipelines pulled a credential-stealer as a routine dependency bump — cloud keys, repo tokens, Kubernetes secrets, straight out the door. The tool whose entire job was to catch bad code was the way the bad code got in.

Your usual defenses miss this by design. Firewalls, patching, “write secure code,” scan the finished artifact for known-bad — all of it assumes the enemy is outside trying to get in. A supply-chain attack walks in through the front door you built for your own code, as a trusted part of your own build. Scanning the output barely helps: a scanner matches known patterns, a tailored backdoor isn’t known yet, and the thing you’d scan was assembled by the very process that was compromised — you’re asking the fox whether the henhouse is intact.

The conclusion is unavoidable and it is the whole game: you cannot test integrity into an artifact after the fact. You have to secure the process that makes it — and be able to prove you did. Security is not a layer you add later; it is a property of how the thing is built, or it is absent.

That proof — tamper-evident evidence, produced by the build itself and checkable by anyone — is what SLSA is about. Not “trust that our build is clean,” which is exactly what SolarWinds’ customers did, but “here is the cryptographic receipt: this artifact came from this source, through this build.”

What SLSA Actually Is

SLSA — Supply-chain Levels for Software Artifacts, pronounced “salsa” — is an OpenSSF framework. It is not a tool, a scanner, or a product. It is a rubric: a graded description of the evidence that must exist before you are entitled to believe an artifact came from the build it claims. It grades a build by what it can prove, not by who ran it or how carefully they say they work. That reframing is the entire value — “trust us” becomes “here is the evidence, at this level; check it yourself.”

It splits the problem into two tracks, because two independent things go wrong and conflating them hides the gap:

  • The Build Track asks: did the artifact faithfully come from the inputs it names, and can the build lie about that? It secures the path from declared inputs to artifact.
  • The Source Track asks: are the inputs themselves what they claim — is the commit reviewed, attributable, protected? It secures the source before the build ever sees it.

They are orthogonal, and the boundary matters more than anything else in this post. A flawless Build Track on a poisoned commit faithfully builds, reproduces, and truthfully attests poison. “X built this from source S” stays true even when S is malicious. Build integrity is not source integrity. Everything below is Build Track; defending what’s in the commit — code review, two-person approval, branch protection — is a different kind of control, enforced on people and process, and I’ll flag it every time we touch the seam.

The Build Track levels, and — just as important — where each one still lets you down:

LevelWhat it requiresGo, concretelyWhat it stops, and doesn’t
L0Nothing.A plain GOPATH build: inputs ambient, nothing recorded — you couldn’t write honest provenance if you tried.No guarantee at all. Where most software ever shipped lives.
L1Provenance exists — a machine-readable record of how the build ran: inputs, builder, steps.Go modules. go.mod + go.sum pin and cryptographically record every dependency version, embedded in the binary (go version -m reads it back). “What built this?” finally has a checkable answer.Catches honest mistakes and drift. Unsigned and self-reported, so it stops no adversary — anyone can write or edit it.
L2Provenance is signed, by a hosted build service, not a laptop.That module built on a hosted builder that signs the result — GitHub artifact attestations, GitLab native provenance. (gomason did the signing half, with a self-hosted key, in 2017.)Adds tamper-evidence and a service identity. But the build still authors its own story — a compromised build signs a valid lie.
L3The build platform is hardened and the provenance is non-forgeable by the build itself — generated from what the platform observed, isolated from the build steps.The SLSA GitHub Generator builds your module in a separate workflow the build can’t influence — or the self-hosted proctor later in this post.The jump that matters: a malicious build can make a bad artifact but cannot forge the statement about the build.

Read that Go column top to bottom and the ladder is really a story about inputs: you can’t set foot on it until the build’s inputs are even knowable — a gift of the toolchain, not the platform — and every rung above L1 is about who then vouches for the record.

The intuition for L3 is a proctor. A proctor signs “I handed this student these questions in this sealed room and collected this exact answer sheet.” The student can write anything on the sheet — but cannot forge the proctor’s record, and cannot hold the proctor’s pen. L3 is the architectural move that takes the pen out of the build’s hand. Hold that image; the design later is just how you build a proctor.

And then — this trips up almost everyone — there is no SLSA Level 4. It existed in the v0.1 draft and was retired at v1.0, so anyone selling you “L4” is selling a rung that no longer exists. But the properties the old L4 carried didn’t vanish — they outgrew the ladder, and they are the ones worth chasing. It named three:

  • Hermetic (was required) — the build runs with no network, every input pre-fetched and pinned, so nothing can sneak in mid-build. Think go mod vendor with egress denied, or a Bazel/Nix sandbox. You’ll see it later in this post as a literal NetworkPolicy that denies the build pod all egress.
  • Two-person review (was required) — a second human approves every change before it merges (protected branches, required reviewers). Note the odd one out: this is about the source, not the build — Source Track, not Build Track — which is why v1.0 pulled it off the build ladder entirely.
  • Reproducible (was only encouraged) — identical inputs produce bit-identical output, on any machine, forever. Go hands you this almost for free (-trimpath, CGO_ENABLED=0, a pinned toolchain); Debian rebuilds most of an entire OS bit-for-bit to prove it at scale. This is the one that lets a stranger rebuild your artifact and catch a forgery you never see — the same determinism that lets a blockchain’s nodes independently recompute a result and agree on it without trusting each other (more on that below).

Two of those three are build-track properties, and the system in this post delivers both: hermeticity as that enforced network policy, and reproducibility as an independent rebuild anyone can run against your published recipe. The third — two-person review — sits in front of all of it as human process. The part that should make you squint is that the one property that actually buys you independent verification was the optional one. That is not an accident, and it is the next section.

The Guarantee Was Never a Level

Here is the part worth slowing down for — the squint from the end of the last section. Of the old L4’s three properties, the two it required were the ones it could check: hermetic and two-person review. Reproducibility it merely encouraged — best-effort, never gating. The optional one was the only one that actually reduces the trust you are forced to place in anyone.

Look at what L3 — the summit of the real ladder — actually buys you. “The build couldn’t forge the statement about itself.” Good. But it still bottoms out at trust the builder. You trust the proctor’s pen, the platform, the kernel. Every preventive control, followed down far enough, ends at a signing oracle you must trust, and an oracle can be spoofed at its edge no matter how many boxes you nest it in. Key in a file becomes key in an HSM becomes HSM behind a vault behind mTLS — each layer hardens the door, none removes it. There is always an outermost door.

The only qualitative escape from “trust a door you can spoof” is to stop trusting the builder and recompute the bytes. Make the build a deterministic pure function — f(pinned source, pinned toolchain) → identical bytes, every time, everywhere — and now anyone can rebuild from the same inputs and check that they get the same digest. You have traded faith in a party for math anyone can run. One honest rebuilder catches a forgery. That is reproducibility, and it is the only layer in this whole stack that doesn’t end at an oracle.

So why did SLSA leave it off the ladder? Not because it’s unimportant — because it’s un-levelable. A level has to be both attainable on an incremental ladder and verifiable from the artifact alone. Reproducibility is neither: one stray timestamp, file order, or locale breaks it, so a rung gated on it is a cliff few can climb; and it isn’t checkable from the artifact, because it only pays off when someone else re-derives the digest on their own hardware — an act across independent parties that no field in the provenance can capture. SLSA optimized the median — an honest ladder that moves the industry from “nothing” to “non-forgeable provenance.” That is the right call for a framework, and it is simply not the same goal as owning the guarantee.

So target the property, not the badge: hermetic, reproducible, non-forgeable builds, rooted in trust you own and can independently verify. That is “L4” in the only sense that ever meant anything.

I Built the Bottom of This Ladder in 2017

Which brings me back to those two tools, because they map onto this ladder with a precision I find a little funny in hindsight.

gomason came out of the most aggressively anti-testing shop I have ever worked in. Developers built on their laptops and shipped whatever came out; it worked for some of them and not for others, and the whole idea of continuous integration — a clean, shared, reproducible build that doesn’t care whose machine you’re on — was openly shunned, for reasons I genuinely never understood. Automated testing wasn’t merely skipped; it was scorned. My own manager put it to me word for word: “I want you to stop externalizing your anxiety about the quality of your work by writing tests, and instead internalize it and simply write code that works.”

The clean-room idea came first, and I built it under the radar — a way to build and test my work in a fresh, isolated workspace, on my own, without anyone deciding I was wasting time. That shape is still gomason’s: it builds in a clean GOPATH, sealed off from whatever is lying around on the host — hermeticity and reproducibility, because the build has to be the same build every time, not a thing that happened to work on one laptop on one afternoon. Then it does what hosted CI of the day mostly didn’t — it signs the artifact with GPG using a self-hosted key, one I hold rather than the CI vendor’s, and publishes the binary, its signature, and its checksum together. A hosted CI could sign bits, but it couldn’t tell you who authored them; the bytes just arrived and got stamped. gomason establishes two separate facts: someone with credentials uploaded this, and it was signed by a key whose custody is controlled rather than the vendor’s. That key can be a person’s — a human personally vouching for what they shipped — but the general case is the build system itself holding the key and signing the provenance it emits. Either way the signature attests to origin, not just that bytes showed up: authenticity of origin versus mere delivery — the exact distinction SLSA’s provenance predicate would formalize four years later.

I had solved the problem in theory, inside the company. They had no interest in a general version — so the day they walked me out, I sat down and started writing one. gomason’s first commit is dated that day: the day of the IPO, and the day I was let go. dbt — the verify-at-use half — followed inside the fortnight.

The timing was almost too good. I spent that last morning writing documentation — for the systems I was leaving them, so the next person could actually run what I’d built — because I knew the meeting was coming and there was nothing better to do with the hours. HR kept pushing it back, because the manager who was supposed to run it never came in: he’d been up all night hand-hacking bugs in his own untested code. So they kept moving the meeting, and I kept writing docs — chuckling, a little, as the IPO price slid below the strike and the “millions in stock options” quietly became paper worth less than nothing to exercise. Walked out of a shop that treated the guarantee as a character flaw, by a manager drowning that very morning in its absence, I spent my last hours making sure the people letting me go would be fine without me. Often you can only control how you handle a situation. I think I handled it well. Nearly everything I’ve built since — reproducible, signed, verified, and proven — started that afternoon, and all of it is a long argument with that one sentence of his.

dbt was the other end: verify-at-use. Run a tool through dbt and it fetches the binary, computes its SHA-256, checks it against the published checksum, verifies the GPG signature against a truststore of keys I had decided to trust, and only then executes — replacing itself in the process table so the verified child inherits the arguments. If any check fails, it stops cold. No unverified code ever runs. It even self-updated the same way: verify the new dbt before handing control to it.

Line those up against the rubric that didn’t exist yet:

  • gomason produced a signed artifact with author provenance and a published checksum — the substance of what SLSA would call Build L1 (a record of how it was built) and L2 (signed, by a build tool rather than by hand).
  • gomason built in a clean, isolated workspace aiming at deterministic output — the substance of the reproducibility the framework would later judge too hard to put on the ladder at all.
  • dbt refused to run anything it couldn’t verify against a trust root I owned — verify-at-use, which isn’t even on the Build Track. It’s a separate idea the whole design below leans on, and I’d shipped it in 2017.

None of this was prescient. I wasn’t predicting a framework. I had written that same year about identity and trust not stopping at a cloud provider’s edge, and I was building secret management around the same conviction: that you verify, you don’t assume, and you own your roots. gomason and dbt were that conviction pointed at binaries. The industry arrived at the same place by 2021 and handed it a clean vocabulary — which I’m glad to have, because it’s a good vocabulary. But the guarantee came first, and it came from the need.

That’s the whole flex, and I’ll leave it there: the need predates the vocabulary, and when you have the need you can build the answer out of gpg, a checksum, and a clean workspace. The rest of this post is what that same conviction looks like built to the top, today, on a platform I own.

The System, Leg by Leg

This is a self-hosted build system that reaches the property — hermetic, non-forgeable, reproducible, rooted in a trust you own — on Kubernetes with Tekton. It is not a thought experiment; it runs in production today. The manifests below are the real shape, with internal names swapped for placeholders (example.com, registry.internal.example.com) where your own go.

Why self-hosted at all? Because managed CI doesn’t solve build integrity, it relocates it. “SLSA L3 on GitHub Actions” means the isolation, the OIDC issuer, and the signing infrastructure belong to a vendor — a root you cannot read, pin, patch, or take offline. For most software that’s a fine trade. When you must own the guarantee — regulated, classified, air-gapped, or simply unwilling to make a vendor’s promise part of your integrity — it’s disqualifying. Self-hosting doesn’t eliminate trust; nothing does. It makes the root yours: small, examinable, hardware-backable, air-gappable. You trade a small basket someone else won’t let you look inside for a large basket you watch yourself.

One build is a relay, where each principal does its own job and cannot forge another’s:

source-controller   clone + verify commit signature → checksummed source artifact
      │
fetch-verified       pull artifact, FAIL CLOSED unless digest matches → read-only workspace
      │
hermetic-build       no network, non-root, no token, gVisor → image TARBALL on the workspace
      │
publish-and-digest   push the tarball, capture the content-addressed digest of exactly those bytes
      │              (a trusted step that is NOT the builder — so the digest is not build-authored)
      │
sign-slsa            assemble SLSA provenance from the trusted steps' results, sign image + provenance
      │              with a key the build pod can never reach
      ▼
verify-at-use        admission checks the bundle OFFLINE: signature valid? builder + source match? → admit

Isolation and Hermeticity

The build runs untrusted code — your dependencies alone guarantee that — so it must be unable to touch the control plane, other builds, or the signer. Ephemeral per-run pods; non-root, read-only rootfs, all capabilities dropped, no service-account token; and for genuinely untrusted builds, a real sandbox (gVisor or Kata) so a kernel exploit can’t break out to the node.

The two controls that carry the weight are hermeticity and where the source comes from. Hermeticity is a NetworkPolicy that denies the build egress to everything:

# The build leg can reach NOTHING. No `go get`, no `git clone`, no `curl` — so every input
# had to arrive through the trusted fetch leg, and the build cannot exfiltrate.
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: build-deny-egress
  namespace: builds
spec:
  podSelector:
    matchLabels:
      app.kubernetes.io/component: build
  policyTypes: [Egress]
  egress:
    - to:   # cluster DNS only, so tooling doesn't hang on lookups — no data path out
        - namespaceSelector:
            matchLabels: { kubernetes.io/metadata.name: kube-system }
      ports: [{ protocol: UDP, port: 53 }, { protocol: TCP, port: 53 }]

This turns “hermetic” from a wish into an enforced property, and it is the precondition for reproducibility: a build that can’t reach the network can only consume what was handed to it. The source is handed to it by a controller outside the build — Flux’s source-controller — which shallow-clones to a pinned tag and commit and refuses to produce an artifact unless the commit is signed by a trusted key:

apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata: { name: app-source, namespace: builds }
spec:
  interval: 5m
  url: https://gitlab.internal.example.com/team/app
  ref:
    # The commit is the cryptographic pin — it fixes the exact bytes, deterministically.
    # The tag rides along so source-controller can shallow-clone to it instead of walking
    # history (less load on the reconciler) and so a human can read what's deployed at a glance.
    # Never add a branch next to a tag and commit — three refs confuse the resolver.
    tag: v1.4.2
    commit: 3f8a1c9e2b7d6540a1b2c3d4e5f60718293a4b5c
  verify:                     # the control that makes it trustworthy, not merely pinned
    mode: HEAD
    secretRef: { name: trusted-git-signers }   # allowed OpenPGP public keys

The build never runs its own git clone, so it cannot substitute its source. (Verifying the signature is delivery and author integrity; vetting what’s in the commit is the Source Track, and still yours.)

Non-Forgeable Provenance: Building the Proctor

This is the heart of L3, and the part everyone gets subtly wrong. The build does not write its own provenance. A trusted leg outside the sandbox does — from what the trusted steps measured, not what the build reported.

The build has no signing key and no registry credential. It emits an image tarball and stops. Then a publish step — a trusted tool image that is not the builder — pushes the tarball and records the content-addressed digest the registry assigns to exactly those bytes. Then a sign leg assembles the SLSA provenance from the trusted results — the measured digest, the source the fetch leg verified, the cluster’s own builder identity — and signs it with a key the build can never reach.

The one field that needs care is the subject — “which artifact does this vouch for.” The sign leg does not re-hash the image; it transcribes a digest from a result, so the question is whose result. It must be the publish step’s, never the build’s. Drop that discipline and a compromised build can report the digest of an image it never honestly built and get valid provenance signed for it. Establishing the subject in a trusted step is what makes the statement non-forgeable — it is the whole L3 claim.

# the sign leg — a trusted Tekton step with its own identity and no build code.
# $(params.image) is the publish-established subject: repo@sha256:…
cosign sign   --key hashivault://provenance-signing-key --new-bundle-format \
  --tlog-upload --rekor-url https://rekor.internal.example.com --yes "$(params.image)"
cosign attest --key hashivault://provenance-signing-key --new-bundle-format \
  --type slsaprovenance1 --predicate /scratch/provenance.json \
  --tlog-upload --rekor-url https://rekor.internal.example.com --yes "$(params.image)"

The student writes the answer sheet; the proctor signs “I collected this sheet from that sealed room.” You attest the interface — in: source and params; out: digest — which is observable from outside the sandbox without trusting anything inside it. (There is one more artifact this leg doesn’t touch — the SBOM — produced and signed in its own leg under its own key, which we come to below.)

The Obvious Design That Doesn’t Work

I’ll tell on myself here, because it’s the most instructive part. In Tekton, the standard way to emit signed provenance is Tekton Chains — a controller that watches finished runs and signs provenance out of band. It is the obvious choice, and it is the one I reached for first.

It cannot satisfy an air-gapped verifier, for two reasons that only surface when you actually try to verify what it produces. First, format: Chains signs in a mode with no embedded transparency-log inclusion proof, so verification has to call the log at check time — exactly the phone-home an air-gap forbids. The offline gate needs a self-contained bundle that carries its own inclusion proof (cosign’s --new-bundle-format), and Chains doesn’t emit one. Second, timing: Chains runs asynchronously, after the pipeline, so it can’t be a synchronous leg the same run depends on.

So the signer became an in-pipeline cosign leg that assembles the predicate from the trusted steps’ results and emits a bundle that verifies offline. The cost was Chains’ automatic, richer predicate — I now build it by hand from the trusted results. The design that is correct on a whiteboard and the design that survives the air-gap requirement were not the same design. That gap — between what a system can do in principle and what it does under a real constraint — is where most architectures quietly fail, and the only way to find it is to build the thing and verify its output. A design you haven’t verified is a hypothesis.

Signing and Key Custody: Know the Root

Follow any control down and it ends at a key you must trust. That is your root. Name it honestly, understand what its fall would cost, and shape it deliberately — small, owned, hardened — rather than large, rented, and assumed. Do not let cosign quietly root you in public Sigstore; if you want keyless, run your own Fulcio and Rekor.

Key custody is a real fork. The low-friction path is a Vault/OpenBao Transit key (hashivault://…), which the ecosystem already speaks — but be honest about what it is: Transit signs in the key store’s memory. The key is encrypted at rest, but to sign it’s decrypted into RAM, so a root compromise of the host can read it. Protected at rest, reachable in use. For stronger custody, put the key in an HSM and sign in hardware — the private key never leaves the device — by pointing the same cosign signer at a pkcs11:// key. Because the signer is cosign either way, moving to hardware is a change of the key URL, not an architectural rewrite.

Two more invariants. Separate the capabilities: the provenance key and the SBOM key are different keys, so no single compromise forges both; and the parts that merely move code — the source fetch, the admission gate — hold no signing key at all. And an HSM stops key extraction, not a spoofed connection to the signer, so pair whichever custody you pick with short-lived signer credentials, mTLS, and a transparency log of every signing operation.

Reproducible Builds: The Keystone

Everything above still ends at trusting an oracle. This is the only layer that doesn’t — the reason the last section called reproducibility the real prize.

Make the build a deterministic pure function; hermeticity is the precondition. Then have N independent rebuilders, on independent infrastructure, re-derive the digest. Now you don’t need the builder to be honest — you need not every rebuilder compromised and colluding. One honest rebuilder catches the forgery. And because the build is deterministic, a disagreement is adjudicable, not a standoff: re-run it, get ground truth, unmask the liar. That even defeats the obvious denial-of-service — a malicious “mismatch” is refuted by anyone who can compute the one correct answer.

There’s a familiar shape here. This is the bet a blockchain makes, minus the expensive half. A blockchain is a deterministic state machine replicated across parties who don’t trust each other — agreement comes from independent recomputation, not authority — and it leans on exactly the determinism discipline reproducible builds do, fighting the same timestamp-and-ordering gremlins. The transparency log underneath (Rekor, Go’s checksum database, Certificate Transparency) is literally the ledger: append-only, Merkle-proofed, monitored for forks.

But a blockchain needs a consensus algorithm and an honest quorum because “which transaction came first” has no truth outside the protocol’s vote. A build has a truth outside the vote: rebuild it. The right digest is a fact, not a ballot — so one honest rebuilder settles any dispute, and you keep the accountability (sign and log every verdict; a provably-false “mismatch” indicts the signer) while dropping the quorum entirely. You borrow blockchain’s distrust-by-default and its append-only ledger, and skip the token and the global vote — because a build has the one thing a blockchain spends all that machinery to manufacture. I’ve written separately about what blockchain actually offers an infrastructure engineer; this is the cleanest instance I know.

And honestly, this is how open source should be built. The source is already public; the build recipe can be too — there is nothing to hide in either. If the community made reproducible, adjudicable builds a norm the way blockchains made replicated, independently-recomputable state a norm, then “trust the maintainer’s binary” would give way to “anyone can rebuild it from public source and prove it matches, and one honest rebuild settles any dispute.” That is a far sturdier foundation for trusting open source than the one we actually run on today — which is mostly faith that the artifact on the mirror came from the tag on GitHub. That faith is exactly what xz and LiteLLM turned against us. We already publish the source; publishing a reproducible recipe and logging the expected digest is the small remaining step, and it would let the whole ecosystem verify itself instead of trusting it.

The honest floor: reproducibility catches a compromised builder, not a compromised thing all builders share — Ken Thompson’s Trusting Trust, a backdoored compiler that reproduces perfectly. The answer there is diversity at the root: diverse toolchains and hardware, shrinking the shared trusted base to the smallest, most-scrutinized thing. Trust never reaches zero; you push it down until betrayal needs broad collusion and shows up in a digit.

And “independent” means who holds the keys, not whose code it is. You can publish the entire design — the recipe, the expected digest — and it gives no one a way to tamper with a verifier they run on their own hardware with their own keys, because the security lives in the keys they hold, not in the secrecy of the design. (That’s Kerckhoffs’s principle, pointed at builds.) Hand the verifier to a party you’ve deliberately put beyond your own reach — your IT department, an accreditor, the customer — and you get genuine independent verification even though you designed the whole thing. This is gomason’s clean-room instinct taken to its logical end: a build that is a function, plus a signed, append-only log of its (source → digest) claims that anyone can check. It is where “trust the builder” finally becomes “verify the build.”

SBOM and Verify-at-Use

Provenance attests origin; an SBOM records contents. But a list of contents proves nothing by itself — anyone can write one, and a malicious image ships a pristine SBOM. What turns the list into evidence is how it’s made and bound: generated at build time from the observed dependency graph (for Go, straight from go.mod/go.sum, so it’s exact), underwritten by hermeticity so it’s complete, and signed and digest-bound under a separate key so a trusted identity vouches that this list is for this artifact. Provenance and SBOM are two links of one chain: provenance without an SBOM is authenticity blind to contents; an SBOM without provenance is a forgeable text file. (Whether a listed component is vulnerable is the policy gate’s job — cataloguing is not vetting.)

Concretely, that’s one more leg and one more cosign attest — generate the SBOM from the module graph, then sign it under a key that is not the provenance key:

# generate it from the Go module graph — authoritative, read from go.mod/go.sum,
# NOT scanned off the finished image (a scan misses statically-linked and vendored deps).
# this step holds no key and needs no token.
cyclonedx-gomod app -json -output /scratch/sbom.cdx.json

# sign it as a CycloneDX attestation bound to the same image digest — under the SBOM key,
# a different key from the provenance signer, so one compromise can't forge both halves.
cosign attest --key hashivault://sbom-signing-key --new-bundle-format \
  --type cyclonedx --predicate /scratch/sbom.cdx.json \
  --tlog-upload --rekor-url https://rekor.internal.example.com --yes "$(params.image)"

That is the third attestation hanging off the one image digest — provenance, SBOM, and the bare image signature — each independently signed and independently verifiable. Separate keys are the whole point: no single stolen key yields both “forge the build story” and “forge the parts list.”

And all of it is wasted if the cluster will still run an image this pipeline didn’t produce. The last link is enforcement at admission — the same verify-at-use discipline dbt applied to binaries in 2017, now applied to containers by the cluster’s own gate:

apiVersion: policies.kyverno.io/v1alpha1
kind: ImageValidatingPolicy
spec:
  failurePolicy: Fail                                  # can't verify → DENY (fail closed)
  matchImageReferences:
    - glob: "registry.internal.example.com/*"          # your registry only
  validations:
    # (1) authenticity — signed by YOUR key, present in YOUR Rekor (trusted root inlined, checked offline)
    - expression: "variables.imgs.all(i, verifyImageSignatures(i, [attestors.provkey]) > 0)"
    # (2) provenance exists, signed by the same key, and says the right things:
    - expression: "variables.imgs.all(i, extractPayload(i, attestations.provenance).predicate.runDetails.builder.id == 'https://oidc.your-cluster/...')"
    - expression: "variables.imgs.all(i, extractPayload(i, attestations.provenance).predicate.buildDefinition.externalParameters.source == 'your-repo')"
    # (3) an independently-signed SBOM exists, under a SEPARATE key
    - expression: "variables.imgs.all(i, verifyAttestationSignatures(i, attestations.sbom, [attestors.sbomkey]) > 0)"

A valid signature alone is not enough: the provenance predicate must say your builder built it from your source. The trusted root is inlined in the policy and the bundle carries its own inclusion proof, so the check runs offline — nothing has to be reachable for an image to be admitted, which matters enormously when the thing you’re admitting might be part of the verification path. Verification intrinsic to the point of use beats a CI checkbox, because it never assumes the pipeline was honest.

Reproducibility Is a Language Decision

Everything above — the gate, the proctor, admission, verify-at-use — is language-agnostic. L3 is a property of the platform, not of whatever compiled the artifact, and every serious toolchain now ships a lockfile, so L1 through L3 are within reach whatever you write in. What varies — enormously — is the property that actually buys independent verification: reproducibility. And it runs the whole gamut, from “a couple of flags” to “categorically impossible.”

At one pole is Go — no accident the language I reach for on purpose, in 2017 and now. The toolchain resolves the dependency graph statically, pins it by hash, and with -trimpath, CGO_ENABLED=0, and a pinned toolchain emits byte-identical output on any machine. Reproducibility is nearly free. At the other pole is the modern JavaScript build — Next.js, webpack — where the bundler is non-deterministic by design: build IDs, chunk-hash ordering, and minifier nondeterminism mean two builds of the same commit don’t produce the same bytes, vendored or not. There, reproducibility isn’t hard — it’s unavailable. You can rebuild a thousand times and never catch a forgery, because your own honest rebuilds don’t even agree with each other.

LanguageReproducible buildEffort above L3
Goby construction — -trimpath, CGO_ENABLED=0, pinned toolchainnear-zero
Rustyes — --remap-path-prefix, SOURCE_DATE_EPOCH, pinned toolchainlow
Java / Python / Rubyretrofittable; a native C extension inherits C’s whole problemmedium
C++possible in principle (Debian rebuilds an OS bit-for-bit), but needs a pinned, hermetic build system (Bazel, Nix)high
Next.js / webpackno — non-deterministic bundler by designreproducibility off the table

You’ll hear, in the AI era, that language choice no longer matters — the model writes whatever you point it at, so pick anything. Maybe, for throwaway glue. It matters here. L3 is free everywhere, so stop arguing about the level and argue about whether you need reproducibility — real independent verifiability. If you do, the language decides it for you: in Go it’s a flag, in Next.js it’s a research project that never terminates. For a front-end you can’t rewrite, ship it at L3, lean harder on the controls that remain — isolation, the signed SBOM, verify-at-use — and be honest that independent reproduction isn’t on offer for it. Don’t tell a regulator a next build is something a third party can re-derive. It isn’t.

And the decision doesn’t stop at reproducibility. Go and Rust both hand you reproducible builds cheaply, but they are not interchangeable. Go ships a runtime — a garbage collector and a scheduler — that makes a great many things faster and easier to write, and it plugs straight into the richest observability ecosystem in the industry: bolt on the Prometheus client or the OpenTelemetry SDK and you get a /metrics endpoint and distributed tracing almost for free, because the cloud-native stack is written in Go. The price is that the runtime travels everywhere the binary goes. Rust carries no runtime and produces leaner binaries — but you build more of that instrumentation yourself; what’s a one-liner in Go is real work there.

So “Rust is smaller” is not, by itself, a reason. Leanness only matters where the run environment makes it matter — and you have to actually know the environment and its real needs to say whether it does. On a server, a smaller binary rarely pays for the ecosystem you gave up. On a system-on-a-chip it might. On a satellite it might — though I’m told Apple runs Kubernetes on their satellites, and if true, that’s Go up there, not Rust. So before you reach for the leaner, harder language, answer the question honestly: if Go and k8s are good enough for a spacecraft, does your service really need Rust? C++? Maybe it does — but defend that with the real constraints, not a reflex that smaller is better. I’m not saying you’re wrong; I’m saying know why. The choice is real, with real consequences. Choose wisely.

Verify Continuously, Forever

One more move, and it’s the one that keeps the whole thing honest. Run the entire chain — fetch, build, attest, verify — on every non-production build, forever, as a standing acceptance test of the process itself. Point a build at a moving branch and it rebuilds on every commit, so the question “does our supply chain still work end to end” is answered continuously, not at audit time.

This is the same discipline as asserting your contract continuously in production rather than trusting a green checkmark from deploy day. Code correctness is a deploy-time property; the health of a running system — and a build pipeline is a running system — rots at runtime unless something keeps checking. It’s also the top of the climb from manual to automated to autonomous: the machine doesn’t just build, it continuously proves it still builds correctly, and it pages a human only when the proof fails. That’s running a system, not writing code — the deliverable isn’t the pipeline, it’s the continuously-demonstrated guarantee the pipeline produces.

One honest boundary, since it’s the obvious next question: this secures producing a trustworthy artifact. Approving and promoting that artifact through environments — who may release what, where, and how the record stays coupled to reality — is a different discipline built on the same rails. That’s its own story, and I’ll tell it once I’ve built and proven it rather than before.

The Need Predates the Vocabulary

Trust never reaches zero — every control relocates it. The goal is a root that is small, owned, hardware-backable, split across separately held keys, and transparent, wrapped in reproducibility so the root never has to be trusted blindly. Hold the root yourself, run independent verification on infrastructure you control, and the strongest thing you can say about an artifact stops being “a party I trust signed it” and becomes “anyone can rebuild it and get the same bytes — here’s the log.” That is the highest assurance there is, and no vendor can hand it to you. You build it.

I’ve been building toward that sentence since 2017, with a clean GOPATH, a gpg key, and a tool that refused to run anything it couldn’t verify — not because I’d read a rubric, but because I needed the guarantee and there wasn’t one to read. The framework showed up four years later and named it, and the naming is genuinely useful. But I’d keep the order straight: the vocabulary didn’t create the need, and it won’t build the controls for you. The need comes first. If you have it, you already know — and you can start building the answer today, out of parts that have been lying around since before anyone called it a supply chain.