Skip to content

Conversation

@gavindidrichsen
Copy link

(feat) Add support for private gem source authentication

Updates the module to use the auth_token_template branch which adds support
for authenticating against private gem sources. This change:

  • Updates Gemfile to conditionally use private gem source when PUPPET_AUTH_TOKEN
    is present
  • Only applies private source to puppet-related gems (puppet, facter)
  • Falls back to rubygems.org when PUPPET_AUTH_TOKEN is not set
  • Updates template references to use the add_gem_switch_for_auth_token branch

This change enables the module to fetch gems from private sources when
appropriate credentials are provided, while maintaining compatibility with
public sources by default.

@gavindidrichsen gavindidrichsen force-pushed the auth_token_template branch 2 times, most recently from fbe8543 to a854970 Compare February 28, 2025 08:57
@gavindidrichsen gavindidrichsen merged commit 02407fe into pdk_340_update Mar 10, 2025
91 of 99 checks passed
@gavindidrichsen gavindidrichsen deleted the auth_token_template branch March 10, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants