cloudflared 2026.10.5 build recipe
The recipe ReadyStack built readystack/cloudflared:2026.10.5-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 24 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 accountAn account is an email address, a username and a password: no card, no donation. It opens all 24 recipe files; the build kit itself keeps its own terms.
Upstream source
Publicgithub.com/cloudflare/cloudflared (2026.10.5) at 99b2eb2c0152862af2b1abf7c7b4e2170a46b9fe
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:
- git https://github.com/cloudflare/cloudflared 2026.10.5
Pinned inputs
As JSON- Base imagegolang:1.27.3-bookworm@sha256:972b4110ba0f47539a975c31e52c64765e1ff19f2d74469ae4a595c6676e80a5
- Base imageubuntu:24.04@sha256:24737cef17f4e22b1977df7d9a05e77c4e28b7da5b8911f8d8ccda136bf3573c
- BuildKitmoby/buildkit:v0.31.2
sha256:e0e67ea9c4bb07bdef683e29f70f3b623d1eb9c82274a9ec04e6bb0511449fb0 - Build method
source-rebuild-go - SOURCE_DATE_EPOCH1793106340 (2026-10-27T13:05:40Z)
- Target digest (linux/amd64)sha256:7c25045344936c216eaaf0e41c22c009ab3307280049205a811640608b008770
- Target config digestsha256:0742f528097ca73ff0ffe28af0d2466b8fc7297ffcac5b7581858abc2a8622bb
- Checksummed kit files4,141 (CHECKSUMS.sha256)
Dockerfile Dockerfile.offline.pinned
38 lines · 3.3 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.27.3-bookworm@sha256:972b4110ba0f47539a975c31e52c64765e1ff19f2d74469ae4a595c6676e80a5 AS build_cloudflared
WORKDIR /src
COPY vendored/cloudflared-src/ .
ENV CGO_ENABLED=0 GOTOOLCHAIN=local GOWORK=off GOFLAGS="-mod=vendor -buildvcs=false" GOPROXY=off SOURCE_DATE_EPOCH=1793106340
RUN go build -trimpath -ldflags='-X main.Version=2026.10.5 -X main.BuildTime=2026-10-26T09:34:58Z -X github.com/cloudflare/cloudflared/metrics.Runtime=virtual' -o /cloudflared ./cmd/cloudflared && /cloudflared --version > /tmp/cloudflared.version 2>&1; cat /tmp/cloudflared.version; grep -qF 'cloudflared version 2026.10.5 (built 2026-10-26T09:34:58Z)' /tmp/cloudflared.version || { echo 'cloudflared --version does not report cloudflared version 2026.10.5 (built 2026-10-26T09:34:58Z)'; exit 1; }
FROM ubuntu:24.04@sha256:24737cef17f4e22b1977df7d9a05e77c4e28b7da5b8911f8d8ccda136bf3573c
ENV DEBIAN_FRONTEND=noninteractive TUNNEL_METRICS=0.0.0.0:20241
RUN --mount=type=bind,source=vendored/debs,target=/tmp/debs \
set --; for f in /tmp/debs/*.deb; do [ -e "$f" ] && set -- "$@" "$f"; done; \
for pass in 1 2 3 4 5; do [ $# -eq 0 ] || dpkg -i --skip-same-version "$@" >/dev/null 2>&1 && break; done; \
dpkg --configure -a && bad= && for d in "$@"; do p=$(dpkg-deb -f "$d" Package) v=$(dpkg-deb -f "$d" Version); \
case "$(dpkg-query -W -f='${Version} ${db:Status-Abbrev}' "$p" 2>/dev/null)" in "$v ii"*) ;; *) bad="$bad $p=$v" ;; esac; done && \
{ [ -z "$bad" ] || { echo "vendored debs not installed at their vendored version:$bad" >&2; false; }; } && \
rm -rf /var/lib/apt/lists/* \
/var/log/dpkg.log /var/log/alternatives.log /var/log/apt /var/cache/ldconfig/aux-cache /var/cache/fontconfig
ARG SOURCE_DATE_EPOCH=1793106340
RUN groupadd -r -g 65532 cloudflared && useradd -r -u 65532 -g cloudflared -d /home/cloudflared -m cloudflared && \
mkdir -p /home/cloudflared /etc/cloudflared && chown -R cloudflared:cloudflared /home/cloudflared /etc/cloudflared && \
: "${SOURCE_DATE_EPOCH:?SOURCE_DATE_EPOCH must be set for a reproducible build}" && \
sed -ri "s/^([^:]*:[^:]*):[0-9]*:/\1:$((SOURCE_DATE_EPOCH/86400)):/" /etc/shadow && \
rm -f /etc/passwd- /etc/shadow- /etc/group- /etc/gshadow-
COPY --from=build_cloudflared /cloudflared /usr/local/bin/cloudflaredContinues: 14 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
24 files · SHA-256 of each as published here| File | Size | SHA-256 | Access |
|---|---|---|---|
| BASES.tsv | 262 B | 203db39d3116… | Public · View |
| BUILD_OFFLINE.sh | 6.6 KB | 83299978ccd0… | Opening lines public |
| CHECKSUMS.sha256 | 565 KB | 4d4d12e8c448… | Free account |
| DOCKERFILE_NAME.txt | 26 B | 9aadd1ede68e… | Public · View |
| Dockerfile | 3.3 KB | c91026a76648… | Free account |
| Dockerfile.offline | 3.3 KB | c91026a76648… | Free account |
| Dockerfile.offline.pinned | 3.3 KB | c91026a76648… | Opening lines public |
| Dockerfile.vendor | 1.6 KB | 21ba62922f75… | Free account |
| MANIFEST.txt | 290 KB | c0221a9381a9… | Free account |
| SOURCE_DATE_EPOCH.txt | 11 B | bd3a9f1db2da… | Public · View |
| TARGET_DIGEST.txt | 554 B | 58bf5666cce5… | Public · View |
| VERIFY_OFFLINE.sh | 7.9 KB | dc0b5cd5c104… | Free account |
| docs/PROVENANCE.md | 1.7 KB | 06ce5b23d0fe… | Free account |
| docs/REBUILD.md | 5.2 KB | 2d23cee43565… | Free account |
| docs/VERIFY.md | 2.0 KB | cd59de4694b6… | Free account |
| docs/provenance/BASE_IMAGE_DIGESTS.lock | 76 B | 38951f88945d… | Public · View |
| docs/provenance/BUILD_RECIPE.json | 3.3 KB | 7ab1ac06a438… | Free account |
| docs/provenance/CUSTODY_INPUTS.json | 661 B | 2ea24f5fbef7… | Free account |
| docs/provenance/SOURCE_FILE_MANIFEST.json | 16 KB | 10ba763ab169… | Free account |
| docs/provenance/SOURCE_TREE_HASH.json | 318 B | 13d2887af1d3… | Public · View |
| docs/provenance/SYSTEM_PINNING.lock | 28 B | fa091140511e… | Free account |
| docs/provenance/TOOLCHAIN.lock | 2.7 KB | f78b3b6486b3… | Free account |
| rebuild.json | 1.6 KB | 855c59d0162c… | Free account |
| toolchain/BUILDKIT_TAG.txt | 22 B | fcd530eeb02b… | Public · View |
Made from ReadyStack-cloudflared-2026.10.5-CE-ubuntu24.04-r1.tar.gz (SHA-256 91c10d8a57d3f6c6e3cf660fe6f15ea06706e45f416823b6c84286df8c581fba), the build kit on sale for this release, on 2026-10-29.
What the Hermetic Build Kit adds
Free with a verified emailThe recipe pins every input; the kit carries them, so the build runs with the network off:
- Base images (OCI layouts)16 files, 315 MB
- Pinned BuildKit toolchain1 files, 106 MB
- Vendored sources and packages3,568 files, 33 MB
- Handbooks, SBOM, security report and records534 files, 5.3 MB