Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Why should a company care about reproducible builds and build provenance, and how much would you invest in them?

Reproducible builds let anyone verify that the binary we deploy matches the source we reviewed, which protects against a compromised build system, and build provenance, described by frameworks such as SLSA and recorded as signed attestations, tells us how and where each artifact was built. How much to invest depends on risk: regulated or widely distributed software justifies more. A sensible path starts with hermetic CI, pinned tools, signed artifacts and provenance, treats full bit-for-bit reproducibility as a later step, and counts the simpler incident response and audits as part of the return.

Why this question is asked

Most companies secure their source code with reviews and their production with firewalls, but the build system in between is often trusted blindly. Attacks on build infrastructure, such as the SolarWinds compromise, showed that an attacker who controls the build can ship malicious code that no code review ever saw. Interviewers ask senior leaders this question to see whether they can explain a technical control in terms of risk and size the investment sensibly instead of all or nothing. In this answer, we will see the threat these practices address, explain provenance and SLSA, decide how much to invest, lay out a staged plan, and look at the everyday benefits that help pay for it.

1The Threat: Trusting the Build System

Between a reviewed commit and a running service sits the build: a CI agent checks out code, downloads dependencies and plugins, compiles, packages and publishes. Each step is a place where an attacker, or an accident, can change the output. A compromised CI agent can inject a class into the jar; a poisoned plugin can modify bytecode; a stolen publishing token can upload an artifact that was never built from our repository at all.

Code review and source scanning cannot catch any of these, because the source is clean. What we need is a way to answer two questions about any artifact: where and how was it built, and does it really correspond to this source? Provenance answers the first, and reproducibility answers the second.

Step throughWhere an artifact can be tampered with
  1. Reviewed commitcode review and scans protect this step
  2. CI checks out and resolves dependenciespoisoned dependency or plugin
  3. Compile and packagecompromised agent injects code
  4. Publish to the repositorystolen token uploads a fake artifact
  5. Deployprovenance check: built by our pipeline from this commit?

5 steps in order. Play them, or step through them one at a time.

2Provenance and SLSA

Build provenance is a signed statement produced by the build system that says: this artifact, with this hash, was built from this repository and commit, by this builder, with these parameters. If it is signed with a key the attacker does not control, typically through Sigstore or the CI platform's own attestation service, we can verify at deployment that an artifact came from our pipeline and not from someone's laptop or a stolen token.

SLSA (Supply-chain Levels for Software Artifacts) is a framework that describes how trustworthy a build is in levels. In SLSA 1.0's build track, level 1 means provenance exists, level 2 means the build runs on a hosted platform that signs the provenance, and level 3 means the build platform is hardened so that builds cannot influence each other or tamper with their own provenance. The levels give us a shared vocabulary and a path, rather than a vague goal of being secure (check the current SLSA specification, which continues to evolve).

3How Reproducibility Adds to Provenance

Provenance tells us what the build system claims. If the build system itself is compromised, its claims may be false, even though they are correctly signed. Reproducibility removes that single point of trust: if a second, independent builder produces the same bytes from the same commit, then the first builder did not inject anything, because any change would show up as a different hash.

That makes reproducibility the strongest control, but also the most expensive. Getting a Java build to identical bytes needs fixed timestamps, stable file order, pinned toolchains and versions, and no build-time values in generated files, and getting a container image there takes more work still. For most companies it is a goal for the most critical artifacts, not a day-one requirement.

4How Much to Invest: Decide by Risk

The right level depends on what a compromised artifact would cost and how many people it would reach. Software that is distributed to many customers, such as a library, an SDK or an on-premises product, multiplies the damage of a compromise, so attackers target it, and customers and regulators increasingly ask for SBOMs, signatures and provenance. Regulated systems in finance, health or government have audit requirements that provenance answers directly. An internal tool used by twenty people carries less risk, and basic controls are enough.

Matching investment to risk
SoftwareRisk if tamperedSensible target
Internal tools, low impactLimited to the companyHermetic CI, pinned tools, signed artifacts
Customer-facing servicesData and service exposurePlus signed provenance, verified at deploy
Regulated systemsLegal and audit exposurePlus hardened builders, retained attestations
Distributed software, SDKsEvery customer affectedPlus bit-for-bit reproducibility, rebuilt

