Linux runtime v0.3.5 integrates shared Ubuntu 26.04 security backports for already-installed packages while preserving the selected coreutils provider.
The shared bundle includes the official Brotli decoder fix for CVE-2026-111497.
The image retains bundle manifests, source inputs and installation receipts under /usr/share/pasturestack/security/ubuntu-backports/.
PastureStack System Image Preloader discovers the images required by legacy-compatible system workloads and asks the local Docker daemon to pull images that are not already present.
The runtime is a Bash executable rather than a Go module. Its public package identity is the repository, executable, container image, and OCI metadata name system-image-preloader.
PastureStack is an independent community effort to preserve, audit, and modernize the Rancher 1.6 ecosystem. It is not affiliated with or endorsed by Rancher Labs or SUSE.
Upstream: rancher/pre-pull-images. This GitHub fork retains the upstream Git history, authorship, dates, and license notices unchanged; PastureStack maintenance is consolidated into one commit after the preserved upstream boundary.
This repository is a derivative maintenance project. It preserves the upstream Git history, authorship, and Apache License 2.0 terms. See ORIGIN.md for source attribution and COMPATIBILITY.md for the legacy contracts that intentionally retain upstream identifiers.
The maintained recipe provides:
- a self-contained public build based on a digest-pinned Ubuntu image;
- the
system-image-preloaderexecutable and image name; - a checksum-verified Go toolchain download;
- checksum-pinned official Docker CLI and source-pinned
yq/gomplatebuilds; - a finite, configurable image-pull retry policy;
- offline retry and URL-contract tests;
- offline
--helpand--versionsmoke paths; and - an isolated end-to-end test that discovers a system stack through mock compatibility APIs and caches a real public image through the mounted Docker socket.
At runtime the executable:
- reads the environment name from the compatibility metadata endpoint;
- discovers system stacks through the compatibility environment API;
- resolves stack versions through the compatibility catalog API;
- extracts image references from Compose YAML; and
- pulls each missing image through the mounted Docker socket.
Image pulls stop after IMAGE_PULL_MAX_ATTEMPTS. A failed pull never retries forever.
The retry tests do not require Docker or network access:
make validate
make testBuild and perform offline container smoke tests:
make build
make smokeThe build needs internet access only for the pinned public Ubuntu base, Go
archive, official Docker CLI archive and license source, and pinned yq and
gomplate source trees.
Run the isolated API-to-Docker integration test on a disposable Docker host:
make integrationThe integration test starts a local mock metadata, environment, and catalog API, removes only its exact test image tag after confirming no container references it, verifies a real registry pull through the Docker socket, and restores the image-presence state. It never performs a broad image prune.
Use the immutable semantic tag:
ghcr.io/pasturestack/system-image-preloader:v0.3.5
The deployment definition must mount /var/run/docker.sock, run one instance
per host, and mark the service as start-once. Optional private-registry
credentials can be mounted from the host Docker configuration selected by the
operator.
The deployed compatibility environment supplies these required variables:
CATTLE_URLCATTLE_ACCESS_KEYCATTLE_SECRET_KEYPLATFORM_VERSION
Important optional settings include:
METADATA_URL— defaults tohttp://169.254.169.250/latest.IMAGE_PULL_MAX_ATTEMPTS— defaults to5and must be positive.IMAGE_PULL_RETRY_DELAY_SECONDS— defaults to10.PLATFORM_TLS_VERIFY— defaults tofalsefor legacy compatibility; usetruewhen the endpoint has a trusted certificate.CHECK_CPU_USAGE,CPU_USAGE_MAX,CPU_USAGE_SLEEP, andCPU_WAIT_MAX_ATTEMPTS— optional bounded CPU-pressure gate.RANDOM_SLEEP— preserves the optional metadata-based host delay.PLATFORM_AGENT_IMAGE— provides optional agent-image preloading.PLATFORM_DEBUG— enables safe debug status without tracing credentials.
The complete contract and behavior-change list is in COMPATIBILITY.md.
The container requires access to a Docker daemon to perform real pulls. Mounting /var/run/docker.sock grants powerful host-level capabilities and must only be done for a trusted image in a controlled environment. The offline tests and smoke commands do not mount the socket or contact compatibility services. The integration test does mount the socket and is intentionally limited to a disposable, explicitly authorized Docker host.
See SECURITY.md before integration testing.
The repository remains under its existing Apache License 2.0 file. The runtime image also includes the actual upstream license files for the bundled Docker CLI, yq, and gomplate under /licenses/third-party/. These files do not replace or alter the repository license.
This project is a background service with no user interface or runtime localization subsystem. It therefore does not add locale files. User-facing dashboards that manage this service must provide Traditional Chinese through their own locale framework.
Source-built yq and gomplate retain their upstream feature versions while using Go 1.27.4 and the pinned security dependencies in the runtime recipe, including x/net 0.63.0, x/crypto 0.59.0 and OpenTelemetry SDK 1.47.0. The final runtime SBOM records the actual executable dependencies; source declarations alone do not establish the installed versions.
The official Docker CLI 29.10.1 is pinned by archive and executable SHA-256 and
source commit c48360f51c53d2029ab6721ad4d012f9e14df846. Its vendor compiler is
qualified separately from source-built Go helpers. Runtime security checks verify
the exact CLI bytes and the gomplate module graph before applying package-specific
review decisions. See the v0.3.5 release evidence.
All scanner severities are retained. Available fixes and unreviewed findings block publication; vendor-unfixed Low/Medium entries require an exact package, version, PURL and official branch-specific review. The OpenPGP decision requires actual built-package evidence that the deprecated OpenPGP packages are absent. The Docker distribution decision applies only to the exact official CLI bytes and its verified manifest-digest checks; it does not claim that the dependency itself is patched. Raw findings and SBOMs remain available with the release.