flannel CNI plugin v1.9.1-flannel3 build recipe

The recipe ReadyStack built readystack/flannelcniplugin:v1.9.1-flannel3-CE-ubuntu24.04-r1 from: the upstream source it starts from, every pinned input, and the files that run the build with the network off. Public here: the source and commit, the pinned inputs, all 26 recipe files with their sizes and SHA-256, 9 of them public in full or in part, and the opening lines of the Dockerfile and build script.

The whole recipe

Free account

An account is an email address, a username and a password: no card, no donation. It opens all 26 recipe files; the build kit itself keeps its own terms.

Upstream source

Public

github.com/flannel-io/cni-plugin (v1.9.1-flannel3) at b380f201008e9bed159703846cf10d3c50b4f9ce

Fetched once, with the network on, by the vendor step (Dockerfile.vendor) when the kit was made; the offline build uses the kit's vendored copies:

Pinned inputs

As JSON
  • Base imagegolang:1.26.10-bookworm@sha256:632dff7351799a5a9954a48dc06670ade72ee44e8c351cdc0e5a57af2fea21af
  • Base imageubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852
  • BuildKitmoby/buildkit:v0.31.2
    sha256:e0e67ea9c4bb07bdef683e29f70f3b623d1eb9c82274a9ec04e6bb0511449fb0
  • Build methodsource-rebuild-go
  • SOURCE_DATE_EPOCH1786091006 (2026-08-07T08:23:26Z)
  • Target digest (linux/amd64)sha256:4511acd7413d1e6fd78d3d712921d794cb820a3b62973512532d7b64f2cc4e8a
  • Target config digestsha256:72281e62a4fb98749aaac8f4525d44d61b32494f4ae1a51a9547a479fcc124d9
  • Checksummed kit files1,657 (CHECKSUMS.sha256)

Dockerfile Dockerfile.offline.pinned

47 lines · 3.8 KB
# GENERATED L-009 hermetic build (--network=none, SBOM+SLSA-attestation-producing).
# Pinned bases from BASE_IMAGE_DIGESTS.lock; vendored Go tree + debs from Dockerfile.vendor.
FROM golang:1.26.10-bookworm@sha256:632dff7351799a5a9954a48dc06670ade72ee44e8c351cdc0e5a57af2fea21af AS build_flannel
WORKDIR /src
COPY vendored/flannelcniplugin-src/ .
ENV CGO_ENABLED=1 GOTOOLCHAIN=local GOWORK=off GOFLAGS="-mod=vendor -buildvcs=false" GOPROXY=off SOURCE_DATE_EPOCH=1786091006
RUN go build -trimpath -tags "netgo osusergo no_stage static_build" -ldflags='-extldflags -static -w -X main.Version=v1.9.1 -X main.Commit=b380f201 -X main.Program=flannel' -o /flannel . && /flannel version > /tmp/flannel.version 2>&1; cat /tmp/flannel.version; grep -qF 'CNI Plugin flannel version v1.9.1' /tmp/flannel.version || { echo 'flannel version does not report CNI Plugin flannel version v1.9.1'; exit 1; } && \
    { readelf -lW /flannel | sed -n 's/.*Requesting program interpreter: \(.*\)]$/\1/p'; readelf -dW /flannel | sed -n 's/.*Shared library: \[\(.*\)\]$/\1/p'; } > /flannel.needs
# rs-probe: the HEALTHCHECK helper (standard library only, from the kit's rs-probe.go)
FROM golang:1.26.10-bookworm@sha256:632dff7351799a5a9954a48dc06670ade72ee44e8c351cdc0e5a57af2fea21af AS build_rs_probe
WORKDIR /probe
COPY rs-probe.go main.go
COPY rs-probe.mod go.mod
ENV CGO_ENABLED=0 GOTOOLCHAIN=local GOFLAGS="-buildvcs=false" GOPROXY=off SOURCE_DATE_EPOCH=1786091006
RUN go build -trimpath -ldflags='-s -w' -o /rs-probe .
# the chiselled rootfs (vendored/chisel, cut by Dockerfile.vendor), the service user, the binaries
FROM ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852 AS rootfs
ARG SOURCE_DATE_EPOCH=1786091006
ADD vendored/chisel/rootfs.tar /rootfs/
RUN printf 'flannelcniplugin:x:999:999::/var/lib/flannelcniplugin:/bin/sh\n' >> /rootfs/etc/passwd && printf 'flannelcniplugin:x:999:\n' >> /rootfs/etc/group && \
    mkdir -p /rootfs/var/lib/flannelcniplugin && chown -R 999:999 /rootfs/var/lib/flannelcniplugin
