From source code to signed image: how ZTGIT builds each component
Why rebuild instead of download
Downloading a project’s official image is fast, but it shifts trust to every link you cannot see: the project’s build system, the maintainers’ accounts, the registry where the image is stored and every dependency that went into it. Attacks on the software supply chain exploit exactly these links.
ZTGIT applies the zero trust principle to software as well: every component is rebuilt and verified before it is used.
The steps
1. Mirrored and pinned source
The upstream project’s repository is mirrored in the ZTGIT forge. Before each build, the mirror is synced and the latest stable release is selected. The exact commit is recorded and shown on the component page, with a link to the original repository.
2. Build on ZTGIT’s own infrastructure
The forge, the CI runners, the image registry and the signing keys all belong to ZTGIT. Each image follows one of three tracks:
- T1: compiled from source code in the ZTGIT forge, using the project’s own Dockerfile;
- T1b: the project’s official binary distribution, with its hash checked, packaged on a ZTGIT base;
- T2: a ZTGIT fork, with its own fixes and maintenance on top of the upstream release.
3. Bill of materials
Each image gets an SBOM in CycloneDX format, listing every package and version it contains. The SBOMs are public, one file per image at ztgit.org/sbom/, linked from each component page.
4. Two scans and a gate
The image is assessed by ZTGIT-SBOMscan and, independently, by Grype. The pipeline rule: the build is blocked if there is a critical vulnerability that already has a fix. Findings with no vendor fix are recorded and reassessed at every rebuild. The reason for using two engines is explained in Who verifies the verifier.
5. Signing
The approved image is signed with cosign. ZTGIT signs the index and each inner manifest, so verification covers every architecture. The public key is at ztgit.org/cosign.pub.
6. Public evidence and weekly repetition
Source, commit, track, license, signed digest, build date, SBOM and the results of both scans are published on the component page and in evidencias.json. The whole cycle repeats every week, and each build appears in the changelog.
What this guarantees
- You know where each component came from, down to the commit.
- You know what is inside, from the SBOM.
- You know its vulnerability status on the build date, from two engines.
- You can prove it has not been altered, from the signature.
To check all of this yourself, follow the step-by-step guide in How to verify a ZTGIT image.