Allow users to create TLS config from arbitrary sources of PEM data#53
Allow users to create TLS config from arbitrary sources of PEM data#53simonferquel wants to merge 1 commit intodocker:mainfrom
Conversation
Fix docker#52 Signed-off-by: Simon Ferquel <simon.ferquel@docker.com>
ee4ab8f to
9f19daa
Compare
|
Wow, that's a lot of changes. Just some quick thoughts;
Basically we want to replace So for the go-connections/tlsconfig/config.go Lines 231 to 240 in eed1c49 Would it then be possible to just load the data upfront? Just really thinking out loud |
I also wanted to keep the error messages as untouched as possible (the only purpose of the PEMSource interface to have a Name() method is to keep the same error messages everywhere it is possible) |
|
I think @thaJeztah thinks more of something like the following diff : master...vdemeester:more-opts This would allow to pass read/load certificates from memory (or really anywhere) without requiring any more changes in that repository for that matter. |
Fix #52
This introduce an abstraction for accessing PEM Data (that can come from files, or from anything else, including byte slice in memory).