Skip to content

[BUILD] Self-heal Arrow APT key rotations in Dockerfile - #9750

Merged
timosachsenberg merged 2 commits into
OpenMS:developfrom
aliviahossain:fix/arrow-key-rotation
Jul 16, 2026
Merged

timosachsenberg merged 2 commits into
OpenMS:developfrom
aliviahossain:fix/arrow-key-rotation

Conversation

@aliviahossain

@aliviahossain aliviahossain commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Apache Arrow rotates its APT signing key from time to time. When it does, the key bundled in the apache-arrow-apt-source .deb goes stale, apt-get update fails with NO_PUBKEY, and the nightly Docker build breaks (#9729).

#9728 already cleared the immediate failure. This is the durable follow-up: it appends Apache's canonical KEYS to the exact keyring the .deb pins through Signed-By (/usr/share/keyrings/apache-arrow-apt-source.asc), right after the .deb install and before apt-get update, in both the base and library stages. It is additive, needs no new deps since wget is already there, and self-heals on future rotations.

The key cannot go in /etc/apt/trusted.gpg.d/, because once the .deb sets Signed-By, apt only trusts that one keyring for Arrow.

Checklist

  • [ yes] Make sure that you are listed in the AUTHORS file
  • [ yes] Add relevant changes and new features to the CHANGELOG file
  • [ yes] I have commented my code, particularly in hard-to-understand areas
  • [ yes] New and existing unit tests pass locally with my changes
  • [ yes] Updated or added python bindings for changed or new classes (Tick if no updates were necessary.)

Files changed:

dockerfiles/Dockerfile (1 file, 8 insertions). Same line added to the base and library stages:
&& wget -qO- https://downloads.apache.org/arrow/KEYS >> /usr/share/keyrings/apache-arrow-apt-source.asc \

Verification:

Not a full image build. I ran the affected apt/keyring steps in an isolated ubuntu:24.04 container, simulated a key rotation with a stale key, and ran apt-get update before and after.

Screenshot 2026-07-16 173749

Before:
Err:5 ... noble InRelease
... NO_PUBKEY 9E922B2D60E9FD1C
E: The repository '... noble InRelease' is not signed.

After (KEYS appended):
Get:5 ... noble InRelease
Get:6 ... noble/main Sources
Get:7 ... noble/main amd64 Packages

@timosachsenberg Please review it and merge it if everything's clear. Thanks!

Related:

Follow-up to #9728. Closes #9729.

Summary by CodeRabbit

  • Bug Fixes
    • Improved Apache Arrow APT repository key handling to prevent build interruptions during Docker image creation.
    • Nightly builds now more reliably recover from Apache Arrow signing-key rotations, reducing NO_PUBKEY-style failures.
    • Added build-time logic to re-apply Apache Arrow’s canonical repository keys, helping keep the APT trust setup consistent with the configured Signed-By source.

@github-actions

Copy link
Copy Markdown
Contributor

@aliviahossain The following names might be missing from the AUTHORS file:

  • aliviahossain

Please consider applying the following patch:

--- AUTHORS	2026-07-16 12:37:08.650515649 +0000
+++ AUTHORS.new	2026-07-16 12:37:14.330284644 +0000
@@ -14,6 +14,7 @@
  - Alexandra Scherbart
  - Alexandra Zerck
  - Alivia Hossain
+ - Alivia Hossain
  - Amanda Wein
  - Andreas Bertsch
  - Andreas Simon

@coderabbitai

coderabbitai Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: cc599be0-7172-43cf-a626-ec2b7eb9e196

📥 Commits

Reviewing files that changed from the base of the PR and between 175d30b and d60958e.

📒 Files selected for processing (1)
  • CHANGELOG

📝 Walkthrough

Walkthrough

The Dockerfile’s base and library stages now append Apache Arrow’s canonical KEYS file to the Arrow APT keyring during repository setup, and the changelog records the CI fix.

Changes

Arrow APT keyring

Layer / File(s) Summary
Append Arrow signing keys
dockerfiles/Dockerfile, CHANGELOG
Both Docker stages quietly fetch and append Apache Arrow’s armored KEYS contents to /usr/share/keyrings/apache-arrow-apt-source.asc; the changelog documents the Docker CI fix.

Possibly related PRs

  • OpenMS/OpenMS#9728: Updates the Arrow APT source package download used by the same Dockerfile stages.
  • OpenMS/OpenMS#9731: Documents the related Docker-nightly Arrow APT key/source fix in the changelog.

Suggested reviewers: timosachsenberg, singjc

Poem

A bunny hops through Docker’s door,
And mends the Arrow key once more.
With keys appended, builds can flow,
Through APT paths where packages grow.
Hop, hop—no missing signs below!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: self-healing Apache Arrow APT key rotations in the Dockerfile.
Linked Issues check ✅ Passed The Dockerfile updates address #9729 by appending Apache KEYS in both build stages before apt-get update.
Out of Scope Changes check ✅ Passed The changes stay focused on the Arrow keyring fix and a matching changelog note, with no unrelated scope creep.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@aliviahossain
aliviahossain force-pushed the fix/arrow-key-rotation branch from 66405fb to 175d30b Compare July 16, 2026 12:43
Add a CHANGELOG entry for the base/library-stage KEYS append that keeps
the nightly Docker build resilient to Apache Arrow signing-key rotations.

Follow-up to OpenMS#9728. Relates to OpenMS#9729.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@CHANGELOG`:
- Line 25: Revise the CHANGELOG entry to soften its guarantee: replace the claim
that future Arrow APT key rotations can no longer break nightly builds with
wording that it reduces failures for rotations covered by Apache Arrow’s
canonical KEYS file, while retaining the existing Signed-By and stage context.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 847e1d15-531e-4373-b9eb-255674bf0619

📥 Commits

Reviewing files that changed from the base of the PR and between 66405fb and 175d30b.

📒 Files selected for processing (2)
  • CHANGELOG
  • dockerfiles/Dockerfile
🚧 Files skipped from review as they are similar to previous changes (1)
  • dockerfiles/Dockerfile

Comment thread CHANGELOG Resolved
@aliviahossain
aliviahossain force-pushed the fix/arrow-key-rotation branch from 175d30b to d60958e Compare July 16, 2026 12:48
@timosachsenberg

Copy link
Copy Markdown
Contributor

awesome!

@aliviahossain

Copy link
Copy Markdown
Contributor Author

awesome!

Thanks for approving, you can merge the PR !

@timosachsenberg
timosachsenberg merged commit a7769b7 into OpenMS:develop Jul 16, 2026
15 checks passed
timosachsenberg added a commit that referenced this pull request Jul 17, 2026
* docs(changelog): add entries for #9492, #9752

Backfills two CHANGELOG entries for recently merged PRs that landed
without their own entry:
- #9752: new BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES CMake options
  enabling a core-only OpenMS SDK build
- #9492: null-dereference guards in TargetedExperiment::get*ByRef and
  ReactionMonitoringTransition::getPrediction

All other PRs merged since the last CHANGELOG update (#9613, #9750,
#9738) already carried their own entries; #9572 is test-only and
follows the existing convention of not adding a changelog entry for
test-only PRs in this series.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QcFv1tmBLzroCNJFjoqhZt

* Update CHANGELOG

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
timosachsenberg added a commit that referenced this pull request Jul 21, 2026
…erence (#9772)

- Add entry for #9745 (corrected stale ImzMLFile documentation on
  imaging geometry derivation, .ibd integrity check, and narrowed
  InvalidValue throw conditions).
- Point the Arrow APT signing-key self-heal entry at the actual merged
  PR #9750 instead of only the tracking issue #9729.


Claude-Session: https://claude.ai/code/session_01XoLJy9fP8E2m25rggnF6h3

Co-authored-by: Claude <[email protected]>
jcharkow pushed a commit to jcharkow/OpenMS that referenced this pull request Aug 12, 2026
…S#9753)

* docs(changelog): add entries for OpenMS#9492, OpenMS#9752

Backfills two CHANGELOG entries for recently merged PRs that landed
without their own entry:
- OpenMS#9752: new BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES CMake options
  enabling a core-only OpenMS SDK build
- OpenMS#9492: null-dereference guards in TargetedExperiment::get*ByRef and
  ReactionMonitoringTransition::getPrediction

All other PRs merged since the last CHANGELOG update (OpenMS#9613, OpenMS#9750,
OpenMS#9738) already carried their own entries; OpenMS#9572 is test-only and
follows the existing convention of not adding a changelog entry for
test-only PRs in this series.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QcFv1tmBLzroCNJFjoqhZt

* Update CHANGELOG

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
jcharkow added a commit to jcharkow/OpenMS that referenced this pull request Oct 9, 2026
…S#9753)

* docs(changelog): add entries for OpenMS#9492, OpenMS#9752

Backfills two CHANGELOG entries for recently merged PRs that landed
without their own entry:
- OpenMS#9752: new BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES CMake options
  enabling a core-only OpenMS SDK build
- OpenMS#9492: null-dereference guards in TargetedExperiment::get*ByRef and
  ReactionMonitoringTransition::getPrediction

All other PRs merged since the last CHANGELOG update (OpenMS#9613, OpenMS#9750,
follows the existing convention of not adding a changelog entry for
test-only PRs in this series.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QcFv1tmBLzroCNJFjoqhZt

* Update CHANGELOG

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
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.

Nightly "Deploy container images" failing: Apache Arrow APT repo GPG NO_PUBKEY error

2 participants