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

(PIE-1401) Add system cert store SSL validation #208

Merged

Conversation

coreymbe
Copy link
Contributor

@coreymbe coreymbe commented Nov 1, 2023

Summary

This commit changes the way certificate validation occurs. In particular, when HTTPS is specified in the URL we first check for a provided CA certificate, then check to see if we should validate against the default system store before performing the request without verification.

Detailed Description

  • Updated manifests/init.pp and renamed ignore_system_cert_store to include_system_cert_store.
  • Updated templates/settings.yaml.epp with include_system_cert_store.
  • Updated lib/puppet/util/splunk_hec.rb to take precedence for provided CA -> system store -> no verification.
  • Updated templates/util_splunk_hec.erb to ensure event forwarding uses the same SSL validation.
  • Updated spec/spec_helper_acceptance_local.rb with include_system_cert_store for spec testing.
  • Updated CHANGELOG.md
  • Updated README.md
  • Updated REFERENCE.md

Checklist

[X] Ensure README is updated
[X] Acceptance Tests
[X] PR title is "(Ticket|Maint) Short Description"
[X] Commit title matches PR title

@coreymbe coreymbe requested a review from a team as a code owner November 1, 2023 21:14
@coreymbe coreymbe force-pushed the PIE-1401-include_system_cert_store branch from c580fc9 to 9a8f00b Compare November 1, 2023 22:41
Copy link
Contributor

@actowery actowery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@actowery actowery merged commit 2468cf3 into puppetlabs:main Nov 2, 2023
23 checks passed
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.

ssl verification does not use system ca store when ssl_ca is not set.
2 participants