Theme
Tier 4 · lesson 9 of 10 · 40 min

Every input is a dependency

You will: List everything the robot image is built from, and say for each input whether it is verified, only pinned, or open.

Builds on An image that carries no simulator and A release is a tag plus evidence.

Earlier lessons each secured one link: an image that provably carries no simulator, a release whose tag and digest agree. This one walks the whole chain from a commit to a robot and asks one question of every link: who, or what, can change this without anyone here deciding to?

There are three possible answers, and only the first is comforting:

  • Verified. Something checks the input and refuses a different one.
  • Pinned. The input is named exactly, but nothing checks what arrives.
  • Open. The input is whatever its publisher says it is today.
link what this repository uses state
the SO-101 description one upstream commit, the URDF checked against a SHA-256 the URDF verified; its meshes pinned by the commit alone
Python packages for the site markdown==3.7, pyyaml==6.0.2 pinned by version, not by hash
base images ros:jazzy-ros-base, python:3.12-alpine, nginx:1.30-alpine, golang:1.23-alpine, alpine:3.20 open: every one is a tag
CI actions actions/checkout@v4 and eight more open: a tag its owner can move
Ubuntu and Alpine packages whatever the mirror serves at build time open; the site image runs apk upgrade, the robot image never upgrades
what the robot image contains the no-simulator, no-copyleft check on every build verified, by package name
the published image a digest per architecture, OCI labels, a provenance attestation identified, but nothing signs it

Two of those are worth a closer look, because they are better and worse than they first seem.

The provenance is real, and unsigned. Every image CI pushes carries an attestation BuildKit writes by default. They are the unknown/unknown entries the deploy workflow filters out when it lists architectures. It records the build's arguments and the base image by digest, so although the Dockerfile says only ros:jazzy-ros-base, you can find out afterwards exactly which base a given robot image was built on. What it cannot do is prove who wrote it. It is a statement the build made about itself, not a signature, and anyone able to push to the registry can push a statement too.

A tag is a decision to take updates. nginx:1.30-alpine moves with every patch release, and that is deliberate: security fixes arrive on a rebuild without anyone editing a file. Pinning by digest stops the tag moving under you, and stops the fixes with it. The honest pattern is both at once: a digest in the file, and a scheduled job that bumps it and runs the tests, so updates arrive as reviewed changes. This repository does neither half yet.

What is missing, stated as missing:

  • No vulnerability scan of the robot image in this repository. The course-site image is scanned, by the private pipeline that deploys it, not here.
  • No SBOM. Asked for one, the registry returns an empty object.
  • Nothing is signed, so nothing on a robot could check a signature even if it wanted to.
  • No branch protection on main, and Dependabot off. These are repository settings rather than files, and both were unset as of November 2026.

One thing is on: GitHub's secret scanning and push protection. They are settings too, and settings belong to a repository, not to its files, so check your own copy's rather than assuming them.

In the simulation

The arm on this page is an input too: its joints, axes and limits come from the pinned SO-101 description, not from anything written here. Read a few of those inputs off the model. The page checks no checksum; it only shows what the description says.

Kinematic: joints move at their real speed limit, but there is no gravity, no load and no physics. That is what the steps below are for.

The SO-101 loads as you reach it.

In this lesson

  1. Turn on Frames (f). Every axis and ring is a joint origin taken from the description.
  2. Drive elbow_flex to its upper limit and read it, 1.69 rad, 97°, the description's number.
  3. Drive wrist_roll to its lower limit, -157°. It is +163° the other way: an asymmetry nobody would guess, which is why it is read from the input and not assumed.

