Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ssl_trust_store from puppet.conf on Windows #467

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

southalc
Copy link

Pull Request (PR) description

The Windows Puppet agent fails to download archive resources due to SSL validation failure when the "source" is using a certificate issued by a private CA. The failure occurs even when the Puppet agent is configured with a custom "ssl_trust_store" that contains the CA chain.

This patch changes the Windows download behavior by defining the following order for the SSL trust store:

  1. The "ssl_trust_store" setting from the "agent" section of "puppet.conf"
  2. The "SSL_CERT_FILE" value from the runtime environment
  3. The module-bundled ".pem" file as a last resort.

This Pull Request (PR) fixes the following issues

Fixes issue reported at: https://tickets.puppetlabs.com/browse/PUP-11349

@southalc
Copy link
Author

Checking in on this pull request. I noticed the "needs-tests" label was added, but it doesn't look like the current implementation has any unit tests for SSL connections. This change maintains the current behavior and only enables an override of the default SSL trust file used by the Windows agent. What are we looking for in tests?

@albatrossflavour
Copy link

@ghoneycutt - I grok the request for tests, but... we also need to move stuff forward. How about we approve this and we'll work out how to get some time from the Puppet team to work on adding tests?

@kenyon
Copy link
Member

kenyon commented Aug 16, 2024

@albatrossflavour just to be clear, @voxpupuli modules like this one aren't maintained by @puppetlabs (@perforce). We are all volunteers.

@albatrossflavour
Copy link

@kenyon I'm very clear on that, which is why I'm offering some support from my team to help. If we work together, we can get more done and develop the skills of more practitioners (internal and community)

@kenyon kenyon changed the title Use ssl_trust_store from puppet.conf on Windows Use ssl_trust_store from puppet.conf on Windows Aug 30, 2024
@kenyon
Copy link
Member

kenyon commented Aug 30, 2024

@albatrossflavour OK, I guess you work for Puppet, which would make more sense, but that wasn't obvious 🙂

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.

4 participants