Closed dgutierrez-stratio closed 6 years ago
would it be possible to include a proper ssl test ?
Yes, that's probably a good idea. But I'd work first on mocking etcd for every test.. I'll see what I can do!
Hi, I've refactored the test suite, but it requires an external etcd with security enabled. In order for these tests to work we need
How do you propose to resolve this issue?
the task dockerTest
executes the test against an etcd instance running in docker so an additional instance with ssl configured can be started, you should include a script/gradle-task to generate the jks. the keystore can be included in src/test/resources or generated on demand if there is a dedicated gradle task
Done! Check it out please. I've tested it and everyting runs fine in our servers
Just some minor notes:
I can provide an example script under resources/certs of how I generated those certificates, but I can't spend any more time making a gradle task generate them on demand, sorry
That would be more than enough,thx
Squashed! Thank you for your help!
Provides support for TLS connections to etcd (non mutual and mutual TLS) by using Java's Truststore and Keystore mechanisms. Etcd clients can now be configured as follows