Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
We need to revisit SSL config #8600
I think there's now three ways to insert SSL certs into chef-client. There's the default ruby location, the SSL_CERT_FILE(?) environment variable and the trusted_certs dir that knife ssl fetch uses. The latter location would ideally be what we'd use universally, but not everything can go through Chef::HTTP (e.g. the gem installer in cookbooks uses bundler directly and we cannot inject Chef::HTTP into it). We need to revisit looking at if we can make all this unified, as was originally intended.
Also, on upgrades we now remove /opt/chef entirely both in the Chef-15 installer and in the chef_client_updater cookbook, which means that we wipe the ssl certs if they were installed directly into /opt/chef. The contents of those directories probably need to be preserved on upgrade.