Skip to content

[8.19] fix: bypass expired Debian 11 security repo in Dockerfile.build - #7783

Closed
ycombinator wants to merge 1 commit into
elastic:8.19from
ycombinator:fix/debian11-bullseye-apt-expiry
Closed

[8.19] fix: bypass expired Debian 11 security repo in Dockerfile.build#7783
ycombinator wants to merge 1 commit into
elastic:8.19from
ycombinator:fix/debian11-bullseye-apt-expiry

Conversation

@ycombinator

Copy link
Copy Markdown
Contributor

Summary

  • Debian 11 (Bullseye) reached EOL and its security repository InRelease file has expired, causing all Buildkite package builds for the 8.19 branch to fail at the apt-get update step.
  • Passes -o Acquire::Check-Valid-Until=false to apt-get as a temporary workaround to bypass the expiry check.
  • The permanent fix is upstream in elastic/golang-crossbuild#754 (updating the base image to Debian 12). This commit should be reverted once that is merged and published.

Impact

Without this fix, all open PRs against 8.19 fail Buildkite — including unrelated updatecli bumps like #7780.

Test plan

  • Buildkite build passes for this PR after merge

🤖 Generated with Claude Code

Temporary workaround for Buildkite package build failures caused by the
Debian 11 (Bullseye) security repository's InRelease file expiring after
EOL. Passing -o Acquire::Check-Valid-Until=false to apt-get bypasses the
expiry check so the Docker build can proceed.

Root cause fix is upstream in golang-crossbuild:
elastic/golang-crossbuild#754

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ycombinator
ycombinator requested a review from a team as a code owner September 8, 2026 16:54
@ycombinator
ycombinator requested review from lorienhu and swiatekm and a lite review from Copilot and removed request for a team September 8, 2026 16:54
@ycombinator

Copy link
Copy Markdown
Contributor Author

Closing in favor of backporting #7782 (the main-branch counterpart) to 8.19 once it merges.

@ycombinator ycombinator closed this Sep 8, 2026

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

The change is a minimal, targeted build-unblocker with only minor follow-up suggestions noted inline.

Pull request overview

This PR unblocks 8.19 branch package builds by working around Debian 11 (Bullseye) security repository metadata expiry in the golang-crossbuild base image, allowing apt-get update to succeed until the upstream base image is updated.

Changes:

  • Add a temporary apt-get option (Acquire::Check-Valid-Until=false) during apt-get update to bypass the expired Valid-Until check.
  • Document the workaround inline in Dockerfile.build to clarify intent and expected revert timing.
File summaries
File Description
Dockerfile.build Temporarily bypasses Debian 11 repo metadata expiry during apt-get update to unblock build pipelines.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Dockerfile.build
Comment on lines +5 to +7
# TEMPORARY: Debian 11 (Bullseye) reached EOL and its security repo InRelease
# has expired. Check-Valid-Until=false bypasses the expiry check so the build
# can proceed. Revert once golang-crossbuild base image is updated.
Comment thread Dockerfile.build
apt-get update \
apt-get -o Acquire::Check-Valid-Until=false update \
&& apt-get install --no-install-recommends -y zip \
&& apt-get clean
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.

2 participants