Repository navigation
Conversation
gemsource_puppetcore previously only routed to the internal mirror for a Puppet 9 + forge-token run; every Puppet 8 lane fell through to public rubygems.org, which is stuck at puppet 8.10.0 (CVE-2026-115731). Flips the default per the pattern already established in pdk-templates (ADR 0001/0002): puppetcore by default, public gems as an explicit, persisted opt-out. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Known upstream gemspec bug (CAT-2840): puppet 8.x pins puppet-resource_api ~> 1.9, which main (2.x) can't satisfy. bundle install resolves it leniently; bundle exec's stricter validation correctly rejects it under any reasonably modern Bundler. Linux tolerates the same conflict only because its CI lane uses an older, less strict Bundler baked into that Ruby build. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
LukasAud
force-pushed
the
cat-2962-puppet-gemfile-floor
branch
from
November 24, 2026 15:01
579d6d4 to
f7853d8
Compare
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.
Summary
gemsource_puppetcorepreviously only routed to the internal, maintained mirror (rubygems-puppetcore.puppet.com) whenPUPPET_GEM_VERSIONmatched~> 9and a forge token was present. Every Puppet 8 lane (the common case) fell through to publicrubygems.org, which is stuck atpuppet 8.10.0and carries this CVE.pdk-templates(ADR 0001/0002):gemsource_puppetcorenow defaults to the internal puppetcore mirror, with an explicit, persisted opt-out (bundle config set gemsource.public true) rather than silently falling back to public gems. Also warns when no puppetcore credentials are detected, mirroring the same precedent, withgemsource.airgapped/gemsource.publicas escape hatches.mainonly for now;1.9.xis a separate maintenance line and out of scope for this PR.puppet 8.22.3and9.1.4(both above the CVE-2026-115731 fix threshold) resolve cleanly from puppetcore across all 4 Linux CI lanes and the Windows Puppet 9 lane.Known, pre-existing issue surfaced by this fix (not introduced by it)
Windows, Puppet 8, Ruby 3.2now fails atbundle execwithBundler::GemNotFound: Could not find gem 'puppet (~> 8)' in locally installed gems, even thoughbundle installsucceeds. Root cause, confirmed by inspecting the generatedGemfile.lockdirectly in CI:puppet 8.22.3's own gemspec (not ours) still declares a runtime dependency onpuppet-resource_api (~> 1.9), which conflicts withmain's current version (2.1.0) — unsatisfiable. This is the exact same upstream gemspec bug already filed with the PA team during CAT-2840 (puppet.gemspec requires puppet-resource_api ~> 1.9, but Agent ships/pins a 2.x release), just resurfacing on the Puppet 8 side instead of Puppet 9.bundle install's initial resolve is lenient and doesn't catch this;bundle exec's stricter dependency-graph validation does, but only under a reasonably modern Bundler — confirmed reproducing identically on both Bundler 2.6.9 and 4.1.0. Linux's CI lane uses whatever (older) Bundler ships baked into that Ruby 3.2.11 build, which doesn't perform this validation as strictly, so it silently resolves the same conflicting pair without complaint. This is not fixable at the Gemfile/CI-config level — it needs either the PA gemspec fix extended to the 8.x line, or an explicit call thatmainshouldn't be CI-tested against Puppet 8 at all (matching the existing understanding that Puppet 8 Agent consumes the separate1.9.xbranch, notmain).Marked
continue-on-errorfor just that one matrix entry (Windows + Puppet 8) with a comment referencing CAT-2840, so this known, tracked, upstream issue doesn't block the CVE fix from merging.Test plan
bundle installwith no env vars set resolvespuppetfrom the puppetcore mirror, not public rubygems.orgbundle config set gemsource.public truestill resolves from public rubygems.org