chef-repo
chef-repo copied to clipboard
Added SSL certificates uploading.
As per #139 I removed the old approach of adding certificates as strings to node JSON file. Cookbook files are used instead.
@berkes could you please take a look at #164? Thanks
:+1:
We might need to deal with upgrades though. We don't want people who upgrade and have a config with the contents of the ssl-files (as was in the old situation) to suddenly break all their SSL on production (which won't really happen now, because you already raise an exception if the file is not found)
Either we make the option a little smarter and have it detect if it is a path to a file or the content of a cert.
Or we simply document and communicate this very well (as you already do with the raise
).
What about we first go in a deprecation mode of the old way? So for this release we support both, and throw a big fat warning if people use the older version. And in the next release we remove the old way all together?
I'd still really love this feature to be in. The hardest part is to make it backwards compatible though.
@jvanbaarsen @michiels how about a 3.x version that contains all such larger changes. We'd then not have to introduce all sorts of complexity to support many ways to do a thing (old, new etc) but rather One Way: the new way.
@berkes I have to take a good look at this PR, and also see how we can incorporate this in https://github.com/intercity/intercity (The main product we created this for). I think I can free some time for this next friday (I've put it on my todo list for that day)