Skip to content

ci/dependency: Update the rules_oci pins with the release images - #49350

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:release-images-oci-pins
Nov 17, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:release-images-oci-pins

Conversation

@phlax

@phlax phlax commented Nov 17, 2026

Copy link
Copy Markdown
Member

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 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

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]>
@repokitteh-read-only

Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #49350 was opened by phlax.

see: more, trace.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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_BAZEL path 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 phlax changed the title [WIP] ci/dependency: Update the rules_oci pins with the release images ci/dependency: Update the rules_oci pins with the release images Nov 17, 2026
@phlax
phlax marked this pull request as ready for review November 17, 2026 13:19
@phlax
phlax merged commit 499b706 into envoyproxy:main Nov 17, 2026
26 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants