Repository navigation
ci/dependency: Update the rules_oci pins with the release images - #49350
Merged
Merged
Conversation
The published container images are built with rules_oci from the base image digests pinned by `oci.pull` in `MODULE.bazel` (envoyproxy#49259), but the `release-images` task only updated the digests in the release Dockerfile, so its bumps did not reach the published images. Update both, and fail if an image's digest in the Dockerfile is not the one pinned in `MODULE.bazel`. Signed-off-by: Ryan Northey <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the changes to synchronize release-image digest updates across Dockerfile and rules_oci builds.
No open issues 🎉
What changed in this PR
Updates the release-image dependency script so base-image digest bumps reach both the Dockerfile builds and the rules_oci builds used for published images.
Changes:
- Updates matching digests in both the Dockerfile and
MODULE.bazel. - Fails if a Dockerfile digest is absent from
MODULE.bazel, helping detect pin drift. - Adds a configurable
MODULE_BAZELpath and clarifies the script’s documentation.
| File | Description |
|---|---|
ci/dependency/release_images.sh |
Extends digest validation and updates to cover the rules_oci base-image pins. |
Review effort: Balanced
phlax
marked this pull request as ready for review
November 17, 2026 13:19
jwendell
approved these changes
Nov 17, 2026
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…oyproxy#49350) The published container images are built with rules_oci (`//distribution/docker`, envoyproxy#49259) from the base image digests pinned by `oci.pull` in `MODULE.bazel` (`@ubuntu_base`, `@distroless_base_nossl`). The `release-images` task (`ci/dependency/release_images.sh`, envoyproxy#49106) only updated the same digests in `distribution/docker/Dockerfile-envoy`, so since envoyproxy#49259 its bumps have not reached the published images. The script now updates the digest in both files. It also fails if an image's digest in the Dockerfile is not the one pinned in `MODULE.bazel`, so the two can't drift apart unnoticed. The digests are not recorded in `MODULE.bazel.lock`, so there is no lockfile change with a bump. The Dockerfile is still read for the pinned images and tags, and is still what `distribution/docker/build.sh` builds from. Risk Level: low (the dependency workflow's `release-images` task only) Testing: ran the script against copies of the two files with a stubbed `docker buildx imagetools inspect`: a bump updates both files, a rerun reports up to date, and a digest that differs between the files fails. shellcheck is clean. The workflow task itself has not been run with this change. Docs Changes: n/a Release Notes: n/a (cherry picked from commit 499b706) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
that referenced
this pull request
Nov 17, 2026
) The published container images are built with rules_oci (`//distribution/docker`, #49259) from the base image digests pinned by `oci.pull` in `MODULE.bazel` (`@ubuntu_base`, `@distroless_base_nossl`). The `release-images` task (`ci/dependency/release_images.sh`, #49106) only updated the same digests in `distribution/docker/Dockerfile-envoy`, so since #49259 its bumps have not reached the published images. The script now updates the digest in both files. It also fails if an image's digest in the Dockerfile is not the one pinned in `MODULE.bazel`, so the two can't drift apart unnoticed. The digests are not recorded in `MODULE.bazel.lock`, so there is no lockfile change with a bump. The Dockerfile is still read for the pinned images and tags, and is still what `distribution/docker/build.sh` builds from. Risk Level: low (the dependency workflow's `release-images` task only) Testing: ran the script against copies of the two files with a stubbed `docker buildx imagetools inspect`: a bump updates both files, a rerun reports up to date, and a digest that differs between the files fails. shellcheck is clean. The workflow task itself has not been run with this change. Docs Changes: n/a Release Notes: n/a (cherry picked from commit 499b706) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…oyproxy#49350) The published container images are built with rules_oci (`//distribution/docker`, envoyproxy#49259) from the base image digests pinned by `oci.pull` in `MODULE.bazel` (`@ubuntu_base`, `@distroless_base_nossl`). The `release-images` task (`ci/dependency/release_images.sh`, envoyproxy#49106) only updated the same digests in `distribution/docker/Dockerfile-envoy`, so since envoyproxy#49259 its bumps have not reached the published images. The script now updates the digest in both files. It also fails if an image's digest in the Dockerfile is not the one pinned in `MODULE.bazel`, so the two can't drift apart unnoticed. The digests are not recorded in `MODULE.bazel.lock`, so there is no lockfile change with a bump. The Dockerfile is still read for the pinned images and tags, and is still what `distribution/docker/build.sh` builds from. Risk Level: low (the dependency workflow's `release-images` task only) Testing: ran the script against copies of the two files with a stubbed `docker buildx imagetools inspect`: a bump updates both files, a rerun reports up to date, and a digest that differs between the files fails. shellcheck is clean. The workflow task itself has not been run with this change. Docs Changes: n/a Release Notes: n/a Backport note (release/v1.37): the rules_oci pins are the `oci_pull` digests in `bazel/dependency_imports.bzl` on this branch (WORKSPACE), so those are what is updated and checked against the Dockerfile. (cherry picked from commit 499b706) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…oyproxy#49350) The published container images are built with rules_oci (`//distribution/docker`, envoyproxy#49259) from the base image digests pinned by `oci.pull` in `MODULE.bazel` (`@ubuntu_base`, `@distroless_base_nossl`). The `release-images` task (`ci/dependency/release_images.sh`, envoyproxy#49106) only updated the same digests in `distribution/docker/Dockerfile-envoy`, so since envoyproxy#49259 its bumps have not reached the published images. The script now updates the digest in both files. It also fails if an image's digest in the Dockerfile is not the one pinned in `MODULE.bazel`, so the two can't drift apart unnoticed. The digests are not recorded in `MODULE.bazel.lock`, so there is no lockfile change with a bump. The Dockerfile is still read for the pinned images and tags, and is still what `distribution/docker/build.sh` builds from. Risk Level: low (the dependency workflow's `release-images` task only) Testing: ran the script against copies of the two files with a stubbed `docker buildx imagetools inspect`: a bump updates both files, a rerun reports up to date, and a digest that differs between the files fails. shellcheck is clean. The workflow task itself has not been run with this change. Docs Changes: n/a Release Notes: n/a Backport note (release/v1.37): the rules_oci pins are the `oci_pull` digests in `bazel/dependency_imports.bzl` on this branch (WORKSPACE), so those are what is updated and checked against the Dockerfile. (cherry picked from commit 499b706) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 18, 2026
…oyproxy#49350) The published container images are built with rules_oci (`//distribution/docker`, envoyproxy#49259) from the base image digests pinned by `oci.pull` in `MODULE.bazel` (`@ubuntu_base`, `@distroless_base_nossl`). The `release-images` task (`ci/dependency/release_images.sh`, envoyproxy#49106) only updated the same digests in `distribution/docker/Dockerfile-envoy`, so since envoyproxy#49259 its bumps have not reached the published images. The script now updates the digest in both files. It also fails if an image's digest in the Dockerfile is not the one pinned in `MODULE.bazel`, so the two can't drift apart unnoticed. The digests are not recorded in `MODULE.bazel.lock`, so there is no lockfile change with a bump. The Dockerfile is still read for the pinned images and tags, and is still what `distribution/docker/build.sh` builds from. Risk Level: low (the dependency workflow's `release-images` task only) Testing: ran the script against copies of the two files with a stubbed `docker buildx imagetools inspect`: a bump updates both files, a rerun reports up to date, and a digest that differs between the files fails. shellcheck is clean. The workflow task itself has not been run with this change. Docs Changes: n/a Release Notes: n/a Backport note (release/v1.37): the rules_oci pins are the `oci_pull` digests in `bazel/dependency_imports.bzl` on this branch (WORKSPACE), so those are what is updated and checked against the Dockerfile. (cherry picked from commit 499b706) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
that referenced
this pull request
Nov 18, 2026
…placed (#49356) The release container images and packages are built with Bazel, and the release is signed, in the release build (`release.publish`/`release.multiarch`, #49259, #49331). The builds that did those before only run for the release branches without `release-publish`, with those branches' own `ci/do_ci.sh`, so the workflows are unchanged. Removed: - `distribution/docker/Dockerfile-envoy` and `distribution/docker/build.sh`, and the `docker` and `distribution` targets of `ci/do_ci.sh` (the Docker OCI and Packages jobs) - `ENVOY_OCI_DIR`, `ENVOY_DOCKER_SAVE_IMAGE` and `ENVOY_TARBALL_DIR` from the environment `ci/docker-compose.yml` passes through, which only those targets read - the `release.signed` target (the Sign packages job), and the signing of the packages tarballs it did: the `x64-packages`/`arm64-packages` and `signing-inputs` flags of `//distribution`, `multi_arch_debs_tarballs`, the extraction of the `.changes` from the tarballs (`distribution/changes.bzl`), and the `distribution/custom` files the job staged. `release.multiarch` signs the `.deb`s and `.changes` built in the same invocation, which are now the only signing inputs - the `verify.trigger` target, which nothing runs, with `@envoy_repo//:trigger` - the Dependabot entry for `/distribution/docker` Changed with it: - the `docker` target was also how the images were built locally. A new `release.containers` target builds just the images, as OCI tarballs in `<build dir>/envoy/<arch>/build_images`, without the release tarball, tools or packages, and the local Docker build docs use it (with `skopeo` to load a tarball into Docker). - `ci/dependency/release_images.sh` read the pinned images and their tags from the Dockerfile (and since #49350 updated `MODULE.bazel` with it). It now reads them from the `oci.pull` entries of `MODULE.bazel`, each with its tag in a `# tag:` comment, and resolves `ubuntu:22.04` from the image that is pulled (`mirror.gcr.io/library/ubuntu`) rather than Docker Hub. - the Docker Hub readme links the `dev` tag to `distribution/docker/BUILD`. The release branches' links are unchanged, as they still have the Dockerfile. Open points: - `release.containers` is untested: nothing in CI runs it. It builds `//distribution/docker:images`, which the release build also builds. - the Docker Hub readme template will link a future release branch (v1.41) to a Dockerfile it won't have (#49362). Risk Level: medium (the release signing rules: this PR's Publish signs with them, with the snakeoil key) Testing: this PR's Publish (`release.multiarch`, which builds and signs the release) and Verify. `release_images.sh` run against a copy of `MODULE.bazel` with a stubbed `docker buildx imagetools inspect`: a bump updates both digests, a rerun reports up to date, and no `# tag:` comments fails. shellcheck is clean. Docs Changes: `docs/root/start/building/local_docker_build.rst`, `ci/README.md` Release Notes: n/a Signed-off-by: Ryan Northey <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit Message: ci/dependency: Update the rules_oci pins with the release images
Additional Description:
The published container images are built with rules_oci (
//distribution/docker, #49259) from the base image digests pinned byoci.pullinMODULE.bazel(@ubuntu_base,@distroless_base_nossl). Therelease-imagestask (ci/dependency/release_images.sh, #49106) only updated the same digests indistribution/docker/Dockerfile-envoy, so since #49259 its bumps have not reached the published images.The script now updates the digest in both files. It also fails if an image's digest in the Dockerfile is not the one pinned in
MODULE.bazel, so the two can't drift apart unnoticed. The digests are not recorded inMODULE.bazel.lock, so there is no lockfile change with a bump.The Dockerfile is still read for the pinned images and tags, and is still what
distribution/docker/build.shbuilds from.Risk Level: low (the dependency workflow's
release-imagestask only)Testing: ran the script against copies of the two files with a stubbed
docker buildx imagetools inspect: a bump updates both files, a rerun reports up to date, and a digest that differs between the files fails. shellcheck is clean. The workflow task itself has not been run with this change.Docs Changes: n/a
Release Notes: n/a