Repository navigation
Install OS dependencies on hardened images after dhi.io renumbering - #76200
Merged
Merged
Conversation
The dhi.io apt repository is live, so it keeps moving under a base image pinned to a digest. Docker renumbered its builds again ("14.2.0-19+dhi5" became "14.2.0-19+deb13u0+dhi5", which sorts lower) and dropped the old numbers, while the pinned images still ship them. apt will not downgrade the image's copies at the dhi.io pin priority, so gcc, libgomp1 and libgmp-dev become uninstallable and the CI image build fails on main (docker-hardened-images/catalog#689). Pinning the base image cannot prevent this, so the build has to cope with the repository moving on its own.
Generated-by: Claude Opus 5
potiuk
added a commit
that referenced
this pull request
Nov 1, 2026
…enumbering (#76200) (#76202) The dhi.io apt repository is live, so it keeps moving under a base image pinned to a digest. Docker renumbered its builds again ("14.2.0-19+dhi5" became "14.2.0-19+deb13u0+dhi5", which sorts lower) and dropped the old numbers, while the pinned images still ship them. apt will not downgrade the image's copies at the dhi.io pin priority, so gcc, libgomp1 and libgmp-dev become uninstallable and the CI image build fails on main (docker-hardened-images/catalog#689). Pinning the base image cannot prevent this, so the build has to cope with the repository moving on its own. (cherry picked from commit 72d752a) Generated-by: Claude Opus 5 Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
potiuk
requested review from
amoghrajesh,
bugraoz93,
gopidesupavan,
jason810496 and
jscheffl
as code owners
November 1, 2026 09:42
shahar1
approved these changes
Nov 1, 2026
Contributor
Backport successfully created: v3-4-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
1 task done
vatsrahul1001
pushed a commit
that referenced
this pull request
Nov 4, 2026
…enumbering (#76200) (#76202) The dhi.io apt repository is live, so it keeps moving under a base image pinned to a digest. Docker renumbered its builds again ("14.2.0-19+dhi5" became "14.2.0-19+deb13u0+dhi5", which sorts lower) and dropped the old numbers, while the pinned images still ship them. apt will not downgrade the image's copies at the dhi.io pin priority, so gcc, libgomp1 and libgmp-dev become uninstallable and the CI image build fails on main (docker-hardened-images/catalog#689). Pinning the base image cannot prevent this, so the build has to cope with the repository moving on its own. (cherry picked from commit 72d752a) Generated-by: Claude Opus 5 Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
1 task done
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.
The CI image build on
mainfails while installing OS dependencies on the hardened images, for example the arm64 / Python 3.13 build:Docker renumbered its builds again (
14.2.0-19+dhi5became14.2.0-19+deb13u0+dhi5, which sorts lower) and the dhi.io apt repository dropped the old numbers, while the base images pinned in #76023 still ship them (docker-hardened-images/catalog#689). At the dhi.io pin priority of 999, apt will not downgrade the image's copies, so everything depending on the exact new versions (gcc, libgomp1 via graphviz, libgmp-dev) becomes uninstallable.Pinning the base image to a digest cannot prevent this: the image is frozen, but the apt repository it installs from is live. The install script now moves only the installed packages whose version no repository offers any more to dhi.io's current build, before installing anything else. Packages still available are left alone, so PGDG's newer libpq5 keeps resolving.
Tested in the pinned arm64 Python 3.13 base image: 10 renumbered packages (
gcc-14-base,libgcc-s1,libstdc++6,libgmp10,libzstd1,tar, ...) were aligned, after whichbuild-essential libgmp-dev graphviz libgomp1resolved cleanly. shellcheck reports no findings.Follow-up
This unblocks
main, but CI builds still install system packages from a live repository, so the same commit can build a different image on a different day. A follow-up PR will pin the OS-dependency layer itself: a scheduled job builds the base image plusinstall_os_dependencies.shand pushes it to GHCR by digest, the CI image starts from that digest, and the existing upgrade check moves the pin only after the full CI has passed. Day-to-day CI then no longer talks to dhi.io for system packages, and a dhi.io change can only break the upgrade PR, notmain. Standalone builds of theDockerfilewith a custom base image keep installing live, protected by the change in this PR.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Opus 5 following the guidelines
🤖 Generated with Claude Code