in-toto Software Supply-Chain Layouts Explained

Updated on
11 min read

Software releases are produced by a chain of people, automation, build systems, test environments, and registries. A signature on the final package can show who signed those bytes, but it does not by itself show which source was built, which tests ran, or whether an unexpected step replaced an intended one. in-toto software supply-chain layouts address that gap by describing the required workflow and collecting signed evidence for each step. This explainer covers the layout model, functionaries, artifact rules, verification flow, and a practical way to add in-toto to a small build.

Why in-toto Is Being Discussed

Modern delivery pipelines can transform source code many times before a user installs a release. Dependencies are resolved, code is compiled, tests run, packages are assembled, and artifacts are uploaded. Each transition can be legitimate, misconfigured, or compromised. A vulnerability scanner or software bill of materials (SBOM) can provide useful evidence, but neither necessarily proves that the release followed the intended production process.

The in-toto project is a CNCF graduated project that provides an open metadata standard and tools for making that process visible. Its goal is not to declare that software is safe. Its goal is to let a consumer check whether the steps, actors, materials, and products match a policy defined by the project owner. That makes in-toto relevant to open-source maintainers, internal platform teams, package distributors, and organizations that consume software from suppliers.

What Is in-toto?

in-toto is a framework for securing the integrity and auditability of a software supply chain. A project owner creates a signed layout. The layout lists the steps that should happen, the functionaries authorized to perform them, the commands or artifact conditions expected, and any inspections a verifier should run.

When a functionary performs a step, in-toto creates signed link metadata. A link can record the step name, command, materials, products, byproducts, and return information. At release time, the layout and links travel with, or are made available alongside, the target software. A client verifies the layout signature, checks each link against the authorized keys and thresholds, applies the artifact rules, and runs the defined inspections.

The in-toto technical specification describes the metadata model and verification semantics. The project documentation also provides a getting-started workflow and a demo with a project owner and two functionaries. in-toto is therefore a framework and protocol model, not a hosted build service or a replacement for a package manager.

The Problem in-toto Solves

Consider a release that passed code review and was built by a CI system. If an attacker changes the build job, substitutes a dependency, or publishes an artifact from a different workspace, the final package may still have a valid release signature. The signature proves a signing key approved the package; it does not establish that the package came through the expected sequence of actions.

in-toto moves the policy decision earlier. The project owner can state that a particular key must perform the build, that a test step needs evidence from a threshold of approved functionaries, and that the package step may consume only the products of the test step. A verifier then has evidence about the process rather than only the final file.

This distinction complements, rather than replaces, other controls. The Update Framework (TUF) protects update metadata and freshness in the delivery path. Sigstore Cosign can bind a signature or attestation to a specific artifact digest. An SBOM and supply-chain attestation can describe components and build claims. in-toto focuses on whether a declared sequence of supply-chain steps was carried out as required.

The workflow has two sides: an owner defines the intended process, and functionaries create evidence while carrying it out.

  1. The project owner creates a layout. The layout names steps, authorized public keys, artifact rules, expected commands, inspections, expiration, and thresholds. The owner signs it.
  2. Functionaries perform steps. A functionary may be a developer, build worker, test service, packaging job, or another automated actor. The functionary signs link metadata for its step.
  3. Artifacts connect the steps. Materials are inputs observed before a step; products are outputs observed after it. MATCH rules can require a later step to use products from an earlier step.
  4. The final product is assembled. The release includes the target files, the signed layout, link metadata, and the public key material needed to verify the layout.
  5. A client verifies the chain. The verifier checks layout signatures and expiration, link signatures and thresholds, artifact rules, expected commands, and inspection results.

The layout is the policy, while a link is evidence. A link cannot authorize a new step that the layout did not define. Conversely, a layout can be poorly designed: it may omit review, authorize an overly broad key, or allow unexpected files. in-toto makes those decisions inspectable; it does not automatically judge whether the policy is sensible.

Evidence or control What it answers What it does not prove
in-toto layout and links Did the declared steps run, with authorized actors and connected materials and products? That the source or authorized process was free of defects or malicious intent
TUF metadata Is this update authorized, current, and consistent with repository metadata? That the build process was correct
SBOM Which components and dependency relationships are recorded for this artifact? That the inventory is complete or the components are safe
Sigstore signature or attestation Which identity signed this artifact or claim, and did the bytes change? That the signer or build system was not compromised

These controls can be combined. For example, TUF can deliver a release and its in-toto metadata, while a deployment policy checks a Cosign signature and an SBOM before accepting the target.

Components and Key Concepts

Project owners and layouts

The project owner is the authority that defines the supply-chain policy. A layout normally includes an expiration time, the public keys of functionaries, one or more owner signatures, ordered steps, and inspections. Multiple owner signatures can reduce dependence on one key. The layout should be treated as release policy and protected accordingly.

Steps and functionaries