COPY --from=build_flannel /flannel /rootfs/flannel
COPY --from=build_flannel /flannel.needs /tmp/needs/flannel
COPY --from=build_rs_probe /rs-probe /rootfs/usr/local/bin/rs-probe

Continues: 23 more lines. Create a free account to read the rest, or sign in.

Build script BUILD_OFFLINE.sh

125 lines · 6.6 KB
#!/usr/bin/env bash
# =============================================================================
# ReadyStack — offline reproducible rebuild.
#
# Rebuilds this product's image from THIS ARCHIVE ALONE, with no network access
# of any kind, and prints the resulting linux/amd64 image-manifest digest.
# Run ./VERIFY_OFFLINE.sh afterwards to assert it equals the published digest.
#
# Requirements: linux/amd64 Docker host, docker buildx >= 0.30, jq, tar.
# No git, no registry access, no additional tooling.
#
#   ./BUILD_OFFLINE.sh                the rebuild (OCI image + a docker-loadable copy)
#   ./BUILD_OFFLINE.sh --provenance   the same rebuild with SLSA v1 build provenance (mode=max) attached to the OCI
#                                     image, generated by BuildKit, not by any build step. Run on your own hardened,
#                                     isolated build platform and sign that provenance with a key the build cannot
#                                     reach, and the result meets SLSA Build Level 3 (see REBUILD.md). The image
#                                     digest is the same either way.
# =============================================================================
set -euo pipefail
PROVENANCE=0
for arg in "$@"; do
  case "$arg" in
    --provenance) PROVENANCE=1 ;;
    -h|--help) sed -n '2,20p' "$0"; exit 0 ;;

Continues: 101 more lines. Create a free account to read the rest, or sign in.

Recipe files

26 files · SHA-256 of each as published here
FileSizeSHA-256Access
BASES.tsv264 B98233a2e2970…Public · View
BUILD_OFFLINE.sh6.6 KB83299978ccd0…Opening lines public
CHECKSUMS.sha256244 KB2bf1539c7d4d…Free account
DOCKERFILE_NAME.txt26 B9aadd1ede68e…Public · View
Dockerfile3.8 KB75c41a26acd3…Free account
Dockerfile.offline3.8 KB75c41a26acd3…Free account
Dockerfile.offline.pinned3.8 KB75c41a26acd3…Opening lines public
Dockerfile.vendor4.2 KBd917d3c82687…Free account
MANIFEST.txt134 KB3b5e19546272…Free account
SOURCE_DATE_EPOCH.txt11 Bdcc2b1ce685a…Public · View
TARGET_DIGEST.txt423 B385c6849c5c6…Public · View
VERIFY_OFFLINE.sh9.9 KB3e8184ea230c…Free account
docs/PROVENANCE.md1.8 KB212a74b61ba2…Free account
docs/REBUILD.md5.4 KB807e11271a87…Free account
docs/VERIFY.md2.0 KB8da1eedcf796…Free account
docs/provenance/BASE_IMAGE_DIGESTS.lock82 B3f139d4a6633…Public · View
docs/provenance/BUILD_RECIPE.json2.1 KBc8b265e0e943…Free account
docs/provenance/CUSTODY_INPUTS.json671 Bf88bbd6e41c7…Free account
docs/provenance/SOURCE_FILE_MANIFEST.json766 B9863bd56b781…Free account
docs/provenance/SOURCE_TREE_HASH.json327 B851d44d79586…Public · View
docs/provenance/SYSTEM_PINNING.lock23 B0630392bbd9f…Free account
docs/provenance/TOOLCHAIN.lock2.1 KBffb4bca3b8e6…Free account
rebuild.json1.5 KB1b2b6e728dc2…Free account
rs-probe.go3.1 KBa8bdee17a358…Free account
rs-probe.mod40 Ba480b79acf98…Free account
toolchain/BUILDKIT_TAG.txt22 Bfcd530eeb02b…Public · View

Made from ReadyStack-flannelcniplugin-v1.9.1-flannel3-CE-ubuntu24.04-r1.tar.gz (SHA-256 46568ea441c873935be892737779c7498f71f188ec7962970b17e149a627f8b2), the build kit on sale for this release, on 2026-10-29.

What the Hermetic Build Kit adds

Free with a verified email

The recipe pins every input; the kit carries them, so the build runs with the network off:

  • Base images (OCI layouts)16 files, 311 MB
  • Pinned BuildKit toolchain1 files, 106 MB
  • Vendored sources and packages1,538 files, 47 MB
  • Handbooks, SBOM, security report and records78 files, 740 KB