Trust the estate CA when fetching ENC facts #529

Merged
benvin merged 1 commits from benvin/enc-facts-ca-bundle into develop 2026-09-20 23:32:19 +10:00
Member

Facter runs under Puppet's vendored Ruby, which reads its own bundled CA file and never the system trust store. The ENC fact now fetches over HTTPS, so every node fails certificate verification and falls back to its cached value.

  • set ca_file on the request to the vaultca anchor bundle
  • keep VERIFY_PEER on, and fall through to the existing cache path when the anchor is absent
Facter runs under Puppet's vendored Ruby, which reads its own bundled CA file and never the system trust store. The ENC fact now fetches over HTTPS, so every node fails certificate verification and falls back to its cached value. - set ca_file on the request to the vaultca anchor bundle - keep VERIFY_PEER on, and fall through to the existing cache path when the anchor is absent
unkin-agent added 1 commit 2026-09-20 23:25:44 +10:00
Trust the estate CA when fetching ENC data from encapi
ci/woodpecker/pr/ruby-validate Pipeline was successful
ci/woodpecker/pr/puppet-lint Pipeline was successful
ci/woodpecker/pr/bolt-validate Pipeline was successful
ci/woodpecker/pr/yamllint Pipeline was successful
ci/woodpecker/pr/erb-validate Pipeline was successful
ci/woodpecker/pr/epp-validate Pipeline was successful
ci/woodpecker/pr/ruby-check Pipeline was successful
ci/woodpecker/pr/puppet-validate Pipeline was successful
7f66dfd593
Facter runs under Puppet's vendored ruby, whose OpenSSL trusts only
/opt/puppetlabs/puppet/ssl/cert.pem, not the system trust store, so every
node failed encapi TLS with 'unable to get local issuer certificate'.
Point Net::HTTP at the CA anchor profiles::pki::vaultca installs and keep
VERIFY_PEER on.
benvin merged commit 734fcb8cf4 into develop 2026-09-20 23:32:19 +10:00
benvin deleted branch benvin/enc-facts-ca-bundle 2026-09-20 23:32:19 +10:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/puppet-prod#529