A step has a unique name and one or more authorized functionary key identifiers. A functionary can be a person or an automated process. The step may specify an expected command, but command matching is only one part of verification; the artifact rules determine which files can be created, modified, deleted, or carried into another step.

Link metadata is signed evidence generated for a step. It can record hashes of materials and products, the command, exit code, standard output and error, and other byproducts. Hashes connect the evidence to exact file contents. A link does not make a file immutable forever; it gives a verifier a way to compare the observed bytes with the policy and with earlier or later steps.

Artifact rules

Rules describe what a step may consume or produce. Common rules include CREATE, MODIFY, DELETE, ALLOW, DISALLOW, REQUIRE, and MATCH. A MATCH rule can carry products from one step into the materials of another, creating a verifiable chain. A final DISALLOW * is often useful when the step should not leave unspecified artifacts behind; otherwise, an unlisted file may be accepted by default.

Thresholds and inspections

A step can require a threshold of link metadata from authorized functionaries. This is useful when, for example, multiple independent test workers must attest to a release. An inspection runs during verification rather than during a functionary step. It can unpack a package, compare files with an earlier product, or run a command that validates the final product.

Sublayouts

A sublayout lets a project include a separately described supply chain as one step in a larger chain. This can represent a vendor-built component or an upstream project without copying its entire process into the parent layout. Namespacing and delegated trust are important: the parent layout should specify which sublayout and key are accepted.

Real-World Use Cases

  • Reproducible package releases: A maintainer can record source checkout, build, test, and package steps, then let users verify that the archive came from the declared process.
  • Multi-team builds: A platform team can authorize one functionary for compilation and another for packaging, limiting which credentials can perform each operation.
  • Independent testing: A layout can require multiple test links or an inspection that validates the final archive contents before release.
  • Supplier components: A parent project can use a sublayout to describe a separately managed component while preserving evidence about the delegated process.
  • Incident investigation: Link metadata can show which materials and commands produced an affected artifact, helping a team identify the first unexpected transition.

These uses depend on trustworthy key management and a meaningful layout. If every step uses one broadly accessible key, or if the layout omits important transformations, verification can succeed while providing weak assurance.

Getting Started: Record and Verify a Build

The Python reference implementation is available through PyPI. Install it in a virtual environment used for experimentation:

python -m venv .venv
python -m pip install --upgrade pip
python -m pip install in-toto
in-toto-run --version

The owner must first create and sign a layout containing steps such as build, test, and package, plus the public keys authorized for each step. The official layout creation example uses the Python model classes and shows how to add artifact rules and inspections. Keep the owner private key separate from ordinary build jobs.

Once a functionary has its signing key and the layout defines a matching step, wrap the command that performs the work. This example records the source directory as material and the generated distribution as product:

mkdir -p links dist

in-toto-run \
  --step-name build \
  --signing-key functionary-build.key \
  --materials src \
  --products dist \
  --metadata-directory links \
  -- python -m build --outdir dist

The resulting link filename contains the step name and a prefix of the functionary key identifier. In a real pipeline, record only the inputs and outputs defined by the layout, avoid leaking secrets through captured streams, and store the link with the release evidence. Repeat the pattern for test and package steps using the appropriate keys and artifact paths.

At the verification boundary, provide the signed root layout, the owner’s public key, and the directory containing the links:

in-toto-verify \
  --layout root.layout \
  --verification-keys project-owner.pub \
  --link-dir links

The verifier should treat a non-zero result as a release failure. Test negative cases before relying on the workflow: change a product, remove a required link, sign with an unauthorized functionary, expire the layout, and introduce an artifact that the rules disallow. Also protect the path that distributes the layout and its keys. in-toto itself does not prevent an attacker from replacing an old but still valid layout; use a secure update mechanism such as TUF when layout distribution needs freshness and rollback protection.

For surrounding pipeline controls, see the DevOps pipeline security guide and container security best practices. They cover isolated runners, artifact signing, secrets management, and runtime controls that remain necessary around in-toto verification.

Common Misconceptions

  • “in-toto signs the source and makes it safe.” It records and verifies claims about the process. A trusted functionary can still introduce a vulnerability or intentionally produce harmful software.
  • “A layout is the same as an SBOM.” A layout describes intended steps and authorized actors; an SBOM inventories components. They answer different questions and can be distributed together.
  • “A valid link proves every command on a machine was harmless.” A link records the selected materials, products, and execution evidence. It does not provide a complete forensic record of the host.
  • “in-toto replaces TUF or artifact signatures.” in-toto covers supply-chain process evidence. TUF can secure metadata distribution, and artifact signatures can provide a separate digest and identity check.
  • “Any successful verification means the policy is strong.” Verification proves conformance to the supplied layout. Owners must review whether the layout includes the right steps, keys, thresholds, and rules.

Changelog and Last Updated

  • Initial publication.
TBO Editorial

About the Author

TBO Editorial writes about the latest updates about products and services related to Technology, Business, Finance & Lifestyle. Do get in touch if you want to share any useful article with our community.