5A Staged Plan

The first stage gives the most value for the least effort. Hermetic CI means builds run in clean, ephemeral environments with pinned images and declared inputs only, so nothing from a previous build or a developer's machine leaks in. Pinned tools means exact versions of the JDK, Maven or Gradle wrapper, plugins and dependencies. Signed artifacts and provenance means the CI platform signs every artifact and produces a provenance attestation, for example with Sigstore cosign or the attestation features many CI platforms now provide, and deployment verifies the signature.

The second stage enforces the checks: production deployments are rejected unless the artifact has valid provenance from the expected repository and builder, and publishing credentials are available only to the release pipeline. The third stage, for the highest-risk artifacts, adds bit-for-bit reproducibility with an independent rebuild that compares hashes. Each stage has a measurable outcome, such as the share of production artifacts with verified provenance, which is what we report.

6The Everyday Return: Incident Response and Audits

These practices pay off outside attacks too. When an incident asks which build produced the running artifact and from which commit, provenance answers instantly, which shortens debugging and post-incident reviews. When an auditor asks how we know production code was reviewed, we can show that every deployed artifact has provenance tying it to a reviewed commit, rather than collecting screenshots. Pinned tools also remove a whole class of works-on-my-machine and it-built-yesterday problems, and reproducible outputs make build caches more effective.

So when we present the investment, we should present both sides: the reduction in supply chain risk, and the operational savings in audits, incidents and build stability. Together they usually justify the first two stages for any company of significant size.

7Follow-up questions

What does it cost to start?

The first stage is mostly configuration of tools we already have: running CI in ephemeral containers, pinning versions, and turning on signing and provenance features in the CI platform. A platform team of two or three people can roll it out across many repositories in a few months through shared pipeline templates. Bit-for-bit reproducibility and independent rebuilders are where costs rise, which is why they are reserved for the riskiest artifacts.

How do you verify provenance at deployment?

The deployment system, for example a Kubernetes admission controller, checks that each image has a valid signature and a provenance attestation whose builder identity and source repository match an allowed list. Images that fail the check are rejected. Tools in the Sigstore ecosystem and policy engines support this directly; the exact setup depends on the platform.

Do we need provenance for third-party dependencies too?

Ideally, yes, and it is becoming more common for open-source projects to publish signatures and provenance. Today we usually combine checksum or signature verification of dependencies, such as Gradle dependency verification, with a curated internal repository, and prefer dependencies that publish provenance where it is available.

8Conclusion

In this answer, we saw that reproducible builds and provenance protect the step between reviewed source and deployed binary, which code review cannot see. Provenance, described by SLSA levels and recorded as signed attestations, tells us how and where an artifact was built, and reproducibility lets an independent rebuild confirm it. We size the investment by risk, start with hermetic CI, pinned tools, signed artifacts and provenance verified at deployment, keep full reproducibility for the most critical software, and count faster incident response and simpler audits as part of the return.

What to say in the interviewAbout 80 seconds aloud

Open with

A company should care because the build system is a blind spot: code review protects the source, but an attacker who compromises CI, a plugin or a publishing token can ship code nobody reviewed, as SolarWinds showed.

Then, if they want more

Provenance answers how an artifact was built: a signed attestation from the build platform saying this hash came from this repository, commit and builder, so deployment can reject anything that did not come from our pipeline. SLSA gives levels for this, from provenance existing to hosted signed builds to hardened builders.

Reproducibility goes further: if an independent rebuild produces the same bytes, the original builder could not have injected anything. How much I would invest depends on risk. For everyone, I would start with hermetic CI in ephemeral environments, pinned JDK, wrapper, plugin and dependency versions, signed artifacts and provenance verified at deployment, which is mostly configuration through shared pipeline templates.

For regulated systems, I would add hardened builders and retained attestations. Full bit-for-bit reproducibility with an independent rebuilder I would reserve for widely distributed software such as SDKs. I would also point out the everyday return: incidents and audits get much easier when every artifact can be traced to a reviewed commit.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Why should a company care about reproducible builds and build provenance, and how much...": https://scrivio-interview-library.netlify.app/java/dependency-and-supply-chain/c47b9bb025/