Introduction: Focus on "Zero Trust" for the supply chain. SLSA v1.0 is the standard.
SLSA L3 Specifics: What distinguishes L3 from L2? The build platform must be hardened and the provenance must be non-falsifiable. This means ephemeral environments and strong identity.
The Sigstore Piece:
Fulcio: Certificates based on OIDC (SPIFFE/SPIX are relevant but maybe too complex for a general blueprint? Stick to OIDC provider of the CI system).
Rekor: Immutable log.
Cosign: The signing tool.
Evidence Collection: Needs to be automatic. SAST (Semgrep/CodeQL), SCA (Dependabot/Snyk), SBOM (Syft), Unit Tests. These need to be attested to.
Build: No internet access (hermetic), pinned dependencies.
Provenance: Use a SLSA generator (e.g., SLSA-GitHub-Generator) or a native Tekton chain.
Key Challenge: "Automated Evidence Collection."
How do we prove we collected evidence?
Option A: Upload logs to a bucket. (Weak link).
Option B: Attest the evidence. Sign the test result, sign the SAST report, sign the SBOM. Attach these to the artifact. This is the "in-toto" layout approach.
Structuring the Response:
I will organize this as a formal design document.
Correction: Make sure to distinguish between "Provenance" (how it was built) and "Attestations" (properties of the artifact, like "passed tests"). Both are needed.
Refinement: Explicitly mention "Hermetic Builds" as a key SLSA L3 technique.
Refinement: Mention "Federated Identity" for the build pipeline to authenticate to Sigstore.
Let's build out the sections.
Section 1: The Goal. Trust nothing, verify everything.
Build: Hosted vs. Self-hosted (Self-hosted is harder to secure for L3).
Provenance: Must come from the builder, not the user.
Section 4: Evidence.
SBOMs (Syft).
VEX (OpenVEX).
Scans.
Section 5: Sigstore.
Keyless signing is the preferred path for factories.
Let's write the response based on this structure. I will provide specific code snippets or config examples (e.g., a GitHub Action workflow or a Kyverno policy) to make it actionable.
Reviewing SLSA v1.0 Requirements:
Build from source (no pulling binaries without provenance).
Build service generated provenance.
Non-falsifiable provenance.
Ephemeral isolation.
Reviewing Sigstore integration:
Use cosign for signing the image and attaching attestations.
Use policy-controller or Kyverno for enforcement.
Final Polish: Ensure the tone is professional, architectural, and actionable. Use formatting (bolding, code blocks) to make it readable.
(Self-Correction): The user asked for a Blueprint. I should provide a conceptual design and a concrete implementation example (e.g., using GitHub Actions as the most common example, but mentioning Tekton for "industry strength").
Let's proceed.
This blueprint outlines the architecture for a Secure Software Factory designed to meet SLSA v1.0 Level 3 (Source Integrity + Build Integrity) requirements. It leverages Sigstore for keyless signing and identity-based attestation, and defines a pipeline for automated evidence collection.
Blueprint: The Zero-Trust Software Factory
1. Architecture Overview
This factory treats the build pipeline as a critical security boundary. It moves away from "trusting the CI/CD provider" to "verifying the CI/CD provider's identity and outputs."
High-Level Flow
Developer Commit→Source Control (SCM)→Trigger→Hardened Build Environment→Attestation Generation→Sigstore Signing→Artifact Publication
Component Stack
Source: GitHub / GitLab (with Branch Protection).
Builder: GitHub Actions / Tekton / Google Cloud Build (Must support OIDC).
Signing Infrastructure: Sigstore (Fulcio CA + Rekor Transparency Log).
To achieve SLSA L3, the following specific controls must be embedded into the factory:
SLSA Requirement
Implementation Strategy
Provenance Generation
The build platform must generate a SLSA v1.0 Provenance attestation describing how the artifact was built (inputs, builder ID, build steps).
Non-Falsifiable Provenance
Provenance must be signed. We use Sigstore/Cosign with the CI provider's ephemeral OIDC token (Workload Identity). No long-lived keys allowed.
Isolated Build
Builds must run in isolated environments (ephemeral runners or containers). No shared state between builds.
Hermetic Builds
(Recommended for L3+) Builds must be hermetic: no network access during the build task, relying only on pinned dependencies.
Source Integrity
Enforce "Two-Party Review" (Pull Requests) and protected branches in the SCM.
3. The Pipeline Implementation
This section details the CI/CD workflow configuration. We will use a generic YAML syntax applicable to GitHub Actions but conceptually portable to other platforms.
Phase 1: Source & Trigger
Control: Branch protection rules.
Mechanism: Ensure the workflow only triggers on merge to main or specific tags. Do not trigger on pull request "suggested" builds for final artifacts (unless they are purely for testing).
Phase 2: Build & Evidence Collection
We need to generate the artifact and the evidence (SBOM, VEX, Test Results) simultaneously.
Key Step: Hermetic Build (L3 Requirement)
If possible, disable network calls during the docker build or compile phase. Use a cached dependency proxy.
Phase 3: Attestation & Signing (The Sigstore Integration)
This is the core of the factory. We use the OIDC token provided by the CI runner to sign the artifact and attestations keylessly.
Tools:cosign, syft (SBOM), slsa-verifier.
4. Technical Workflow Example (YAML)
Below is a hardened workflow definition. It assumes the use of the SLSA GitHub Generator for generating provenance (industry standard) and Cosign for SBOM attestation.
The Software Factory is useless if no one verifies the output. The final stage is the enforcement policy deployed in the destination (e.g., Kubernetes Cluster or Artifactory).
Verification Logic
The consumer (or cluster admission controller) checks three things:
Signature Validity: Was the image signed by a valid CI identity?
Provenance Integrity: Does the SLSA provenance exist and match the expected source repository?
Vulnerability Status: Does the attached SBOM/VEX indicate no known critical vulnerabilities?
Kyverno Policy Example (Kubernetes Enforcement)
This policy ensures only images signed by this repository's CI workflow can run.
To maintain an audit trail, the factory must persist the following artifacts to an immutable storage bucket (e.g., locked S3 bucket or OCI Registry):
Evidence Type
Format
Storage Location
Sigstore Integration
Artifact
OCI Image
Container Registry
Signed via cosign sign
Composition
SPDX / CycloneDX
OCI Registry
Attached via cosign attest
Build Provenance
SLSA v1.0 (DSSE)
OCI Registry
Attached via SLSA Generator
Vulnerability Scan
SARIF / Trivy JSON
OCI Registry / Security Dashboard
Attested via cosign attest
7. Summary of Security Guarantees
By implementing this blueprint:
Tamper Resistance: If a malicious actor compromises the source repo but bypasses code review, the build identity in the provenance will not match the policy.
Reproducibility: The provenance contains the exact build instructions and dependencies.
Non-Repudiation: The Sigstore transparency log (Rekor) provides immutable proof that the artifact was signed at a specific time by a specific identity.
Automation: Security is shifted left but enforced right; evidence is generated automatically without developer manual intervention.