Do it

  1. List the base images. Most lines name an earlier stage; the rest name someone else's image.

    grep -n "^FROM" docker/Dockerfile docker/Dockerfile.site vps/fleet/cloud/Dockerfile
    

    Expect: Eleven lines. Five name an image from outside this repository, and every one of the five ends in a tag, never a digest.

  2. Count the actions CI runs, and how each one is referenced.

    grep -hE '^\s*(- )?uses:' .github/workflows/*.yml | sort | uniq -c
    

    Expect: Nine actions, each pinned to a major-version tag such as @v4, not to a commit.

  3. Make the one verified input refuse. Give the SO-101 fetch a wrong checksum.

    SO101_URDF_SHA256=0000 make so101-fetch
    

    Expect: so101.urdf does not match its pinned checksum, both checksums printed, and Nothing was installed.

  4. Now fetch it properly.

    make so101-fetch
    
  5. Ask the registry what the published robot image is made of.

    docker buildx imagetools inspect ghcr.io/narsi97/3vn-robotics:latest
    

    Expect: Four manifests: linux/arm64, linux/amd64, and two unknown/unknown entries whose reference type is attestation-manifest, one per architecture.

  6. Read which base the provenance recorded, then compare it with what that tag points at today.

    docker buildx imagetools inspect ghcr.io/narsi97/3vn-robotics:latest --format '{{json .Provenance}}' | grep -B3 '"uri": "pkg:docker/ros@'
    docker buildx imagetools inspect ros:jazzy-ros-base | head -3
    

    Expect: The same sha256 in both, for now. The day upstream republishes jazzy-ros-base, the second changes and the first does not, and a rebuild of the same commit produces a different image.

  7. Ask for the image's SBOM, then read its labels.

    docker buildx imagetools inspect ghcr.io/narsi97/3vn-robotics:latest --format '{{json .SBOM}}'
    docker buildx imagetools inspect ghcr.io/narsi97/3vn-robotics:latest --format '{{json (index .Image "linux/amd64").Config.Labels}}'
    

    Expect: {} for the SBOM. Among the labels, org.opencontainers.image.version says 24.04. Nobody here set it: it is inherited from the Ubuntu base, and it is wrong about what this image is.

You will know it worked when: You have a table of every input to the robot image, each marked verified, pinned or open, with the one you would close first and what closing it would cost.

When it goes wrong

You pin every base image by digest, and six months later the robot image is full of known vulnerabilities.

Why: A digest never moves, so it never takes a fix either.

Fix: Pin and refresh together. A scheduled job bumps the digest and runs the tests, so updates arrive as reviewed changes.

docker buildx imagetools inspect ghcr.io/narsi97/3vn-robotics:main says not found.

Why: The image is tagged latest, sha-<commit> and v<version>, never with a branch name.

Fix: Use latest, or a sha- tag from the Docker workflow's summary.

Someone cites the provenance as proof that an image came from CI.

Why: It is an unsigned statement the build wrote about itself.

Fix: Treat it as a record, not as evidence. Proof needs a signature checked against an identity you trust, which this repository does not have yet.

Terms

Software supply chain
Everything in what you ship that you did not write (base images, packages, actions, third-party files) plus the systems that build and carry it. Each is a place where someone else can change your product.
Pin versus checksum
A pin names an input exactly: a version, a commit, a digest. A checksum checks what actually arrived. A pinned input from a compromised source still arrives; a checksummed one is refused.
Build provenance
A record, written by the build, of what was built from what. BuildKit attaches one to every pushed image by default. Unless it is signed, it says what happened, not who vouches for it.
SBOM
Software bill of materials: a list of every package inside an artefact, so that a newly published vulnerability can be matched to the images that contain it without unpacking them.

Every term in the course: glossary.

Check yourself

Answer in your head first, then open it.

The SO-101 URDF is checked against a SHA-256, but its meshes are not. What protects the meshes, and how well?

The commit in the URL. A file fetched at a fixed commit cannot change without the commit changing, so the pin holds. But it trusts GitHub to serve that commit faithfully, and nothing here checks the bytes that arrive.

Why is nginx:1.30-alpine not really pinned, and why is that partly deliberate?

The tag moves with every patch release, so two builds of the same commit can differ. That is also how security fixes arrive without anyone editing a file. A digest would stop both.

What does the image's provenance prove, and what does it not?

It records what the build says it used, including the base image by digest. It does not prove who wrote it: it is unsigned, and anyone who can push to the registry can push one.

Stretch

On your own copy, make the Docker workflow publish an SBOM with the image and fail the build on a critical vulnerability. Then decide, and write down, what you will do the first time it fails on a vulnerability that has no fix yet.

Hint

docker/build-push-action accepts sbom: true and provenance: mode=max. Any image scanner (Trivy and Grype are common) can run against verify:local before the push step.

One way to do it

The first two are a few lines each. The third is the real work: a gate that fails on findings nobody can fix gets switched off. It needs an allowlist where every entry has an owner and an expiry date, so each exception has to be renewed rather than quietly forgotten.

Going deeper