Interview Prep/DevSecOps/Supply Chain Security

What is a reproducible build and why do security teams care?

AdvancedScenarioSupply Chain Security
Answer

Situation read → A build is reproducible if independent builders produce bit-identical output from the same source.

What I'd do →

  1. Pin toolchains and base images by digest; avoid network access during build.
  2. Remove nondeterminism: timestamps (SOURCE_DATE_EPOCH), file ordering, random IDs, locale.
  3. For Go use -trimpath and -buildvcs=false; for Docker use BuildKit with --output type=oci,rewrite-timestamp=true.
  4. Rebuild on a second, independent builder and compare digests.

Why → Matching hashes show the binary was not tampered with in the build system, which was the SolarWinds failure mode.

Interview tip → Say "hermetic plus deterministic".

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply Chain Security