chef-repo icon indicating copy to clipboard operation
chef-repo copied to clipboard

Added SSL certificates uploading.

Open ghost opened this issue 10 years ago • 5 comments

As per #139 I removed the old approach of adding certificates as strings to node JSON file. Cookbook files are used instead.

ghost avatar Jan 21 '15 08:01 ghost

@berkes could you please take a look at #164? Thanks

ghost avatar Jan 24 '15 09:01 ghost

:+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).

berkes avatar Jan 26 '15 14:01 berkes

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?

jvanbaarsen avatar Jan 26 '15 14:01 jvanbaarsen

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 avatar Oct 05 '15 08:10 berkes

@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)

jvanbaarsen avatar Oct 05 '15 08:10 jvanbaarsen